Class NodeStatement
java.lang.Object
de.xima.fc.common.graphdot.NodeStatement
- All Implemented Interfaces:
IDirectedGraphDotStatement, IGenericGraphDotStatement, IGraphDotElement, IGraphDotStatement, IUndirectedGraphDotStatement, Serializable
A graph dot element that represents a node statement.
"my-node" : "my-port" : ne [color = orange];
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNodeStatement(NodeId nodeId, NodeAttributeList attributes) Creates a new node statement. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()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
-
NodeStatement
Creates a new node statement.- Parameters:
nodeId- ID of the node.attributes- Attributes of the node.
-
-
Method Details
-
equals
-
getAttributeList
- Returns:
- Optional attributes, never
null, but might be empty.
-
getNodeId
- Returns:
- Node ID, never
null.
-
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
-