public interface GraphMLDecorator extends Closeable
<p>Defines the interface for a GraphML decorator.</p> <p>Provides methods that are called if elements for nodes or relationships are written which may be implemented for adding attributes or XML elements.</p>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
<p>Finish writing the GraphML document.
|
Map<String,String> |
getNamespaces()
<p>Return the additional namespaces identified by their prefixes which are used by the decorator.
|
Map<String,String> |
getSchemaLocations()
<p>Return the schema locations identified by their namespaces.
|
void |
initialize(com.buschmais.jqassistant.core.report.api.model.Result<?> result,
com.buschmais.jqassistant.core.report.api.graph.model.SubGraph subGraph,
XMLStreamWriter xmlWriter,
File file,
Map<String,Object> properties)
<p>Initialize the decorator.
|
boolean |
isWriteNode(com.buschmais.jqassistant.core.report.api.graph.model.Node node)
<p>Determine if a node shall be written.
|
boolean |
isWriteRelationship(com.buschmais.jqassistant.core.report.api.graph.model.Relationship relationship)
<p>Determine if a relationship shall be written.
|
void |
writeKeys()
<p>Writes a bunch of keys in the graphml-Tag that will be used for formating or so.
|
void |
writeNodeAttributes(com.buschmais.jqassistant.core.report.api.graph.model.Node node)
<p>Add node attributes.
|
void |
writeNodeElements(com.buschmais.jqassistant.core.report.api.graph.model.Node node)
<p>Add elements inside a node-element.
|
void |
writeRelationshipAttributes(com.buschmais.jqassistant.core.report.api.graph.model.Relationship relationship)
<p>Add relationship attributes.
|
void |
writeRelationshipElements(com.buschmais.jqassistant.core.report.api.graph.model.Relationship relationship)
<p>Add elements inside a relationship-element.
|
void initialize(com.buschmais.jqassistant.core.report.api.model.Result<?> result,
com.buschmais.jqassistant.core.report.api.graph.model.SubGraph subGraph,
XMLStreamWriter xmlWriter,
File file,
Map<String,Object> properties)
<p>Initialize the decorator.</p>
result - The current result that is written as a graph.subGraph - The sub graph to render.xmlWriter - The XMLStreamWriter that is used for writing.file - The output file.properties - The properties from the GraphML plugin configuration.Map<String,String> getNamespaces()
<p>Return the additional namespaces identified by their prefixes which are used by the decorator.</p>
Map<String,String> getSchemaLocations()
<p>Return the schema locations identified by their namespaces.</p>
void writeKeys()
throws XMLStreamException
<p>Writes a bunch of keys in the graphml-Tag that will be used for formating or so. This method can be overwritten if any special default keys are necessary. Please call super to ensure all needed keys will be created.</p>
XMLStreamException - If writing fails.boolean isWriteNode(com.buschmais.jqassistant.core.report.api.graph.model.Node node)
<p>Determine if a node shall be written.</p>
node - The node.void writeNodeAttributes(com.buschmais.jqassistant.core.report.api.graph.model.Node node)
throws XMLStreamException
<p>Add node attributes.</p>
node - the nodeXMLStreamExceptionvoid writeNodeElements(com.buschmais.jqassistant.core.report.api.graph.model.Node node)
throws XMLStreamException
<p>Add elements inside a node-element.</p>
node - the nodeXMLStreamExceptionboolean isWriteRelationship(com.buschmais.jqassistant.core.report.api.graph.model.Relationship relationship)
<p>Determine if a relationship shall be written.</p>
relationship - The relationship.void writeRelationshipAttributes(com.buschmais.jqassistant.core.report.api.graph.model.Relationship relationship)
throws XMLStreamException
<p>Add relationship attributes.</p>
relationship - the relationshipXMLStreamExceptionvoid writeRelationshipElements(com.buschmais.jqassistant.core.report.api.graph.model.Relationship relationship)
throws XMLStreamException
<p>Add elements inside a relationship-element.</p>
relationship - the relationshipXMLStreamExceptionvoid close()
<p>Finish writing the GraphML document.</p>
close in interface AutoCloseableclose in interface CloseableCopyright © 2016–2021 jQAssistant Development Team. All rights reserved.