Class DirectedSubGraphExpression
java.lang.Object
de.xima.fc.common.graphdot.DirectedSubGraphExpression
- All Implemented Interfaces:
IGraphDotEdgeSpecifier<IDirectedGraphDotStatement>, IGraphDotElement, IGraphDotSubGraphExpression<IDirectedGraphDotStatement>, Serializable
A sub graph expression with directed edges.
subgraph "my-graph" {
foo -> bar;
}
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDirectedSubGraphExpression(CharSequence id, List<IDirectedGraphDotStatement> statements) Creates a new sub graph with directed edges. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal CharSequencegetId()final List<IDirectedGraphDotStatement> 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 IGraphDotElement
toGraphDotString
-
Constructor Details
-
DirectedSubGraphExpression
Creates a new sub graph with directed edges.- Parameters:
id- Optional ID.statements- Optional statement of the sub graph.
-
-
Method Details
-
equals
-
getId
- Specified by:
getIdin interfaceIGraphDotSubGraphExpression<S extends IGraphDotStatement>- Returns:
- The optional ID of this sub graph. Never
null, but might be empty.
-
getStatements
- Specified by:
getStatementsin interfaceIGraphDotSubGraphExpression<S extends IGraphDotStatement>- Returns:
- A list of statements contained in this sub graph. Never
null, but might be empty.
-
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
-