Examples of eSet()


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

    List<EObject> classMembers = (List<EObject>)javaClass.eGet(memberFeature);
    assert(Util.getElementName(classMembers.get(2)).matches("p2"));
   
    EObject fieldP2 = classMembers.get(2);
    EObject fieldP4 = EObjectCopier.copyElement(fieldP2, fieldP2.eClass().getEPackage());
    fieldP4.eSet(fieldP4.eClass().getEStructuralFeature("name"),"p4");
    classMembers.add(0, fieldP4);
   
    //Look at templateInstance_ManyAddAlloc.java
    SimTLFactory.createInterpreter().interprete(
        template,
View Full Code Here

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

    List<EObject> classMembers = (List<EObject>)javaClass.eGet(memberFeature);
    assert(Util.getElementName(classMembers.get(2)).matches("p2"));
   
    EObject fieldP2 = classMembers.get(2);
    EObject fieldP4 = EObjectCopier.copyElement(fieldP2, fieldP2.eClass().getEPackage());
    fieldP4.eSet(fieldP4.eClass().getEStructuralFeature("name"),"p4");
    classMembers.add(classMembers.size(), fieldP4);
   
    //Look at templateInstance_ManyAddAlloc.java
    SimTLFactory.createInterpreter().interprete(
        template,
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()

          changes = (List) value;
          for (int index = changes.size(); index != 0;)
            changes.set(--index, getOldDataObject((DataObject) changes.get(index))); // Java pushes stack from left to right
        }
        else
          oldDataObject.eSet(feature, getOldDataObject((DataObject) value));
      }
    }

    return (DataObject)oldDataObject;
  }
View Full Code Here

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

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

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

    // using the factory create instance of company class and
    // set company name
    //EObject company2 = graphFactory2.create(oNodeClass);
    //company2.eSet(oNodeName, "MyNode2");
    EObject company = graphFactory.create(oNodeClass);
    company.eSet(oNodeName, "MyNode");

    // create an instance of employee class
    EObject employee = graphFactory.create(oArcClass);
    //using reflective API initialize name of employee
    employee.eSet(oArcName, "MyArc");
View Full Code Here

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

    company.eSet(oNodeName, "MyNode");

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

    // 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()

    // using the factory create instance of company class and
    // set company name
    //EObject company2 = graphFactory2.create(oNodeClass);
    //company2.eSet(oNodeName, "MyNode2");
    EObject company = graphFactory.create(oNodeClass);
    company.eSet(oNodeName, "MyNode");

    // create an instance of employee class
    EObject employee = graphFactory.create(oArcClass);
    //using reflective API initialize name of employee
    employee.eSet(oArcName, "MyArc");
View Full Code Here

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

    company.eSet(oNodeName, "MyNode");

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

    // 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()

    //companyFactory.
   
    // using the factory create instance of company class and
    // set company name
    EObject company = companyFactory.create(oNodeClass);
    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");
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.