Examples of EReferenceCollection


Examples of org.eclipselabs.emodeling.EReferenceCollection

    else
      collection.insert(dbObjects, writeConcern);

    URI baseURI = resource.getURI().trimSegments(1);
    InternalEObject[] eObjects = contents.toArray(new InternalEObject[contents.size()]);
    EReferenceCollection eCollection = EmodelingFactory.eINSTANCE.createEReferenceCollection();
    InternalEList<EObject> values = (InternalEList<EObject>) eCollection.getValues();

    for (int i = 0; i < dbObjects.size(); i++)
    {
      InternalEObject internalEObject = eObjects[i];
      internalEObject.eSetProxyURI(baseURI.appendSegment(dbObjects.get(i).get(Keywords.ID_KEY).toString()).appendFragment("/"));
View Full Code Here

Examples of org.eclipselabs.emodeling.EReferenceCollection

        cursor.setObjectBuilder(builder);
        contents.add(cursor);
      }
      else
      {
        EReferenceCollection eCollection = EmodelingFactory.eINSTANCE.createEReferenceCollection();
        InternalEList<EObject> values = (InternalEList<EObject>) eCollection.getValues();

        for (DBObject dbObject : resultCursor)
          values.addUnique(builder.buildEObject(collection, dbObject, resource, true));

        contents.add(eCollection);
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.