Class Ports
java.lang.Object
com.dassault_systemes.modeler.sysml.model.Ports
Utility class providing helper methods for
PortDefinition or PortUsage-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisOwningTypePortUsageOrDefinition(Feature feature) Checks whether the owning type of the given feature is aPortUsageorPortDefinition.static booleanisPortUsageOrDefinition(Element element) Checks whether the given element is aPortUsageorPortDefinition.static booleanisPortUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents aPortUsageorPortDefinition.
-
Constructor Details
-
Ports
public Ports()
-
-
Method Details
-
isOwningTypePortUsageOrDefinition
Checks whether the owning type of the given feature is aPortUsageorPortDefinition.- Parameters:
feature- the feature whose owning type is checked- Returns:
- true if the owning type is a port usage or definition
-
isPortUsageOrDefinition
Checks whether the given element is aPortUsageorPortDefinition.- 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 aPortUsageorPortDefinition.- Parameters:
eClass- the class to check- Returns:
- true if the class is a port usage or definition
-