Class SuppressUtil


  • public final class SuppressUtil
    extends Object
    Suppression utilities and helpers.
    • Method Detail

      • getFeatureByType

        public static org.eclipse.emf.ecore.EReference getFeatureByType​(org.eclipse.emf.ecore.EObject eObject,
                                                                        MetadataType type)
        Provides a feature by object and metadata type
        Parameters:
        eObject - the object, cannot be null
        type - the metedata type, cannot be null
        Returns:
        the feature, never null
      • getContainmentFqnByTarget

        public static String getContainmentFqnByTarget​(IBmObject target)
        Provides FQN for containment suppressible object
        Parameters:
        target - the target object, cannot be null
        Returns:
      • getEclassContainments

        public static List<MetadataType> getEclassContainments​(org.eclipse.emf.ecore.EClass topObjectEclass)
        Provides Metadata types for top object eClass
        Parameters:
        topObjectEclass - the top object, cannot be null
        Returns:
        types list, never null
      • getMetadataAttributeInfo

        public static Pair<Pair<String,​String>,​String> getMetadataAttributeInfo​(MetadataType mdType)
        Provides suppression attribute info by metadata type.
        Parameters:
        mdType - the metadata type, cannot be null
        Returns:
        attribute info, never null
      • hasNoContaiments

        public static boolean hasNoContaiments​(org.eclipse.emf.ecore.EClass topObjectEclass)
        Check whether eClass refers to any containments
        Parameters:
        topObjectEclass - the top object, cannot be null
        Returns:
        true if there are containments