Class Cases
java.lang.Object
com.dassault_systemes.modeler.sysml.model.Cases
Utility methods for identifying case-related usages and definitions,
including general cases, use cases, analysis cases, and verification cases.
These helpers centralize common type checks based on EClass,
Element, and owning-type relationships.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAnalysisCaseUsageOrDefinition(Element element) Returns whether the given element is anAnalysisCaseUsageorAnalysisCaseDefinition.static booleanisCaseUsageOrDefinition(Element element) Returns whether the given element is aCaseUsageorCaseDefinition.static booleanisCaseUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) static booleanReturns whether the owning type of the given feature is anAnalysisCaseUsageorAnalysisCaseDefinition.static booleanisOwningTypeCaseUsageOrDefinition(Feature feature) Returns whether the owning type of the given feature is aCaseUsageorCaseDefinition.static booleanReturns whether the owning type of the given feature is aUseCaseUsageorUseCaseDefinition.static booleanReturns whether the owning type of the given feature is aVerificationCaseUsageorVerificationCaseDefinition.static booleanisUseCaseUsageOrDefinition(Element element) Returns whether the given element is aUseCaseUsageorUseCaseDefinition.static booleanisUseCaseUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) static booleanReturns whether the given element is aVerificationCaseUsageorVerificationCaseDefinition.
-
Constructor Details
-
Cases
public Cases()
-
-
Method Details
-
isOwningTypeCaseUsageOrDefinition
Returns whether the owning type of the given feature is aCaseUsageorCaseDefinition.- Parameters:
feature- the feature whose owning type is tested- Returns:
trueif the owning type is a case usage or definition
-
isCaseUsageOrDefinition
Returns whether the given element is aCaseUsageorCaseDefinition.- Parameters:
element- the element to test- Returns:
trueif the element is a case usage or definition
-
isCaseUsageOrDefinition
public static boolean isCaseUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) - Parameters:
eClass- the class to test- Returns:
trueif the class is a case usage or definition
-
isOwningTypeUseCaseUsageOrDefinition
Returns whether the owning type of the given feature is aUseCaseUsageorUseCaseDefinition.- Parameters:
feature- the feature whose owning type is tested- Returns:
trueif the owning type is a use case usage or definition
-
isUseCaseUsageOrDefinition
Returns whether the given element is aUseCaseUsageorUseCaseDefinition.- Parameters:
element- the element to test- Returns:
trueif the element is a use case usage or definition
-
isUseCaseUsageOrDefinition
public static boolean isUseCaseUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) - Parameters:
eClass- the class to test- Returns:
trueif the class is a use case usage or definition
-
isOwningTypeAnalysisCaseUsageOrDefinition
Returns whether the owning type of the given feature is anAnalysisCaseUsageorAnalysisCaseDefinition.- Parameters:
feature- the feature whose owning type is tested- Returns:
trueif the owning type is an analysis case usage or definition
-
isAnalysisCaseUsageOrDefinition
Returns whether the given element is anAnalysisCaseUsageorAnalysisCaseDefinition.- Parameters:
element- the element to test- Returns:
trueif the element is an analysis case usage or definition
-
isOwningTypeVerificationCaseUsageOrDefinition
Returns whether the owning type of the given feature is aVerificationCaseUsageorVerificationCaseDefinition.- Parameters:
feature- the feature whose owning type is tested- Returns:
trueif the owning type is a verification case usage or definition
-
isVerificationCaseUsageOrDefinition
Returns whether the given element is aVerificationCaseUsageorVerificationCaseDefinition.- Parameters:
element- the element to test- Returns:
trueif the element is a verification case usage or definition
-