Package org.eclipse.xtext.resource.impl
Class DefaultReferenceDescription
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.DefaultReferenceDescription
-
- All Implemented Interfaces:
IReferenceDescription
public class DefaultReferenceDescription extends java.lang.Object implements IReferenceDescription
-
-
Constructor Summary
Constructors Constructor Description DefaultReferenceDescription(org.eclipse.emf.common.util.URI sourceEObjectUri, org.eclipse.emf.common.util.URI targetEObjectUri, org.eclipse.emf.ecore.EReference eReference, int indexInList, org.eclipse.emf.common.util.URI containerEObjectURI)DefaultReferenceDescription(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.ecore.EObject to, org.eclipse.emf.ecore.EReference eReference, int i, org.eclipse.emf.common.util.URI containerEObjectURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.util.URIgetContainerEObjectURI()org.eclipse.emf.ecore.EReferencegetEReference()intgetIndexInList()org.eclipse.emf.common.util.URIgetSourceEObjectUri()org.eclipse.emf.common.util.URIgetTargetEObjectUri()
-
-
-
Constructor Detail
-
DefaultReferenceDescription
public DefaultReferenceDescription(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.ecore.EObject to, org.eclipse.emf.ecore.EReference eReference, int i, org.eclipse.emf.common.util.URI containerEObjectURI)
-
DefaultReferenceDescription
public DefaultReferenceDescription(org.eclipse.emf.common.util.URI sourceEObjectUri, org.eclipse.emf.common.util.URI targetEObjectUri, org.eclipse.emf.ecore.EReference eReference, int indexInList, org.eclipse.emf.common.util.URI containerEObjectURI)- Since:
- 2.4
-
-
Method Detail
-
getIndexInList
public int getIndexInList()
- Specified by:
getIndexInListin interfaceIReferenceDescription- Returns:
- the index of the reference, if the reference isMultiple, -1 if it is a single value reference
-
getSourceEObjectUri
public org.eclipse.emf.common.util.URI getSourceEObjectUri()
- Specified by:
getSourceEObjectUriin interfaceIReferenceDescription- Returns:
- the URI pointing to the source
EObject
-
getTargetEObjectUri
public org.eclipse.emf.common.util.URI getTargetEObjectUri()
- Specified by:
getTargetEObjectUriin interfaceIReferenceDescription- Returns:
- the URI pointing to the target
EObject
-
getEReference
public org.eclipse.emf.ecore.EReference getEReference()
- Specified by:
getEReferencein interfaceIReferenceDescription- Returns:
- the
EReference
-
getContainerEObjectURI
public org.eclipse.emf.common.util.URI getContainerEObjectURI()
- Specified by:
getContainerEObjectURIin interfaceIReferenceDescription- Returns:
- the URI pointing to the exported
EObjectcontaining this reference. This can be the EObject defining the reference or one of its containers.
-
-