Class NodeStatement

java.lang.Object
de.xima.fc.common.graphdot.NodeStatement
All Implemented Interfaces:
IDirectedGraphDotStatement, IGenericGraphDotStatement, IGraphDotElement, IGraphDotStatement, IUndirectedGraphDotStatement, Serializable

public final class NodeStatement extends Object implements IGenericGraphDotStatement
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 Details

    • NodeStatement

      public NodeStatement(NodeId nodeId, NodeAttributeList attributes)
      Creates a new node statement.
      Parameters:
      nodeId - ID of the node.
      attributes - Attributes of the node.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getAttributeList

      public NodeAttributeList getAttributeList()
      Returns:
      Optional attributes, never null, but might be empty.
    • getNodeId

      public NodeId getNodeId()
      Returns:
      Node ID, never null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 interface IGraphDotElement
      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 interface IGraphDotElement
      Returns:
      The graph dot representation of this graph dot element.
    • toString

      public final String toString()
      Overrides:
      toString in class Object