Class AttributeStatement

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

public final class AttributeStatement extends Object implements IGenericGraphDotStatement
An attribute statement assigning default properties to a graph, node, or edge.
graph ["some-name" = "some-value"];
node ["some-name" = "some-value"];
edge ["some-name" = "some-value"];
Since:
8.2.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • AttributeStatement

      public AttributeStatement(EAttributeStatementType type, IGraphDotAttributeList attributeList)
      Creates a new assignment.
      Parameters:
      type - Type of the element to which to assign the attributes.
      attributeList - Attributes to set.
  • Method Details

    • equals

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

      public IGraphDotAttributeList getAttributeList()
      Gets the attributes to set.
      Returns:
      Attributes to set.
    • getType

      public EAttributeStatementType getType()
      Gets the type of the element to which to assign the attributes.
      Returns:
      Type of the element to which to assign the attributes.
    • 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