Class Interfaces
java.lang.Object
com.dassault_systemes.modeler.sysml.model.Interfaces
Utility class providing helper methods for working with
InterfaceUsage or
InterfaceDefinition-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeaturegetLastNotPortUsage(List<Feature> features) Returns the last feature in the list that is not aPortUsage.static booleanisInterfaceUsageOrDefinition(Element element) Checks whether the given element is anInterfaceUsageorInterfaceDefinition.static booleanisInterfaceUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents anInterfaceUsageorInterfaceDefinition.
-
Constructor Details
-
Interfaces
public Interfaces()
-
-
Method Details
-
isInterfaceUsageOrDefinition
Checks whether the given element is anInterfaceUsageorInterfaceDefinition.- 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 anInterfaceUsageorInterfaceDefinition.- Parameters:
eClass- the class to check- Returns:
- true if the class is an interface usage or definition
-
getLastNotPortUsage
Returns the last feature in the list that is not aPortUsage. 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
-