Package com.nomagic.magicdraw.uml2
Class Connectors
java.lang.Object
com.nomagic.magicdraw.uml2.Connectors
Convenient static methods to work with
Connector.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Connector>collectConnectors(ConnectableElement element) Collects direct and indirect Connectorsstatic Collection<Connector>Collects only direct Connectorsstatic ConnectorEndgetFirstEnd(Connector connector) Return a first connector endstatic ConnectorEndGets opposite connector end for a given connector end.static PortLooks for a Port which is used to connect Connector on the given Propertystatic ConnectorEndgetSecondEnd(Connector connector) Return a second connector end
-
Constructor Details
-
Connectors
public Connectors()
-
-
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
-
getFirstEnd
Return a first connector end- Parameters:
connector- connector- Returns:
- end
-
getSecondEnd
Return a second connector end- Parameters:
connector- connector- Returns:
- end
-
getOppositeEnd
Gets opposite connector end for a given connector end.- Parameters:
end- connector end for which to get opposite end- Returns:
- opposite connector end for a given connector end
-