Class UndirectedEdgeStatement
java.lang.Object
de.xima.fc.common.graphdot.UndirectedEdgeStatement
- All Implemented Interfaces:
IGraphDotEdgeStatement<IUndirectedGraphDotStatement>, IGraphDotElement, IGraphDotStatement, IUndirectedGraphDotStatement, Serializable
A undirected 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:
-
Constructor Summary
ConstructorsConstructorDescriptionUndirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target, List<? extends IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributeList) Creates a new undirected edge statement/ -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal EdgeAttributeListfinal EEdgeTypefinal List<IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> final IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> final IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> 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, write
-
Constructor Details
-
UndirectedEdgeStatement
public UndirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target, List<? extends IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributeList) Creates a new undirected edge statement/- Parameters:
source- Source node.target- Target node.moreNodes- Optional additional nodes.attributeList- Optional attributes for the edge.
-
-
Method Details
-
equals
-
getAttributeList
- Specified by:
getAttributeListin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Optional attributes of the edge. Never
null, but may be empty.
-
getEdgeOperation
- Specified by:
getEdgeOperationin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Whether this edge statement is for a directed or undirected edge. Never
null.
-
getMoreNodes
- Specified by:
getMoreNodesin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Optional additional nodes to connect to. Never
null, but may be empty.
-
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
- Specified by:
getTargetin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Target node of the edge, i.e. the end point of the edge. Never
null.
-
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
-