public interface IFragmentProvider
Modifier and Type | Interface and Description |
---|---|
static interface |
IFragmentProvider.Fallback
Delegate the resolution of EObject or the computation of fragments to
the default implementation by invoking the respective methods on the given
instance of this fall-back delegate.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.EObject |
getEObject(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String fragment,
IFragmentProvider.Fallback fallback)
Locates an EObject in a resource by its fragment.
|
java.lang.String |
getFragment(org.eclipse.emf.ecore.EObject obj,
IFragmentProvider.Fallback fallback)
Computes the URI fragment (local ID) of the given object.
|
java.lang.String getFragment(org.eclipse.emf.ecore.EObject obj, IFragmentProvider.Fallback fallback)
obj
- the EObject to compute the fragment for.fallback
- if the default behavior should be used, delegate the
computation of the fragment to the default implementation of
Resource.getURIFragment(EObject)
.null
.org.eclipse.emf.ecore.EObject getEObject(org.eclipse.emf.ecore.resource.Resource resource, java.lang.String fragment, IFragmentProvider.Fallback fallback)
resource
- the resource serves as context instance.fragment
- the fragment of the object.fallback
- if the fragment was not created by this provider, delegate the
resolution to the default implementation of
Resource.getEObject(String)
.null
if the fragment could not be resolved to an object.