Class NodeAttributeList
java.lang.Object
de.xima.fc.common.graphdot.NodeAttributeList
- All Implemented Interfaces:
IGraphDotAttributeList, IGraphDotElement, Serializable, Iterable<Map.Entry<? extends CharSequence, Object>>
An attribute list for nodes.
[color = green, label = hello]
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNodeAttributeList(List<? extends Map.Entry<? extends CharSequence, Object>> attributes) Creates a new node attribute list with the given attributes. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal List<? extends Map.Entry<? extends CharSequence, Object>> Gets the map with the attribute name mapped to the attribute's value.final inthashCode()final StringCreates a string in the graph dot language representing this element.final StringtoString()final 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 IGraphDotAttributeList
iteratorMethods inherited from interface IGraphDotElement
toGraphDotStringMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
NodeAttributeList
Creates a new node attribute list with the given attributes.- Parameters:
attributes- Attributes for the node.
-
-
Method Details
-
equals
-
getAttributes
Description copied from interface:IGraphDotAttributeListGets the map with the attribute name mapped to the attribute's value.- Specified by:
getAttributesin interfaceIGraphDotAttributeList- Returns:
- Map with the attribute name mapped to the attribute's value.
-
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
-