public class YedGraphMLDecorator extends Object implements GraphMLDecorator
<p>A GraphML decorator for yEd.</p>
| Constructor and Description |
|---|
YedGraphMLDecorator() |
| 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.
|
public 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)
GraphMLDecorator<p>Initialize the decorator.</p>
initialize in interface GraphMLDecoratorresult - 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.public Map<String,String> getNamespaces()
GraphMLDecorator<p>Return the additional namespaces identified by their prefixes which are used by the decorator.</p>
getNamespaces in interface GraphMLDecoratorpublic Map<String,String> getSchemaLocations()
GraphMLDecorator<p>Return the schema locations identified by their namespaces.</p>
getSchemaLocations in interface GraphMLDecoratorpublic void writeKeys()
throws XMLStreamException
GraphMLDecorator<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>
writeKeys in interface GraphMLDecoratorXMLStreamException - If writing fails.public boolean isWriteNode(com.buschmais.jqassistant.core.report.api.graph.model.Node node)
GraphMLDecorator<p>Determine if a node shall be written.</p>
isWriteNode in interface GraphMLDecoratornode - The node.public void writeNodeAttributes(com.buschmais.jqassistant.core.report.api.graph.model.Node node)
throws XMLStreamException
GraphMLDecorator<p>Add node attributes.</p>
writeNodeAttributes in interface GraphMLDecoratornode - the nodeXMLStreamExceptionpublic void writeNodeElements(com.buschmais.jqassistant.core.report.api.graph.model.Node node)
throws XMLStreamException
GraphMLDecorator<p>Add elements inside a node-element.</p>
writeNodeElements in interface GraphMLDecoratornode - the nodeXMLStreamExceptionpublic boolean isWriteRelationship(com.buschmais.jqassistant.core.report.api.graph.model.Relationship relationship)
GraphMLDecorator<p>Determine if a relationship shall be written.</p>
isWriteRelationship in interface GraphMLDecoratorrelationship - The relationship.public void writeRelationshipAttributes(com.buschmais.jqassistant.core.report.api.graph.model.Relationship relationship)
throws XMLStreamException
GraphMLDecorator<p>Add relationship attributes.</p>
writeRelationshipAttributes in interface GraphMLDecoratorrelationship - the relationshipXMLStreamExceptionpublic void writeRelationshipElements(com.buschmais.jqassistant.core.report.api.graph.model.Relationship relationship)
throws XMLStreamException
GraphMLDecorator<p>Add elements inside a relationship-element.</p>
writeRelationshipElements in interface GraphMLDecoratorrelationship - the relationshipXMLStreamExceptionpublic void close()
GraphMLDecorator<p>Finish writing the GraphML document.</p>
close in interface GraphMLDecoratorclose in interface Closeableclose in interface AutoCloseableCopyright © 2016–2021 jQAssistant Development Team. All rights reserved.