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. The
ID is required, the port 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getPort()inthashCode()final StringCreates a string in the graph dot language representing this element.final 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 interface IGraphDotElement
toGraphDotString
-
Constructor Details
-
NodeId
Creates a new node ID.- Parameters:
id- ID of the node, required.port- Optional port of the node.
-
-
Method Details
-
equals
-
getId
- Returns:
- ID of the node.
-
getPort
- Returns:
- Optional port of the node.
-
hashCode
-
write
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
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.
-
toString
-