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

@OpenApiAll public class Ports extends Object
Utility class providing helper methods for PortDefinition or PortUsage
  • Constructor Details

    • Ports

      public Ports()
  • Method Details

    • isOwningTypePortUsageOrDefinition

      public static boolean isOwningTypePortUsageOrDefinition(Feature feature)
      Checks whether the owning type of the given feature is a PortUsage or PortDefinition.
      Parameters:
      feature - the feature whose owning type is checked
      Returns:
      true if the owning type is a port usage or definition
    • isPortUsageOrDefinition

      public static boolean isPortUsageOrDefinition(@CheckForNull Element element)
      Checks whether the given element is a PortUsage or PortDefinition.
      Parameters:
      element - the element to check
      Returns:
      true if the element is a port usage or definition
    • isPortUsageOrDefinition

      public static boolean isPortUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass)
      Checks whether the given EClass represents a PortUsage or PortDefinition.
      Parameters:
      eClass - the class to check
      Returns:
      true if the class is a port usage or definition