Class GraphMLDomBuilder
java.lang.Object
org.bigraphs.framework.converter.graphml.GraphMLDomBuilder
Utility class for converting bigraph objects into a GraphML document.
- Author:
- Dominik Grzelak
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.jdom2.Document
org.jdom2.Element
org.jdom2.Element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jdom2.Element
addAttributeToElement
(org.jdom2.Element element, String key, String value) void
addAttributeToNode
(org.jdom2.Element node, String attributeKeyId, String attributeValue) org.jdom2.Element
addDataAttributeToElement
(org.jdom2.Element element, String keyId, String content) void
void
Add an edge to the graphML document.org.jdom2.Element
addEndpointToHyperedge
(org.jdom2.Element hyperedge, String nodeId, String portIndex) void
org.jdom2.Element
void
org.jdom2.Element
org.jdom2.Element
Add a node to the graphML document.void
addPortToNode
(org.jdom2.Element node, String portName) printToString
(org.jdom2.Document doc) void
toOutputStream
(OutputStream outputStream) void
toOutputStream
(org.jdom2.Document doc, OutputStream outputStream) void
void
toStandardOutput
(org.jdom2.Document doc)
-
Field Details
-
graphMLRoot
public org.jdom2.Element graphMLRoot -
document
public org.jdom2.Document document -
graph
public org.jdom2.Element graph
-
-
Constructor Details
-
GraphMLDomBuilder
public GraphMLDomBuilder()
-
-
Method Details
-
addHeader
public void addHeader() -
addKey
-
addEdge
Add an edge to the graphML document.- Parameters:
id
- the id of the edge
-
addEdge
-
addNode
-
addNode
Add a node to the graphML document.- Parameters:
id
- the id of the node
-
addHyperedge
public org.jdom2.Element addHyperedge() -
addAttributeToElement
-
addDataAttributeToElement
-
addEndpointToHyperedge
-
addPortToNode
-
addAttributeToNode
-
printToString
-
printToString
-
toStandardOutput
- Throws:
IOException
-
toOutputStream
- Throws:
IOException
-
toOutputStream
- Throws:
IOException
-
toStandardOutput
- Throws:
IOException
-