Package de.xima.fc.common.graphdot
Class NodeAttributeList
- java.lang.Object
-
- de.xima.fc.common.graphdot.NodeAttributeList
-
- All Implemented Interfaces:
IGraphDotAttributeList,IGraphDotElement,Serializable,Iterable<Map.Entry<? extends CharSequence,Object>>
public class NodeAttributeList extends Object
An attribute list for nodes.[color = green, label = hello]
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeAttributeList(List<? extends Map.Entry<? extends CharSequence,Object>> attributes)Creates a new node attribute list with the given attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<? extends Map.Entry<? extends CharSequence,Object>>getAttributes()Gets the map with the attribute name mapped to the attribute's value.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.IGraphDotAttributeList
iterator
-
Methods inherited from interface de.xima.fc.common.graphdot.IGraphDotElement
toGraphDotString
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
NodeAttributeList
public NodeAttributeList(List<? extends Map.Entry<? extends CharSequence,Object>> attributes)
Creates a new node attribute list with the given attributes.- Parameters:
attributes- Attributes for the node.
-
-
Method Detail
-
getAttributes
public final List<? extends Map.Entry<? extends CharSequence,Object>> 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.
-
write
public final 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.
-
-