Class TypeDescriptionProviderUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.metadata.mdclass.util.TypeDescriptionProviderUtil
-
public class TypeDescriptionProviderUtil extends Object
Util class to provideTypeDescription
from metadata objects in model
-
-
Field Summary
Fields Modifier and Type Field Description static TypeDescriptionProviderUtil
INSTANCE
Singleton instance ofTypeDescriptionProviderUtil
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypeDescriptionProviderUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EStructuralFeature
getTypeCodeFeature(org.eclipse.emf.ecore.EClass eClass)
Gets type feature annotated as "code" from specified eClassTypeDescription
getTypeDescription(org.eclipse.emf.ecore.EObject eObject)
GetsTypeDescription
from given object
-
-
-
Field Detail
-
INSTANCE
public static final TypeDescriptionProviderUtil INSTANCE
Singleton instance ofTypeDescriptionProviderUtil
-
-
Method Detail
-
getTypeCodeFeature
public org.eclipse.emf.ecore.EStructuralFeature getTypeCodeFeature(org.eclipse.emf.ecore.EClass eClass)
Gets type feature annotated as "code" from specified eClass- Parameters:
eClass
- target feature eClass container, cannot benull
- Returns:
- feature annotated as "code" from specified eClass,
or
null
if given eClass has not contains it
-
getTypeDescription
public TypeDescription getTypeDescription(org.eclipse.emf.ecore.EObject eObject)
GetsTypeDescription
from given object- Parameters:
eObject
- source object to search type in, cannot benull
- Returns:
- instance of type description of given object, or
null
if given object has not contains it
-
-