Package de.xima.fc.common.graphdot
Class UndirectedEdgeStatement
- java.lang.Object
 - 
- de.xima.fc.common.graphdot.UndirectedEdgeStatement
 
 
- 
- All Implemented Interfaces:
 IGraphDotEdgeStatement<IUndirectedGraphDotStatement>,IGraphDotElement,IGraphDotStatement,IUndirectedGraphDotStatement,Serializable
public final class UndirectedEdgeStatement extends Object implements IUndirectedGraphDotStatement
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:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description UndirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target, List<? extends IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributeList)Creates a new undirected 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
- 
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 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.
 
 
 - 
 
 -