public abstract class AbstractIncQueryProxyResolver extends AbstractIncQueryProvider implements IProxyResolver
Constructor and Description |
---|
AbstractIncQueryProxyResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
canResolve(org.eclipse.emf.ecore.EClass eType) |
boolean |
canResolve(org.eclipse.emf.ecore.EObject eObject) |
protected IIncQueryEngineHelper |
createIncQueryEngineHelper() |
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.ecore.EObject |
getEObject(org.eclipse.emf.common.util.URI uri,
ExtendedResourceSet contextResourceSet,
java.lang.Object contextObject,
boolean loadOnDemand)
Returns the object resolved by the URI.
|
protected abstract org.eclipse.emf.ecore.EObject[] |
getEObjectCandidates(org.eclipse.emf.ecore.EObject proxy,
java.lang.Object contextObject,
org.eclipse.incquery.runtime.api.IncQueryEngine engine) |
protected abstract org.eclipse.emf.ecore.EObject[] |
getEObjectCandidates(org.eclipse.emf.common.util.URI uri,
java.lang.Object contextObject,
org.eclipse.incquery.runtime.api.IncQueryEngine engine) |
protected IIncQueryEngineHelper |
getIncQueryEngineHelper() |
protected org.eclipse.emf.ecore.EObject |
getMatchingEObject(org.eclipse.emf.common.util.URI uri,
java.lang.Object contextObject,
org.eclipse.emf.ecore.EObject[] candidates) |
protected boolean |
matchesEObjectCandidate(org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.EObject candidate) |
protected boolean |
matchesEObjectCandidate(org.eclipse.emf.common.util.URI uri,
java.lang.Object contextObject,
org.eclipse.emf.ecore.EObject candidate) |
protected org.eclipse.emf.common.util.URI |
trimContextInfo(org.eclipse.emf.common.util.URI proxyURI,
org.eclipse.emf.ecore.EObject contextObject) |
getSupportedTypes, initSupportedTypes
protected IIncQueryEngineHelper getIncQueryEngineHelper()
protected IIncQueryEngineHelper createIncQueryEngineHelper()
protected abstract org.eclipse.emf.ecore.EObject[] getEObjectCandidates(org.eclipse.emf.ecore.EObject proxy, java.lang.Object contextObject, org.eclipse.incquery.runtime.api.IncQueryEngine engine)
proxy
- contextObject
- engine
- protected abstract org.eclipse.emf.ecore.EObject[] getEObjectCandidates(org.eclipse.emf.common.util.URI uri, java.lang.Object contextObject, org.eclipse.incquery.runtime.api.IncQueryEngine engine)
uri
- contextObject
- engine
- protected org.eclipse.emf.ecore.EObject getMatchingEObject(org.eclipse.emf.common.util.URI uri, java.lang.Object contextObject, org.eclipse.emf.ecore.EObject[] candidates)
protected boolean matchesEObjectCandidate(org.eclipse.emf.common.util.URI uri, java.lang.Object contextObject, org.eclipse.emf.ecore.EObject candidate)
protected boolean matchesEObjectCandidate(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EObject candidate)
public boolean canResolve(org.eclipse.emf.ecore.EObject eObject)
canResolve
in interface IProxyResolver
public boolean canResolve(org.eclipse.emf.ecore.EClass eType)
canResolve
in interface IProxyResolver
protected org.eclipse.emf.common.util.URI trimContextInfo(org.eclipse.emf.common.util.URI proxyURI, org.eclipse.emf.ecore.EObject contextObject)
public org.eclipse.emf.ecore.EObject getEObject(org.eclipse.emf.ecore.EObject proxy, org.eclipse.emf.ecore.EObject contextObject, boolean loadOnDemand)
IProxyResolver
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.getEObject
in interface IProxyResolver
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.public org.eclipse.emf.ecore.EObject getEObject(org.eclipse.emf.common.util.URI uri, ExtendedResourceSet contextResourceSet, java.lang.Object contextObject, boolean loadOnDemand)
IProxyResolver
getEObject
in interface IProxyResolver