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

@OpenApiAll public class Usages extends Object
Utility class providing helper methods for working with Usage
  • Constructor Details

    • Usages

      public Usages()
  • Method Details

    • isUsageOrDefinition

      public static boolean isUsageOrDefinition(@CheckForNull Element element)
      Checks whether the given element is a Usage or Definition.
      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 a Usage or Definition.
      Parameters:
      eClass - the class to check
      Returns:
      true if the class is a usage or definition
    • isMetadataUsageOrDefinition

      public static boolean isMetadataUsageOrDefinition(@CheckForNull Element element)
      Checks whether the given element is a MetadataUsage or MetadataDefinition.
      Parameters:
      element - the element to check
      Returns:
      true if the element is a metadata usage or definition