Class Lookup
- java.lang.Object
-
- com._1c.g5.modeling.xml.serializer.Lookup
-
public class Lookup extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Lookup.FeatureClassifierPair
-
Field Summary
Fields Modifier and Type Field Description protected static int
ATTRIBUTE_FEATURE_MAP
protected org.eclipse.emf.ecore.EClass[]
classes
protected static int
DATATYPE_ATTRIBUTE_MANY
protected static int
DATATYPE_CONTENT_SINGLE
protected static int
DATATYPE_ELEMENT_SINGLE
protected static int
DATATYPE_MANY
protected static int
DATATYPE_SINGLE
protected static int
DATATYPE_SINGLE_NILLABLE
protected ArrayList<org.eclipse.emf.ecore.EObject>
docRoots
protected static int
ELEMENT_FEATURE_MAP
protected org.eclipse.emf.ecore.xmi.XMLResource.ElementHandler
elementHandler
protected org.eclipse.emf.ecore.util.ExtendedMetaData
extendedMetaData
protected Lookup.FeatureClassifierPair
featureClassifierPair
protected int[][]
featureKinds
protected org.eclipse.emf.ecore.EStructuralFeature[][]
features
protected org.eclipse.emf.ecore.xmi.XMLResource.XMLMap
map
protected static int
MASK
protected static org.eclipse.emf.ecore.EStructuralFeature
NULL_FEATURE
protected static int
OBJECT_ATTRIBUTE_IDREF_MANY
protected static int
OBJECT_ATTRIBUTE_IDREF_SINGLE
protected static int
OBJECT_ATTRIBUTE_MANY
protected static int
OBJECT_ATTRIBUTE_SINGLE
protected static int
OBJECT_CONTAIN_MANY
protected static int
OBJECT_CONTAIN_MANY_UNSETTABLE
protected static int
OBJECT_CONTAIN_SINGLE
protected static int
OBJECT_CONTAIN_SINGLE_UNSETTABLE
protected static int
OBJECT_ELEMENT_IDREF_MANY
protected static int
OBJECT_ELEMENT_IDREF_SINGLE
protected static int
OBJECT_ELEMENT_IDREF_SINGLE_UNSETTABLE
protected static int
OBJECT_ELEMENT_MANY
protected static int
OBJECT_ELEMENT_SINGLE
protected static int
OBJECT_ELEMENT_SINGLE_UNSETTABLE
protected static int
OBJECT_HREF_MANY
protected static int
OBJECT_HREF_MANY_UNSETTABLE
protected static int
OBJECT_HREF_SINGLE
protected static int
OBJECT_HREF_SINGLE_UNSETTABLE
protected static int
SHIFT
protected static int
SIZE
protected Map<Lookup.FeatureClassifierPair,org.eclipse.emf.ecore.EStructuralFeature>
substitutionGroupMap
protected static int
TRANSIENT
protected static int
XMLNS_XMI_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description Lookup(org.eclipse.emf.ecore.xmi.XMLResource.XMLMap map)
Lookup(org.eclipse.emf.ecore.xmi.XMLResource.XMLMap map, org.eclipse.emf.ecore.util.ExtendedMetaData extendedMetaData)
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
featureKind(org.eclipse.emf.ecore.EStructuralFeature f)
org.eclipse.emf.ecore.EClass
getDocumentRoot(org.eclipse.emf.ecore.EPackage epackage)
org.eclipse.emf.ecore.EStructuralFeature[]
getFeatures(org.eclipse.emf.ecore.EClass cls)
protected int
getIndex(org.eclipse.emf.ecore.EClass cls)
int[]
getKinds(org.eclipse.emf.ecore.EClass cls, org.eclipse.emf.ecore.EStructuralFeature[] featureList)
org.eclipse.emf.ecore.EStructuralFeature
getRoot(org.eclipse.emf.ecore.EClassifier eClassifier)
org.eclipse.emf.ecore.EStructuralFeature
getSubstitutionGroup(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, org.eclipse.emf.ecore.EClassifier eClassifier)
protected boolean
isContainment(org.eclipse.emf.ecore.EStructuralFeature feature)
Проверяет, является ли данная фичаcontainment
-фичей.protected org.eclipse.emf.ecore.EStructuralFeature[]
listFeatures(org.eclipse.emf.ecore.EClass cls)
protected int[]
listKinds(org.eclipse.emf.ecore.EStructuralFeature[] featureList)
protected List<org.eclipse.emf.ecore.EStructuralFeature>
sort(List<org.eclipse.emf.ecore.EStructuralFeature> original)
Отсортировать список фич:containment
-фичи будут в конце результирующего списка.
-
-
-
Field Detail
-
TRANSIENT
protected static final int TRANSIENT
- See Also:
- Constant Field Values
-
DATATYPE_SINGLE
protected static final int DATATYPE_SINGLE
- See Also:
- Constant Field Values
-
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
-
DATATYPE_MANY
protected static final int DATATYPE_MANY
- See Also:
- Constant Field Values
-
OBJECT_CONTAIN_SINGLE
protected static final int OBJECT_CONTAIN_SINGLE
- See Also:
- Constant Field Values
-
OBJECT_CONTAIN_MANY
protected static final int OBJECT_CONTAIN_MANY
- See Also:
- Constant Field Values
-
OBJECT_HREF_SINGLE
protected static final int OBJECT_HREF_SINGLE
- See Also:
- Constant Field Values
-
OBJECT_HREF_MANY
protected static final int OBJECT_HREF_MANY
- 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_MANY
protected static final int OBJECT_ELEMENT_MANY
- 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
-
ELEMENT_FEATURE_MAP
protected static final int ELEMENT_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
-
XMLNS_XMI_ATTRIBUTE
protected static final int XMLNS_XMI_ATTRIBUTE
- See Also:
- Constant Field Values
-
SHIFT
protected static final int SHIFT
- See Also:
- Constant Field Values
-
SIZE
protected static final int SIZE
- See Also:
- Constant Field Values
-
MASK
protected static final int MASK
- 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
-
featureClassifierPair
protected Lookup.FeatureClassifierPair featureClassifierPair
-
substitutionGroupMap
protected Map<Lookup.FeatureClassifierPair,org.eclipse.emf.ecore.EStructuralFeature> substitutionGroupMap
-
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)
-
-