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
  
- Author:
 
  - Sven Efftinge - Initial contribution and API
 
| 
Constructor Summary | 
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)
 
            | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
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)
getIndexInList
public int getIndexInList()
- Specified by:
 getIndexInList in interface IReferenceDescription
 
- 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:
 getSourceEObjectUri in interface IReferenceDescription
 
- Returns:
 - the URI pointing to the source 
EObject 
 
getTargetEObjectUri
public org.eclipse.emf.common.util.URI getTargetEObjectUri()
- Specified by:
 getTargetEObjectUri in interface IReferenceDescription
 
- Returns:
 - the URI pointing to the target 
EObject 
 
getEReference
public org.eclipse.emf.ecore.EReference getEReference()
- Specified by:
 getEReference in interface IReferenceDescription
 
- Returns:
 - the 
EReference 
 
getContainerEObjectURI
public org.eclipse.emf.common.util.URI getContainerEObjectURI()
- Specified by:
 getContainerEObjectURI in interface IReferenceDescription
 
- Returns:
 - the URI pointing to the exported 
EObject containing this reference. 
                   This can be the EObject defining the reference or one of its containers.