org.eclipse.xtext.resource.impl
Class DefaultReferenceDescription

java.lang.Object
  extended by 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)
           
 
Method Summary
 org.eclipse.emf.common.util.URI getContainerEObjectURI()
           
 org.eclipse.emf.ecore.EReference getEReference()
           
 int getIndexInList()
           
 org.eclipse.emf.common.util.URI getSourceEObjectUri()
           
 org.eclipse.emf.common.util.URI getTargetEObjectUri()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
Method Detail

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.