public class VisDiagramExporter extends Object implements DiagramExporter
TODO: rewrite this class to use a template engine.
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,GraphNode> |
graphNodeMap |
protected File |
outputDirectory |
| Constructor and Description |
|---|
VisDiagramExporter(Map<String,GraphNode> graphNodeMap,
File outputDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(GraphNode rootNode)
Outputs the `graph.html` file to the output directory of the project using the parameter rootNode as
the root element of the graph.
|
protected org.apache.maven.plugin.logging.Log |
getLog() |
protected void |
printFooter(FileWriter writer) |
protected void |
printGraphData(GraphNode rootNode,
FileWriter writer) |
protected void |
printHeader(FileWriter writer) |
protected final File outputDirectory
public void execute(GraphNode rootNode) throws org.apache.maven.plugin.MojoExecutionException
DiagramExporterexecute in interface DiagramExporterrootNode - the root element of the graph.org.apache.maven.plugin.MojoExecutionException - when unexpected errors occur during the execution of the Maven pluginDiagramExporterprotected void printHeader(FileWriter writer) throws IOException
IOExceptionprotected void printGraphData(GraphNode rootNode, FileWriter writer) throws IOException
IOExceptionprotected void printFooter(FileWriter writer) throws IOException
IOExceptionprotected org.apache.maven.plugin.logging.Log getLog()
Copyright © 2019 Atlassian. All rights reserved.