Package de.xima.fc.common.graphdot
Class UndirectedGraph
- java.lang.Object
 - 
- de.xima.fc.common.graphdot.UndirectedGraph
 
 
- 
- All Implemented Interfaces:
 IGraphDotElement,IGraphDotGraph<IUndirectedGraphDotStatement>,Serializable
public final class UndirectedGraph extends Object
An undirected graph.strict graph "my-graph" { a -- b; }- Since:
 - 8.2.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description UndirectedGraph(boolean strict, CharSequence id, List<IUndirectedGraphDotStatement> statements)Creates a new undirected graph. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CharSequencegetId()List<S>getStatements()EGraphTypegetType()inthashCode()booleanisStrict()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
- 
UndirectedGraph
public UndirectedGraph(boolean strict, CharSequence id, List<IUndirectedGraphDotStatement> statements)Creates a new undirected graph.- Parameters:
 strict- Whether to use strict mode.id- Optional ID of the graph.statements- Statements for the graph.
 
 - 
 
- 
Method Detail
- 
getId
public CharSequence getId()
- Specified by:
 getIdin interfaceIGraphDotGraph<S extends IGraphDotStatement>- Returns:
 - Optional ID of the graph, never 
nullbut may be empty. 
 
- 
getStatements
public List<S> getStatements()
- Specified by:
 getStatementsin interfaceIGraphDotGraph<S extends IGraphDotStatement>- Returns:
 - Optional list of statements for the graph, never 
nullbut may be empty. 
 
- 
getType
public EGraphType getType()
- Specified by:
 getTypein interfaceIGraphDotGraph<S extends IGraphDotStatement>- Returns:
 - Whether this graph is a directed or undirected graph.
 
 
- 
isStrict
public boolean isStrict()
- Specified by:
 isStrictin interfaceIGraphDotGraph<S extends IGraphDotStatement>- Returns:
 - Whether this graph uses strict mode.
 
 
- 
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.
 
 
 - 
 
 -