Package de.xima.fc.common.graphdot
Class SubGraphAttributeList
- java.lang.Object
-
- de.xima.fc.common.graphdot.SubGraphAttributeList
-
- All Implemented Interfaces:
IGraphDotAttributeList
,IGraphDotElement
,Serializable
,Iterable<Map.Entry<? extends CharSequence,Object>>
public class SubGraphAttributeList extends Object
An attribute list for sub graphs.[bgcolor = green]
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SubGraphAttributeList(List<? extends Map.Entry<? extends CharSequence,Object>> attributes)
Creates a new sub graph attribute list with the given attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<? extends Map.Entry<? extends CharSequence,Object>>
getAttributes()
Gets the map with the attribute name mapped to the attribute's value.int
hashCode()
String
toGraphDotString()
Creates a string in the graph dot language representing this element.String
toString()
void
write(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
-
SubGraphAttributeList
public SubGraphAttributeList(List<? extends Map.Entry<? extends CharSequence,Object>> attributes)
Creates a new sub graph attribute list with the given attributes.- Parameters:
attributes
- Attributes for the sub graph.
-
-
Method Detail
-
getAttributes
public final List<? extends Map.Entry<? extends CharSequence,Object>> getAttributes()
Description copied from interface:IGraphDotAttributeList
Gets the map with the attribute name mapped to the attribute's value.- Specified by:
getAttributes
in 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:IGraphDotElement
Writes this element to the given writer, as a string in the graph dot language representing this element.- Specified by:
write
in 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:IGraphDotElement
Creates a string in the graph dot language representing this element.- Specified by:
toGraphDotString
in interfaceIGraphDotElement
- Returns:
- The graph dot representation of this graph dot element.
-
-