Package de.xima.fc.common.graphdot
Class UndirectedSubGraph
- java.lang.Object
-
- de.xima.fc.common.graphdot.UndirectedSubGraph
-
- All Implemented Interfaces:
IGraphDotElement
,IGraphDotStatement
,IGraphDotSubGraph<IUndirectedGraphDotStatement,UndirectedSubGraphExpression>
,IUndirectedGraphDotStatement
,Serializable
public final class UndirectedSubGraph extends Object implements IUndirectedGraphDotStatement
A sub graph statement with undirected edges.subgraph "my-graph" { foo -- bar; };
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UndirectedSubGraph(UndirectedSubGraphExpression expression)
Creates a new sub graph with undirected edges.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
E
getExpression()
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.IGraphDotElement
toGraphDotString, write
-
-
-
-
Constructor Detail
-
UndirectedSubGraph
public UndirectedSubGraph(UndirectedSubGraphExpression expression)
Creates a new sub graph with undirected edges.- Parameters:
expression
- The sub graph expression.
-
-
Method Detail
-
getExpression
public final E getExpression()
- Specified by:
getExpression
in interfaceIGraphDotSubGraph<S extends IGraphDotStatement,E extends de.xima.fc.common.graphdot.AGraphDotSubGraphExpression<S>>
- Returns:
- The sub graph expression.
-
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.
-
-