Package com.nomagic.magicdraw.uml
Class ConnectorsCollector
- java.lang.Object
-
- com.nomagic.magicdraw.uml.ConnectorsCollector
-
@OpenApiAll public class ConnectorsCollector extends java.lang.Object
An utility class to collect Connectors connected to some Element. Collects direct Connectors(connected directly to an Element) or indirect Connectors (connected though some Port)
-
-
Constructor Summary
Constructors Constructor Description ConnectorsCollector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<Connector>
collectConnectors(ConnectableElement element)
Collects direct and indirect Connectorsstatic java.util.Collection<Connector>
collectDirectConnectors(ConnectableElement element)
Collects only direct Connectorsstatic Port
getPort(Connector connector, Property property)
Looks for a Port which is used to connect Connector on the given Property
-
-
-
Method Detail
-
collectConnectors
public static java.util.Collection<Connector> collectConnectors(ConnectableElement element)
Collects direct and indirect Connectors- Parameters:
element
- element- Returns:
- direct and indirect Connectors
-
collectDirectConnectors
public static java.util.Collection<Connector> collectDirectConnectors(ConnectableElement element)
Collects only direct Connectors- Parameters:
element
- element- Returns:
- direct Connectors
-
-