Package com.nomagic.magicdraw.uml
Class ConnectorsCollector
java.lang.Object
com.nomagic.magicdraw.uml.ConnectorsCollector
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Connector>
collectConnectors
(ConnectableElement element) Collects direct and indirect Connectorsstatic Collection<Connector>
Collects only direct Connectorsstatic Port
Looks for a Port which is used to connect Connector on the given Property
-
Constructor Details
-
ConnectorsCollector
public ConnectorsCollector()
-
-
Method Details
-
collectConnectors
Collects direct and indirect Connectors- Parameters:
element
- element- Returns:
- direct and indirect Connectors
-
collectDirectConnectors
Collects only direct Connectors- Parameters:
element
- element- Returns:
- direct Connectors
-
getPort
Looks for a Port which is used to connect Connector on the given Property- Parameters:
connector
- connectorproperty
- property- Returns:
- a port on Property used to connect given Connector
-