Examples of eSet()


Examples of org.eclipse.emf.ecore.EObject.eSet()

    company.eSet(oNodeName, "MyCompany");

    // create an instance of employee class
    EObject employee = companyFactory.create(oArcClass);
    //using reflective API initialize name of employee
    employee.eSet(oArcName, "John");

    // create an instance of department class
   
    m_oResourceXMIOut.getContents().add(company);
    m_oResourceXMIOut.getContents().add(employee);
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

    */
   
    EFactory companyFactory = GeneratedPackage.eINSTANCE.getGeneratedFactory();
   
    EObject oNode = companyFactory.create(GeneratedPackage.eINSTANCE.getTCGNode());
    oNode.eSet(GeneratedPackage.eINSTANCE.getTCGNode_Name(), "testname");
   
    m_oResourceXMIOut.getContents().add(oNode);
    //EObject oTCG = companyFactory.create(GeneratedPackage.eINSTANCE.getTestCaseGraph());
    //oTCG.eSet(GeneratedPackage.eINSTANCE.g, newValue)
    /*
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

        {
          ((List)oldContainer.eGet(oldContainmentReference)).add(oldContainmentIndex, rootObject);
        }
        else
        {
          oldContainer.eSet(oldContainmentReference, rootObject);
        }
      }
    }
    else if (documentRoot != null)
    {
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

          int refIndex = refList.indexOf(oldEObject);
          if (refIndex != -1) refList.set(refIndex, newEObject);
        }
        else
        {
          referencingEObject.eSet(eStructuralFeature, newEObject);
        }
      }
    }
  }
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

                @SuppressWarnings("unchecked") InternalEList<EObject> proxyHolderList = (InternalEList<EObject>)proxyHolder.eGet(oppositeEReference);
                proxyHolderList.setUnique(proxyHolderList.basicIndexOf(proxy), resolvedEObject);
              }
              else
              {
                proxyHolder.eSet(oppositeEReference, resolvedEObject);
              }
            }
          }

          break;
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

        @SuppressWarnings("unchecked") List<Object> list = (List<Object>)container.eGet(feature);
        list.set(list.indexOf(eObject), replacementEObject);
      }
      else
      {
        container.eSet(feature, replacementEObject);
      }
    }

    Resource resource = internalEObject.eDirectResource();
    if (resource != null)
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

  public EObject createObject(EFactory eFactory, EClassifier type)
  {
    if (type == propertyClass && propertyClass != null)
    {
      EObject property = propertyClass.getEPackage().getEFactoryInstance().create(propertyClass);
      property.eSet(EcorePackage.Literals.ETYPED_ELEMENT__LOWER_BOUND, ONE);
      property.eSet(EcorePackage.Literals.ETYPED_ELEMENT__ORDERED, Boolean.FALSE);
      propertyFeatureList.add(property);
      return property;
    }
    else if (EcorePackage.Literals.EANNOTATION == type)
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

  {
    if (type == propertyClass && propertyClass != null)
    {
      EObject property = propertyClass.getEPackage().getEFactoryInstance().create(propertyClass);
      property.eSet(EcorePackage.Literals.ETYPED_ELEMENT__LOWER_BOUND, ONE);
      property.eSet(EcorePackage.Literals.ETYPED_ELEMENT__ORDERED, Boolean.FALSE);
      propertyFeatureList.add(property);
      return property;
    }
    else if (EcorePackage.Literals.EANNOTATION == type)
    {
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

            value = list;
          } else {
            value = EcoreUtil.createFromString(type, (String) value);
          }
        }
        permissionInstance.eSet(attr, value);
      }
    }
    return roInstance;
  }
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

    // get factory to create instances
    EFactory instanceFactory = model.getEFactoryInstance();

    // Create PObject instance
    EObject pObjectInstance = instanceFactory.create(pObject);
    pObjectInstance.eSet(pObjectRegionAttr, "EU");

    // Create Permission instance
    EObject permissionInstance = instanceFactory.create(permission);
    permissionInstance.eSet(permRegionAttr, "EU");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.