|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFragmentProvider
Used to compute fragments (i.e. resource local IDs) for EObjects and locate EObjects by fragment. Typically used within a Resource.
| Nested Class Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||