Class Usages
java.lang.Object
com.dassault_systemes.modeler.sysml.model.Usages
Utility class providing helper methods for working with
Usage-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisMetadataUsageOrDefinition(Element element) Checks whether the given element is aMetadataUsageorMetadataDefinition.static booleanisUsageOrDefinition(Element element) Checks whether the given element is aUsageorDefinition.static booleanisUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents aUsageorDefinition.
-
Constructor Details
-
Usages
public Usages()
-
-
Method Details
-
isUsageOrDefinition
Checks whether the given element is aUsageorDefinition.- Parameters:
element- the element to check- Returns:
- true if the element is a usage or definition
-
isUsageOrDefinition
public static boolean isUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents aUsageorDefinition.- Parameters:
eClass- the class to check- Returns:
- true if the class is a usage or definition
-
isMetadataUsageOrDefinition
Checks whether the given element is aMetadataUsageorMetadataDefinition.- Parameters:
element- the element to check- Returns:
- true if the element is a metadata usage or definition
-