Class DefaultReferenceDescription

    • 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)  
    • 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:
        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
      • 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.