Package de.xima.fc.common.graphdot
Class DirectedEdgeStatement
- java.lang.Object
-
- de.xima.fc.common.graphdot.DirectedEdgeStatement
-
- All Implemented Interfaces:
IDirectedGraphDotStatement,IGraphDotEdgeStatement<IDirectedGraphDotStatement>,IGraphDotElement,IGraphDotStatement,Serializable
public final class DirectedEdgeStatement extends Object implements IDirectedGraphDotStatement
A directed edge statement."node-1" : "port-1" : s -> "node-2" : "port-2" : n [style = filled, color = "green:blue"];
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, List<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributes)Creates a new directed edge statement/
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)EdgeAttributeListgetAttributeList()EEdgeTypegetEdgeOperation()List<IGraphDotEdgeSpecifier<? extends S>>getMoreNodes()IGraphDotEdgeSpecifier<? extends S>getSource()IGraphDotEdgeSpecifier<? extends S>getTarget()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.IGraphDotElement
toGraphDotString, write
-
-
-
-
Constructor Detail
-
DirectedEdgeStatement
public DirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, List<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributes)
Creates a new directed edge statement/- Parameters:
source- Source node.target- Target node.moreNodes- Optional additional nodes.attributes- Optional attributes for the edge.
-
-
Method Detail
-
getAttributeList
public final EdgeAttributeList getAttributeList()
- Specified by:
getAttributeListin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Optional attributes of the edge. Never
null, but may be empty.
-
getEdgeOperation
public final EEdgeType getEdgeOperation()
- Specified by:
getEdgeOperationin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Whether this edge statement is for a directed or undirected edge. Never
null.
-
getMoreNodes
public final List<IGraphDotEdgeSpecifier<? extends S>> getMoreNodes()
- Specified by:
getMoreNodesin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Optional additional nodes to connect to. Never
null, but may be empty.
-
getSource
public final IGraphDotEdgeSpecifier<? extends S> getSource()
- Specified by:
getSourcein interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Source node of the edge, i.e. the start point of the edge. Never
null.
-
getTarget
public final IGraphDotEdgeSpecifier<? extends S> getTarget()
- Specified by:
getTargetin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Target node of the edge, i.e. the end point of the edge. Never
null.
-
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.
-
-