Class Calculations
java.lang.Object
com.dassault_systemes.modeler.sysml.model.Calculations
Utility methods for identifying calculation-related usages and definitions.
These helpers centralize common type checks involving
CalculationUsage and CalculationDefinition, based on
Element, EClass, and owning-type relationships.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCalculationUsageOrDefinition(Element element) Returns whether the given element is aCalculationUsageorCalculationDefinition.static booleanisCalculationUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) static booleanReturns whether the owning type of the given feature is aCalculationUsageorCalculationDefinition.
-
Constructor Details
-
Calculations
public Calculations()
-
-
Method Details
-
isOwningTypeCalculationUsageOrDefinition
Returns whether the owning type of the given feature is aCalculationUsageorCalculationDefinition.- Parameters:
feature- the feature whose owning type is tested- Returns:
trueif the owning type is a calculation usage or definition
-
isCalculationUsageOrDefinition
Returns whether the given element is aCalculationUsageorCalculationDefinition.- Parameters:
element- the element to test- Returns:
trueif the element is a calculation usage or definition
-
isCalculationUsageOrDefinition
public static boolean isCalculationUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) - Parameters:
eClass- the class to test- Returns:
trueif the class is a calculation usage or definition
-