Class Lookup


  • public class Lookup
    extends Object
    • Field Detail

      • DATATYPE_ELEMENT_SINGLE

        protected static final int DATATYPE_ELEMENT_SINGLE
        See Also:
        Constant Field Values
      • DATATYPE_CONTENT_SINGLE

        protected static final int DATATYPE_CONTENT_SINGLE
        See Also:
        Constant Field Values
      • DATATYPE_SINGLE_NILLABLE

        protected static final int DATATYPE_SINGLE_NILLABLE
        See Also:
        Constant Field Values
      • OBJECT_CONTAIN_SINGLE

        protected static final int OBJECT_CONTAIN_SINGLE
        See Also:
        Constant Field Values
      • OBJECT_CONTAIN_SINGLE_UNSETTABLE

        protected static final int OBJECT_CONTAIN_SINGLE_UNSETTABLE
        See Also:
        Constant Field Values
      • OBJECT_CONTAIN_MANY_UNSETTABLE

        protected static final int OBJECT_CONTAIN_MANY_UNSETTABLE
        See Also:
        Constant Field Values
      • OBJECT_HREF_SINGLE_UNSETTABLE

        protected static final int OBJECT_HREF_SINGLE_UNSETTABLE
        See Also:
        Constant Field Values
      • OBJECT_HREF_MANY_UNSETTABLE

        protected static final int OBJECT_HREF_MANY_UNSETTABLE
        See Also:
        Constant Field Values
      • OBJECT_ELEMENT_SINGLE

        protected static final int OBJECT_ELEMENT_SINGLE
        See Also:
        Constant Field Values
      • OBJECT_ELEMENT_SINGLE_UNSETTABLE

        protected static final int OBJECT_ELEMENT_SINGLE_UNSETTABLE
        See Also:
        Constant Field Values
      • OBJECT_ELEMENT_IDREF_SINGLE

        protected static final int OBJECT_ELEMENT_IDREF_SINGLE
        See Also:
        Constant Field Values
      • OBJECT_ELEMENT_IDREF_SINGLE_UNSETTABLE

        protected static final int OBJECT_ELEMENT_IDREF_SINGLE_UNSETTABLE
        See Also:
        Constant Field Values
      • OBJECT_ELEMENT_IDREF_MANY

        protected static final int OBJECT_ELEMENT_IDREF_MANY
        See Also:
        Constant Field Values
      • ATTRIBUTE_FEATURE_MAP

        protected static final int ATTRIBUTE_FEATURE_MAP
        See Also:
        Constant Field Values
      • OBJECT_ATTRIBUTE_SINGLE

        protected static final int OBJECT_ATTRIBUTE_SINGLE
        See Also:
        Constant Field Values
      • OBJECT_ATTRIBUTE_MANY

        protected static final int OBJECT_ATTRIBUTE_MANY
        See Also:
        Constant Field Values
      • OBJECT_ATTRIBUTE_IDREF_SINGLE

        protected static final int OBJECT_ATTRIBUTE_IDREF_SINGLE
        See Also:
        Constant Field Values
      • OBJECT_ATTRIBUTE_IDREF_MANY

        protected static final int OBJECT_ATTRIBUTE_IDREF_MANY
        See Also:
        Constant Field Values
      • DATATYPE_ATTRIBUTE_MANY

        protected static final int DATATYPE_ATTRIBUTE_MANY
        See Also:
        Constant Field Values
      • classes

        protected org.eclipse.emf.ecore.EClass[] classes
      • features

        protected org.eclipse.emf.ecore.EStructuralFeature[][] features
      • featureKinds

        protected int[][] featureKinds
      • map

        protected org.eclipse.emf.ecore.xmi.XMLResource.XMLMap map
      • extendedMetaData

        protected org.eclipse.emf.ecore.util.ExtendedMetaData extendedMetaData
      • docRoots

        protected ArrayList<org.eclipse.emf.ecore.EObject> docRoots
      • elementHandler

        protected org.eclipse.emf.ecore.xmi.XMLResource.ElementHandler elementHandler
      • NULL_FEATURE

        protected static final org.eclipse.emf.ecore.EStructuralFeature NULL_FEATURE
    • Constructor Detail

      • Lookup

        public Lookup​(org.eclipse.emf.ecore.xmi.XMLResource.XMLMap map)
      • Lookup

        public Lookup​(org.eclipse.emf.ecore.xmi.XMLResource.XMLMap map,
                      org.eclipse.emf.ecore.util.ExtendedMetaData extendedMetaData)
      • Lookup

        public Lookup​(org.eclipse.emf.ecore.xmi.XMLResource.XMLMap map,
                      org.eclipse.emf.ecore.util.ExtendedMetaData extendedMetaData,
                      org.eclipse.emf.ecore.xmi.XMLResource.ElementHandler elementHandler)
    • Method Detail

      • getDocumentRoot

        public org.eclipse.emf.ecore.EClass getDocumentRoot​(org.eclipse.emf.ecore.EPackage epackage)
      • getFeatures

        public org.eclipse.emf.ecore.EStructuralFeature[] getFeatures​(org.eclipse.emf.ecore.EClass cls)
      • getKinds

        public int[] getKinds​(org.eclipse.emf.ecore.EClass cls,
                              org.eclipse.emf.ecore.EStructuralFeature[] featureList)
      • getSubstitutionGroup

        public org.eclipse.emf.ecore.EStructuralFeature getSubstitutionGroup​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                                                                             org.eclipse.emf.ecore.EClassifier eClassifier)
      • getRoot

        public org.eclipse.emf.ecore.EStructuralFeature getRoot​(org.eclipse.emf.ecore.EClassifier eClassifier)
      • getIndex

        protected int getIndex​(org.eclipse.emf.ecore.EClass cls)
      • listFeatures

        protected org.eclipse.emf.ecore.EStructuralFeature[] listFeatures​(org.eclipse.emf.ecore.EClass cls)
      • sort

        protected List<org.eclipse.emf.ecore.EStructuralFeature> sort​(List<org.eclipse.emf.ecore.EStructuralFeature> original)
        Отсортировать список фич: containment-фичи будут в конце результирующего списка.
        Parameters:
        original - оригинальный список, не может быть null
        Returns:
        отсортированый список: containment-фичи будут в конце результирующего списка, никогда не может быть null
      • isContainment

        protected boolean isContainment​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Проверяет, является ли данная фича containment-фичей.
        Parameters:
        feature - фича, чтобы проверить, не может быть null
        Returns:
        является ли данная фича containment-фичей
      • listKinds

        protected int[] listKinds​(org.eclipse.emf.ecore.EStructuralFeature[] featureList)
      • featureKind

        protected int featureKind​(org.eclipse.emf.ecore.EStructuralFeature f)