Package de.xima.fc.common.graphdot
Class NodeId
- java.lang.Object
-
- de.xima.fc.common.graphdot.NodeId
-
- All Implemented Interfaces:
IGraphDotEdgeSpecifier<IGenericGraphDotStatement>
,IGraphDotElement
,Serializable
public final class NodeId extends Object implements IGraphDotElement, IGraphDotEdgeSpecifier<IGenericGraphDotStatement>
Represents a graph dot node ID. TheID
is required, theport
is optional."my-node" "my-node" : "my-port" "my-node" : ne "my-node" : "my-port" : ne
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeId(CharSequence id, Port port)
Creates a new node ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CharSequence
getId()
Port
getPort()
int
hashCode()
String
toGraphDotString()
Creates a string in the graph dot language representing this element.String
toString()
void
write(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
-
NodeId
public NodeId(CharSequence id, Port port)
Creates a new node ID.- Parameters:
id
- ID of the node, required.port
- Optional port of the node.
-
-
Method Detail
-
getId
public CharSequence getId()
- Returns:
- ID of the node.
-
getPort
public Port getPort()
- Returns:
- Optional port of the node.
-
write
public void write(GraphDotModelWriter writer) throws IOException
Description copied from interface:IGraphDotElement
Writes this element to the given writer, as a string in the graph dot language representing this element.- Specified by:
write
in 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:IGraphDotElement
Creates a string in the graph dot language representing this element.- Specified by:
toGraphDotString
in interfaceIGraphDotElement
- Returns:
- The graph dot representation of this graph dot element.
-
-