Class TypeDescriptionProviderUtil


  • public class TypeDescriptionProviderUtil
    extends Object
    Util class to provide TypeDescription from metadata objects in model
    • Constructor Detail

      • TypeDescriptionProviderUtil

        protected TypeDescriptionProviderUtil()
    • 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 be null
        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)
        Gets TypeDescription from given object
        Parameters:
        eObject - source object to search type in, cannot be null
        Returns:
        instance of type description of given object, or null if given object has not contains it