public interface ExtendedResourceSet
extends org.eclipse.emf.ecore.resource.ResourceSet
Modifier and Type | Method and Description |
---|---|
void |
augmentToContextAwareProxy(org.eclipse.emf.ecore.EObject proxy,
org.eclipse.emf.ecore.resource.Resource contextResource)
Augments given
proxy to a context-aware proxy by adding key/value pairs that contain the
target metamodel descriptor and a context URI to the query string of the proxy URI. |
org.eclipse.emf.ecore.EObject |
getEObject(org.eclipse.emf.ecore.EObject proxy,
org.eclipse.emf.ecore.EObject contextObject,
boolean loadOnDemand)
Retrieves the object for specified
proxy . |
org.eclipse.emf.common.util.URI |
trimProxyContextInfo(org.eclipse.emf.common.util.URI proxyURI)
If given
proxy URI contains proxy context-related key/value pairs on its query
string , returns the URI formed by removing those key/value pairs or removing the query string entirely in case
that no other key/value pairs exist; returns given proxy URI unchanged, otherwise. |
createResource, createResource, getAdapterFactories, getAllContents, getEObject, getLoadOptions, getPackageRegistry, getResource, getResourceFactoryRegistry, getResources, getURIConverter, setPackageRegistry, setResourceFactoryRegistry, setURIConverter
org.eclipse.emf.ecore.EObject getEObject(org.eclipse.emf.ecore.EObject proxy, org.eclipse.emf.ecore.EObject contextObject, boolean loadOnDemand)
proxy
. Allows to use provided
contextObject
- i.e., the object referencing the proxy - to customize or optimize the way how the
resolution of the proxy is done.proxy
- The to be resolved.contextObject
- The context object
that can be used customize or optimize the way how the resolution
of the proxy is done.loadOnDemand
- Whether to load the resource or model containing the object that is referenced by given
proxy
if it is not already loaded.proxy
or null
if given
proxy
cannot be resolved.void augmentToContextAwareProxy(org.eclipse.emf.ecore.EObject proxy, org.eclipse.emf.ecore.resource.Resource contextResource)
proxy
to a context-aware proxy by adding key/value pairs that contain the
target metamodel descriptor
and a context URI
to the query string
of the proxy URI. Those are required to support the resolution of proxified references between
objects from different metamodels and to honor the resource scope
of the proxy URI when it
is being resolved.proxy
- The proxy to be handled.contextResource
- The resource that identifies the context of the proxy (typically the resource containing it).trimProxyContextInfo(URI)
org.eclipse.emf.common.util.URI trimProxyContextInfo(org.eclipse.emf.common.util.URI proxyURI)
proxy URI
contains proxy context-related key/value pairs on its query
string
, returns the URI formed by removing those key/value pairs or removing the query string entirely in case
that no other key/value pairs exist; returns given proxy URI unchanged, otherwise.proxyURI
- The context-aware proxy URI to be handled.#augmentToContextAwareProxy(EObject)