Package jamopp.proxy
Class JavaContextDependentURIFragment<ContainerType extends EObject>
- java.lang.Object
-
- jamopp.proxy.JavaContextDependentURIFragment<ContainerType>
-
- Type Parameters:
ContainerType- the type of the object that contains the reference which shall be resolved.
- All Implemented Interfaces:
IJavaContextDependentURIFragment
public class JavaContextDependentURIFragment<ContainerType extends EObject> extends Object implements IJavaContextDependentURIFragment
Standard implementation ofIContextDependentURIFragment.
-
-
Field Summary
-
Fields inherited from interface jamopp.proxy.IJavaContextDependentURIFragment
INTERNAL_URI_FRAGMENT_PREFIX
-
-
Constructor Summary
Constructors Constructor Description JavaContextDependentURIFragment(String identifier, ContainerType container, EReference reference, int positionInReference, EObject proxy)JavaContextDependentURIFragment(String identifier, ContainerType container, EReference reference, int positionInReference, EObject proxy, org.eclipse.jdt.core.dom.IBinding binding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jdt.core.dom.IBindinggetBinding()Returns the binding associated with the proxy element provided by an Eclipse JDT Parser.ContainerTypegetContainer()Returns the element containing the proxy object.StringgetIdentifier()Returns an identifier identifying the elements at which the proxy object points to.intgetPositionInReference()Returns the position within the reference if the reference contains multiple elements.EObjectgetProxy()Returns the proxy object.EReferencegetReference()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.
-
-
-
Constructor Detail
-
JavaContextDependentURIFragment
public JavaContextDependentURIFragment(String identifier, ContainerType container, EReference reference, int positionInReference, EObject proxy)
-
JavaContextDependentURIFragment
public JavaContextDependentURIFragment(String identifier, ContainerType container, EReference reference, int positionInReference, EObject proxy, org.eclipse.jdt.core.dom.IBinding binding)
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Description copied from interface:IJavaContextDependentURIFragmentReturns an identifier identifying the elements at which the proxy object points to.- Specified by:
getIdentifierin interfaceIJavaContextDependentURIFragment- Returns:
- the identifier in this context.
-
getContainer
public ContainerType getContainer()
Description copied from interface:IJavaContextDependentURIFragmentReturns the element containing the proxy object.- Specified by:
getContainerin interfaceIJavaContextDependentURIFragment- Returns:
- The element that references the proxy.
-
getReference
public EReference getReference()
Description copied from interface:IJavaContextDependentURIFragmentReturns the reference in the container'sEClassthat contains the proxy object.- Specified by:
getReferencein interfaceIJavaContextDependentURIFragment- Returns:
- The reference.
-
getPositionInReference
public int getPositionInReference()
Description copied from interface:IJavaContextDependentURIFragmentReturns the position within the reference if the reference contains multiple elements.- Specified by:
getPositionInReferencein interfaceIJavaContextDependentURIFragment- Returns:
- The position or -1 otherwise.
-
getProxy
public EObject getProxy()
Description copied from interface:IJavaContextDependentURIFragmentReturns the proxy object.- Specified by:
getProxyin interfaceIJavaContextDependentURIFragment- Returns:
- The proxy object.
-
getBinding
public org.eclipse.jdt.core.dom.IBinding getBinding()
Description copied from interface:IJavaContextDependentURIFragmentReturns the binding associated with the proxy element provided by an Eclipse JDT Parser.- Specified by:
getBindingin interfaceIJavaContextDependentURIFragment- Returns:
- the binding.
-
setBinding
public void setBinding(org.eclipse.jdt.core.dom.IBinding newBinding)
Description copied from interface:IJavaContextDependentURIFragmentSets the binding associated with the proxy element.- Specified by:
setBindingin interfaceIJavaContextDependentURIFragment- Parameters:
newBinding- the new binding.
-
-