Class MdProducedTypesUtil


  • public class MdProducedTypesUtil
    extends Object
    Util class to take take ProducedType of MdObject by MdType eClass
    • Method Detail

      • getProducedType

        public static TypeItem getProducedType​(MdObject mdObject,
                                               org.eclipse.emf.ecore.EClass mdTypeEClass)
        Method returns produced type item of MdObject by MdType eClass
        Parameters:
        mdObject - the mdObject to get types from (not null)
        mdTypeEClass - the EClass of produced type container (not null)
        Returns:
        Type or TypeSet or null if there is no produced type for given mdTypeEClass
        Throws:
        IllegalArgumentException - if unsupported mdTypeEClass is requested for given mdObject