Class SuppressUtil
java.lang.Object
com.e1c.g5.v8.dt.check.suppress.util.SuppressUtil
Suppression utilities and helpers.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getContainmentFqnByTarget
(IBmObject target) Provides FQN for containment suppressible objectstatic List<MetadataType>
getEclassContainments
(org.eclipse.emf.ecore.EClass topObjectEclass) Provides Metadata types for top object eClassstatic org.eclipse.emf.ecore.EReference
getFeatureByType
(org.eclipse.emf.ecore.EObject eObject, MetadataType type) Provides a feature by object and metadata typegetMetadataAttributeInfo
(MetadataType mdType) Provides suppression attribute info by metadata type.static boolean
hasNoContaiments
(org.eclipse.emf.ecore.EClass topObjectEclass) Check whether eClass refers to any containments
-
Field Details
-
SUPPRESS_OBJECT_FQN_SUFFIX
- See Also:
-
-
Method Details
-
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 benull
type
- the metedata type, cannot benull
- Returns:
- the feature, never
null
-
getContainmentFqnByTarget
Provides FQN for containment suppressible object- Parameters:
target
- the target object, cannot benull
- 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 benull
- Returns:
- types list, never
null
-
getMetadataAttributeInfo
Provides suppression attribute info by metadata type.- Parameters:
mdType
- the metadata type, cannot benull
- 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 benull
- Returns:
true
if there are containments
-