Package de.xima.fc.common.graphdot
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttributeStatement(EAttributeStatementType type, IGraphDotAttributeList attributeList)Creates a new assignment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)IGraphDotAttributeListgetAttributeList()Gets the attributes to set.EAttributeStatementTypegetType()Gets the type of the element to which to assign the attributes.inthashCode()StringtoGraphDotString()Creates a string in the graph dot language representing this element.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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.xima.fc.common.graphdot.IGraphDotElement
toGraphDotString
-
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
write
public void write(GraphDotModelWriter writer) throws IOException
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
public final String 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.
-
-