Class SuppressUtil
- java.lang.Object
-
- com.e1c.g5.v8.dt.check.suppress.util.SuppressUtil
-
public final class SuppressUtil extends Object
Suppression utilities and helpers.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSUPPRESS_OBJECT_FQN_SUFFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetContainmentFqnByTarget(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.EReferencegetFeatureByType(org.eclipse.emf.ecore.EObject eObject, MetadataType type)Provides a feature by object and metadata typestatic Pair<Pair<String,String>,String>getMetadataAttributeInfo(MetadataType mdType)Provides suppression attribute info by metadata type.static booleanhasNoContaiments(org.eclipse.emf.ecore.EClass topObjectEclass)Check whether eClass refers to any containments
-
-
-
Field Detail
-
SUPPRESS_OBJECT_FQN_SUFFIX
public static final String SUPPRESS_OBJECT_FQN_SUFFIX
- See Also:
- Constant Field Values
-
-
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 benulltype- the metedata type, cannot benull- Returns:
- the feature, never
null
-
getContainmentFqnByTarget
public static String getContainmentFqnByTarget(IBmObject target)
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
public static Pair<Pair<String,String>,String> getMetadataAttributeInfo(MetadataType mdType)
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:
trueif there are containments
-
-