Class Interfaces

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

@OpenApiAll public class Interfaces extends Object
Utility class providing helper methods for working with InterfaceUsage or InterfaceDefinition
  • Constructor Details

    • Interfaces

      public Interfaces()
  • Method Details

    • isInterfaceUsageOrDefinition

      public static boolean isInterfaceUsageOrDefinition(@CheckForNull Element element)
      Checks whether the given element is an InterfaceUsage or InterfaceDefinition.
      Parameters:
      element - the element to check
      Returns:
      true if the element is an interface usage or definition
    • isInterfaceUsageOrDefinition

      public static boolean isInterfaceUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass)
      Checks whether the given EClass represents an InterfaceUsage or InterfaceDefinition.
      Parameters:
      eClass - the class to check
      Returns:
      true if the class is an interface usage or definition
    • getLastNotPortUsage

      @CheckForNull public static Feature getLastNotPortUsage(List<Feature> features)
      Returns the last feature in the list that is not a PortUsage. This is useful when traversing feature chains where trailing port usages should be ignored.
      Parameters:
      features - the list of features to inspect
      Returns:
      the last non-port feature, or null if none exists