Package jamopp.proxy
Interface IJavaContextDependentURIFragment
- All Known Implementing Classes:
JavaContextDependentURIFragment
public interface IJavaContextDependentURIFragment
An
IContextDependentURIFragment points at an element referenced
from another element through an identifier. In contrast to a
normal EMF URI fragment (URI.fragment), which is a String that can
be resolved to an element within a Resource, the
identifier of a IContextDependentURIFragment does not
have to be globally unique.
An IContextDependentURIFragment is registered for a proxy object for which it defines the URI
fragment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA prefix that can be used in aURI.fragmentString of a proxy to indicate the existence of anIContextDependentURIFragment. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jdt.core.dom.IBindingReturns the binding associated with the proxy element provided by an Eclipse JDT Parser.Returns the element containing the proxy object.Returns an identifier identifying the elements at which the proxy object points to.intReturns the position within the reference if the reference contains multiple elements.getProxy()Returns the proxy object.Returns the reference in the container'sEClassthat contains the proxy object.voidsetBinding(org.eclipse.jdt.core.dom.IBinding newBinding) Sets the binding associated with the proxy element.
-
Field Details
-
INTERNAL_URI_FRAGMENT_PREFIX
A prefix that can be used in aURI.fragmentString of a proxy to indicate the existence of anIContextDependentURIFragment.- See Also:
-
-
Method Details
-
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'sEClassthat 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.
-