java.lang.Object
com.dassault_systemes.modeler.sysml.model.Cases

@OpenApiAll public class Cases extends Object
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 Details

    • Cases

      public Cases()
  • Method Details

    • isOwningTypeCaseUsageOrDefinition

      public static boolean isOwningTypeCaseUsageOrDefinition(Feature feature)
      Returns whether the owning type of the given feature is a CaseUsage or CaseDefinition.
      Parameters:
      feature - the feature whose owning type is tested
      Returns:
      true if the owning type is a case usage or definition
    • isCaseUsageOrDefinition

      public static boolean isCaseUsageOrDefinition(@CheckForNull Element element)
      Returns whether the given element is a CaseUsage or CaseDefinition.
      Parameters:
      element - the element to test
      Returns:
      true if the element is a case usage or definition
    • isCaseUsageOrDefinition

      public static boolean isCaseUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass)
      Returns whether the given EClass represents a CaseUsage or CaseDefinition.
      Parameters:
      eClass - the class to test
      Returns:
      true if the class is a case usage or definition
    • isOwningTypeUseCaseUsageOrDefinition

      public static boolean isOwningTypeUseCaseUsageOrDefinition(Feature feature)
      Returns whether the owning type of the given feature is a UseCaseUsage or UseCaseDefinition.
      Parameters:
      feature - the feature whose owning type is tested
      Returns:
      true if the owning type is a use case usage or definition
    • isUseCaseUsageOrDefinition

      public static boolean isUseCaseUsageOrDefinition(@CheckForNull Element element)
      Returns whether the given element is a UseCaseUsage or UseCaseDefinition.
      Parameters:
      element - the element to test
      Returns:
      true if the element is a use case usage or definition
    • isUseCaseUsageOrDefinition

      public static boolean isUseCaseUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass)
      Returns whether the given EClass represents a UseCaseUsage or UseCaseDefinition.
      Parameters:
      eClass - the class to test
      Returns:
      true if the class is a use case usage or definition
    • isOwningTypeAnalysisCaseUsageOrDefinition

      public static boolean isOwningTypeAnalysisCaseUsageOrDefinition(Feature feature)
      Returns whether the owning type of the given feature is an AnalysisCaseUsage or AnalysisCaseDefinition.
      Parameters:
      feature - the feature whose owning type is tested
      Returns:
      true if the owning type is an analysis case usage or definition
    • isAnalysisCaseUsageOrDefinition

      public static boolean isAnalysisCaseUsageOrDefinition(@CheckForNull Element element)
      Returns whether the given element is an AnalysisCaseUsage or AnalysisCaseDefinition.
      Parameters:
      element - the element to test
      Returns:
      true if the element is an analysis case usage or definition
    • isOwningTypeVerificationCaseUsageOrDefinition

      public static boolean isOwningTypeVerificationCaseUsageOrDefinition(Feature feature)
      Returns whether the owning type of the given feature is a VerificationCaseUsage or VerificationCaseDefinition.
      Parameters:
      feature - the feature whose owning type is tested
      Returns:
      true if the owning type is a verification case usage or definition
    • isVerificationCaseUsageOrDefinition

      public static boolean isVerificationCaseUsageOrDefinition(@CheckForNull Element element)
      Returns whether the given element is a VerificationCaseUsage or VerificationCaseDefinition.
      Parameters:
      element - the element to test
      Returns:
      true if the element is a verification case usage or definition