Package de.xima.fc.common.graphdot
Class Port
- java.lang.Object
 - 
- de.xima.fc.common.graphdot.Port
 
 
- 
- All Implemented Interfaces:
 IGraphDotElement,Serializable
public final class Port extends Object implements IGraphDotElement
- Since:
 - 8.2.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Port(CharSequence id, ECompassPointType compassPoint)Creates a new port. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ECompassPointTypegetCompassPoint()CharSequencegetId()inthashCode()StringtoGraphDotString()Creates a string in the graph dot language representing this element.StringtoString()voidwrite(GraphDotModelWriter writer)Writes this element to the given writer, as a string in the graph dot language representing this element.- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.common.graphdot.IGraphDotElement
toGraphDotString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
Port
public Port(CharSequence id, ECompassPointType compassPoint)
Creates a new port. Either an ID or a compass point is required.- Parameters:
 id- Optional ID of the port.compassPoint- Optional compass point of the port.
 
 - 
 
- 
Method Detail
- 
getCompassPoint
public ECompassPointType getCompassPoint()
- Returns:
 - Optional direction of the port.
 
 
- 
getId
public CharSequence getId()
- Returns:
 - ID of the port. Never 
null, but may be empty. 
 
- 
write
public void write(GraphDotModelWriter writer) throws IOException
Description copied from interface:IGraphDotElementWrites this element to the given writer, as a string in the graph dot language representing this element.- Specified by:
 writein interfaceIGraphDotElement- Parameters:
 writer- Writer to write to.- Throws:
 IOException- When the writer could not be written to.
 
- 
toGraphDotString
public final String toGraphDotString()
Description copied from interface:IGraphDotElementCreates a string in the graph dot language representing this element.- Specified by:
 toGraphDotStringin interfaceIGraphDotElement- Returns:
 - The graph dot representation of this graph dot element.
 
 
 - 
 
 -