Package jamopp.proxy
Interface IJavaContextDependentURIFragment
-
- All Known Implementing Classes:
JavaContextDependentURIFragment
public interface IJavaContextDependentURIFragment
AnIContextDependentURIFragment
points at an element referenced from another element through anidentifier
. In contrast to a normal EMF URI fragment (URI.fragment
), which is a String that can be resolved to an element within aResource
, theidentifier
of aIContextDependentURIFragment
does not have to be globally unique.An
IContextDependentURIFragment
is registered for a proxy object for which it defines the URI fragment.
-
-
Field Summary
Fields Modifier and Type Field Description static String
INTERNAL_URI_FRAGMENT_PREFIX
A prefix that can be used in aURI.fragment
String of a proxy to indicate the existence of anIContextDependentURIFragment
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.jdt.core.dom.IBinding
getBinding()
Returns the binding associated with the proxy element provided by an Eclipse JDT Parser.EObject
getContainer()
Returns the element containing the proxy object.String
getIdentifier()
Returns an identifier identifying the elements at which the proxy object points to.int
getPositionInReference()
Returns the position within the reference if the reference contains multiple elements.EObject
getProxy()
Returns the proxy object.EReference
getReference()
Returns the reference in the container'sEClass
that contains the proxy object.void
setBinding(org.eclipse.jdt.core.dom.IBinding newBinding)
Sets the binding associated with the proxy element.
-
-
-
Field Detail
-
INTERNAL_URI_FRAGMENT_PREFIX
static final String INTERNAL_URI_FRAGMENT_PREFIX
A prefix that can be used in aURI.fragment
String of a proxy to indicate the existence of anIContextDependentURIFragment
.- See Also:
- Constant Field Values
-
-
Method Detail
-
getProxy
EObject getProxy()
Returns the proxy object.- Returns:
- The proxy object.
-
getIdentifier
String getIdentifier()
Returns an identifier identifying the elements at which the proxy object points to.- Returns:
- the identifier in this context.
-
getContainer
EObject getContainer()
Returns the element containing the proxy object.- Returns:
- The element that references the proxy.
-
getReference
EReference getReference()
Returns the reference in the container'sEClass
that contains the proxy object.- Returns:
- The reference.
-
getPositionInReference
int getPositionInReference()
Returns the position within the reference if the reference contains multiple elements.- Returns:
- The position or -1 otherwise.
-
getBinding
org.eclipse.jdt.core.dom.IBinding getBinding()
Returns the binding associated with the proxy element provided by an Eclipse JDT Parser.- Returns:
- the binding.
-
setBinding
void setBinding(org.eclipse.jdt.core.dom.IBinding newBinding)
Sets the binding associated with the proxy element.- Parameters:
newBinding
- the new binding.
-
-