Examples of eSetProxyURI()


Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

   * @return proxy element
   */
  public EObject getClassifier(String fullQualifiedName) {
    InternalEObject classifierProxy = (InternalEObject) ClassifiersFactory.eINSTANCE.createClass();
    URI proxyURI = JavaUniquePathConstructor.getClassifierURI(fullQualifiedName);
    classifierProxy.eSetProxyURI(proxyURI);
    //set also the name to reason about it without resolving the proxy
    ((Class)classifierProxy).setName(JavaUniquePathConstructor.getSimpleClassName(fullQualifiedName));
    return classifierProxy;
  }

View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

   * @return proxy element
   */
  public EObject getProcessingElement(String fullQualifiedName) {
    InternalEObject classifierProxy = (InternalEObject) ClassifiersFactory.eINSTANCE.createClass();
    URI proxyURI = JavaUniquePathConstructor.getClassifierURI(fullQualifiedName);
    classifierProxy.eSetProxyURI(proxyURI);
    //set also the name to reason about it without resolving the proxy
    ((Class)classifierProxy).setName(JavaUniquePathConstructor.getSimpleClassName(fullQualifiedName));
    return classifierProxy;
  }
 
View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

            fullQualifiedName = classifierName;
          }
          else {
            fullQualifiedName = packageName + classifierName;
          }
          classifierProxy.eSetProxyURI(JavaUniquePathConstructor.getClassifierURI(fullQualifiedName));
          //set also the name to reason about it without resolving the proxy
          ((Class)classifierProxy).setName(JavaUniquePathConstructor.getSimpleClassName(fullQualifiedName));
          resultList.add(classifierProxy);
        }
      }
View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

            fullQualifiedName = classifierName;
          }
          else {
            fullQualifiedName = packageName + classifierName;
          }
          classifierProxy.eSetProxyURI(JavaUniquePathConstructor.getClassifierURI(fullQualifiedName));
          //set also the name to reason about it without resolving the proxy
          ((Class)classifierProxy).setName(JavaUniquePathConstructor.getSimpleClassName(fullQualifiedName));
          resultList.add(classifierProxy);
        }
      }
View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

     
      String newFragment = newProxy.eProxyURI().fragment();
      newFragment = newFragment.substring(0,newFragment.indexOf("_") + 1) + nsPart;
     
      URI newURI = newProxy.eProxyURI().trimFragment().appendFragment(newFragment);
      newProxy.eSetProxyURI(newURI);
     
      idRef.setTarget((ReferenceableElement) newProxy);
     
      registerContextDependentProxy(resource,
          idRef,
View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

            {
              break;
            }
            else if (featureID == -2)
            {
              internalEObject.eSetProxyURI(readURI());
              break;
            }
            else
            {
              EStructuralFeatureData eStructuralFeatureData = getEStructuralFeatureData(eClassData, featureID);
View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

    {
      InternalEList<EObject> eAnnotationReferences = (InternalEList<EObject>)eAnnotation.getReferences();
      for (URI reference : references)
      {
        InternalEObject internalEObject = (InternalEObject)ecoreFactory.createEObject();
        internalEObject.eSetProxyURI(reference);
        eAnnotationReferences.addUnique(internalEObject);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

            {
              break;
            }
            else if (featureID == -2)
            {
              internalEObject.eSetProxyURI(readURI());
              if (version == Version.VERSION_1_0)
              {
                break;
              }
            }
View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

    {
      InternalEList<EObject> eAnnotationReferences = (InternalEList<EObject>)eAnnotation.getReferences();
      for (URI reference : references)
      {
        InternalEObject internalEObject = (InternalEObject)ecoreFactory.createEObject();
        internalEObject.eSetProxyURI(reference);
        eAnnotationReferences.addUnique(internalEObject);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eSetProxyURI()

    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("/"));
      internalEObject.eAdapters().clear();
      values.addUnique(internalEObject);
    }

    resource.getContents().clear();
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.