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.Documentorg.jdom2.Elementorg.jdom2.Element -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jdom2.ElementaddAttributeToElement(org.jdom2.Element element, String key, String value) voidaddAttributeToNode(org.jdom2.Element node, String attributeKeyId, String attributeValue) org.jdom2.ElementaddDataAttributeToElement(org.jdom2.Element element, String keyId, String content) voidvoidAdd an edge to the graphML document.org.jdom2.ElementaddEndpointToHyperedge(org.jdom2.Element hyperedge, String nodeId, String portIndex) voidorg.jdom2.Elementvoidorg.jdom2.Elementorg.jdom2.ElementAdd a node to the graphML document.voidaddPortToNode(org.jdom2.Element node, String portName) printToString(org.jdom2.Document doc) voidtoOutputStream(OutputStream outputStream) voidtoOutputStream(org.jdom2.Document doc, OutputStream outputStream) voidvoidtoStandardOutput(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
-