org.eclipse.xtext.resource
Interface IFragmentProvider.Fallback
- Enclosing interface:
- IFragmentProvider
public 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.
Implementations will always fall-back to the default behavior of
the resource implementation that uses an IFragmentProvider
to
modify the semantics of Resource.getURIFragment(EObject)
and
Resource.getEObject(String)
.
- Author:
- Sebastian Zarnekow - Initial contribution and API
Method Summary |
org.eclipse.emf.ecore.EObject |
getEObject(java.lang.String fragment)
|
java.lang.String |
getFragment(org.eclipse.emf.ecore.EObject obj)
|
getFragment
java.lang.String getFragment(org.eclipse.emf.ecore.EObject obj)
- Returns:
- the default fragment for the given object, never
null
. - See Also:
IFragmentProvider.getFragment(EObject, Fallback)
getEObject
org.eclipse.emf.ecore.EObject getEObject(java.lang.String fragment)
- Returns:
- the resolved object or
null
. - See Also:
IFragmentProvider.getEObject(Resource, String, Fallback)