Package ch.ifocusit.livingdoc.plugin
Class DiagramMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
ch.ifocusit.livingdoc.plugin.baseMojo.AbstractAsciidoctorMojo
ch.ifocusit.livingdoc.plugin.baseMojo.AbstractDocsGeneratorMojo
ch.ifocusit.livingdoc.plugin.DiagramMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="diagram",
requiresDependencyResolution=RUNTIME_PLUS_SYSTEM,
defaultPhase=PROCESS_CLASSES)
public class DiagramMojo
extends AbstractDocsGeneratorMojo
- Author:
- Julien Boz
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested classes/interfaces inherited from class ch.ifocusit.livingdoc.plugin.baseMojo.AbstractAsciidoctorMojo
AbstractAsciidoctorMojo.Format -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringGenerate a diagram based on a single class (full name) and all his dependencies.Fields inherited from class ch.ifocusit.livingdoc.plugin.baseMojo.AbstractDocsGeneratorMojo
format, glossaryMapping, onlyAnnotated, packageRoot, repositorySystemFields inherited from class ch.ifocusit.livingdoc.plugin.baseMojo.AbstractAsciidoctorMojo
generatedDocsDirectory, PLANTUML_MACRO_NAME, project, TEMPLATES_OUTPUTFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Stringprotected StringgetTitle()setDiagramTitle(String diagramTitle) setDiagramType(DiagramMojo.DiagramType diagramType) Methods inherited from class ch.ifocusit.livingdoc.plugin.baseMojo.AbstractDocsGeneratorMojo
appendTitle, appendTitle, createAsciiDocBuilder, write, write, writeMethods inherited from class ch.ifocusit.livingdoc.plugin.baseMojo.AbstractAsciidoctorMojo
createAsciidoctor, execute, extractTemplatesFromJar, getOutput, options, writeMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
singleClassAndDependencies
@Parameter(property="livingdoc.diagram.singleClassAndDependencies") protected String singleClassAndDependenciesGenerate a diagram based on a single class (full name) and all his dependencies.
-
-
Constructor Details
-
DiagramMojo
public DiagramMojo()
-
-
Method Details
-
getOutputFilename
- Specified by:
getOutputFilenamein classAbstractDocsGeneratorMojo- Returns:
- the filename is defined by each mojo
-
getTitle
- Specified by:
getTitlein classAbstractDocsGeneratorMojo- Returns:
- the document title is defined by each mojo
-
executeMojo
public void executeMojo() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executeMojoin classAbstractAsciidoctorMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setDiagramTitle
-
setDiagramType
-