Examples of eProxyURI()


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

  }

  @Override public <T> T findService(EObject e, Class<T> serviceType) {
    if (e.eIsProxy()) {
      InternalEObject internalEObject = (InternalEObject) e;
      return findService(internalEObject.eProxyURI(), serviceType);
    }
    Resource resource = e.eResource();
    return (resource != null) ? findService(resource.getURI(), serviceType) : null;
  }
}
View Full Code Here

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

    //namespace needs to be converted into reference chain
    for(String nsPart : nsClassifierReference.getNamespaces()) {
      IdentifierReference idRef = ReferencesFactory.eINSTANCE.createIdentifierReference();
      InternalEObject newProxy = (InternalEObject) EcoreUtil.copy(proxy);
     
      String newFragment = newProxy.eProxyURI().fragment();
      newFragment = newFragment.substring(0,newFragment.indexOf("_") + 1) + nsPart;
     
      URI newURI = newProxy.eProxyURI().trimFragment().appendFragment(newFragment);
      newProxy.eSetProxyURI(newURI);
     
View Full Code Here

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

      InternalEObject newProxy = (InternalEObject) EcoreUtil.copy(proxy);
     
      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,
View Full Code Here

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

          idRef,
          targetReference,
          nsPart,
          newProxy);
     
      String proxyURI = newProxy.eProxyURI().toString();
      proxyURI = proxyURI.substring(0,proxyURI.lastIndexOf("_"));
     
      if(prevIdRef != null) {
        prevIdRef.setNext(idRef);
      }
View Full Code Here

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

        EReference oppositeEReference = eReference.getEOpposite();
        if (oppositeEReference != null && oppositeEReference.isChangeable() && proxy.eIsSet(eReference))
        {
          // Try to resolve the proxy locally.
          //
          EObject resolvedEObject = xmlResource.getEObject(proxy.eProxyURI().fragment());
          if (resolvedEObject != null)
          {
            // We won't need to process this again later.
            //
            if (!isEndDocument)
View Full Code Here

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

  public String getHREF(EObject obj)
  {
    InternalEObject o = (InternalEObject) obj;

    URI objectURI = o.eProxyURI();
    if (objectURI == null)
    {
      Resource otherResource = obj.eResource();
      if (otherResource == null)
      {
View Full Code Here

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

   * @return the serialized object / proxy
   */
  protected DBObject buildReferencedObject(EReference eReference, EObject targetObject)
  {
    InternalEObject internalEObject = (InternalEObject) targetObject;
    URI eProxyURI = internalEObject.eProxyURI();

    if (eProxyURI != null)
    {
      BasicDBObject dbObject = new BasicDBObject(2);
      dbObject.put(Keywords.PROXY_KEY, uriHandler.deresolve(eProxyURI).toString());
View Full Code Here

Examples of org.eclipse.emf.ecore.impl.BasicEObjectImpl.eProxyURI()

    if(baseElement==null){
      return null;
    }
    if(baseElement.getId()==null){
      BasicEObjectImpl basicEObjectImpl=(BasicEObjectImpl)baseElement;
      if(basicEObjectImpl!=null&&basicEObjectImpl.eProxyURI()!=null){
        String elementId=basicEObjectImpl.eProxyURI().fragment();
        BaseElement bpmnElement=definitions.getElement(elementId);
        return bpmnElement;
      }
      else{
View Full Code Here

Examples of org.eclipse.emf.ecore.impl.BasicEObjectImpl.eProxyURI()

      return null;
    }
    if(baseElement.getId()==null){
      BasicEObjectImpl basicEObjectImpl=(BasicEObjectImpl)baseElement;
      if(basicEObjectImpl!=null&&basicEObjectImpl.eProxyURI()!=null){
        String elementId=basicEObjectImpl.eProxyURI().fragment();
        BaseElement bpmnElement=definitions.getElement(elementId);
        return bpmnElement;
      }
      else{
        return null;
View Full Code Here

Examples of org.eclipse.emf.ecore.impl.BasicEObjectImpl.eProxyURI()

      return null;
    }
   
    if(baseElement.getId()==null){
      BasicEObjectImpl basicEObjectImpl=(BasicEObjectImpl)baseElement;
      if(basicEObjectImpl!=null&&basicEObjectImpl.eProxyURI()!=null){
        String elementId=basicEObjectImpl.eProxyURI().fragment();
        BaseElement bpmnElement=definitions.getElement(elementId);
        return bpmnElement;
      }
      else{
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.