Class AttributeStatement
java.lang.Object
de.xima.fc.common.graphdot.AttributeStatement
- All Implemented Interfaces:
IDirectedGraphDotStatement, IGenericGraphDotStatement, IGraphDotElement, IGraphDotStatement, IUndirectedGraphDotStatement, Serializable
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 Summary
ConstructorsConstructorDescriptionAttributeStatement(EAttributeStatementType type, IGraphDotAttributeList attributeList) Creates a new assignment. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the attributes to set.getType()Gets the type of the element to which to assign the attributes.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
-
AttributeStatement
Creates a new assignment.- Parameters:
type- Type of the element to which to assign the attributes.attributeList- Attributes to set.
-
-
Method Details
-
equals
-
getAttributeList
Gets the attributes to set.- Returns:
- Attributes to set.
-
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
-
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
-