Class AbstractPlantUMLGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.elnarion.maven.plugin.plantuml.generator.AbstractPlantUMLGeneratorMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
PlantUMLGeneratorMojo,PlantUMLSequenceDiagramGeneratorMojo
public abstract class AbstractPlantUMLGeneratorMojo
extends org.apache.maven.plugin.AbstractMojo
The Class AbstractPlantUMLGeneratorMojo.
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateAsciidocWrappedDiagramText(String paramClassDiagramTextToWrap) Wraps a plantuml diagram text by an asciidoc diagram block.protected StringcreateMarkdownWrappedDiagramText(String paramClassDiagramTextToWrap) Wraps a plantuml diagram text by an markdown diagram block.Gets the additional plant uml configs.Gets the asciidoc diagram block delimiter.Gets the asciidoc diagram image type.Gets the asciidoc diagram name.protected ClassLoaderGets the compile class loader.org.apache.maven.plugin.descriptor.PluginDescriptorGets the descriptor.Gets the encoding.Gets the output directory.Gets the output filename.org.apache.maven.project.MavenProjectGets the project.booleanChecks if is enable asciidoc wrapper.booleanChecks if is enable markdown wrapper.voidsetAdditionalPlantUmlConfigs(List<String> additionalPlantUmlConfigs) Sets the additional plant uml configs.voidsetAsciidocDiagramBlockDelimiter(String asciidocDiagramBlockDelimiter) Sets the asciidoc diagram block delimiter.voidsetAsciidocDiagramImageFormat(String asciidocDiagramImageFormat) Sets the asciidoc diagram image type.voidsetAsciidocDiagramName(String asciidocDiagramName) Sets the asciidoc diagram name.voidsetDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor descriptor) Sets the descriptor.voidsetEnableAsciidocWrapper(boolean enableAsciidocWrapper) Sets the enable asciidoc wrapper.voidsetEnableMarkdownWrapper(boolean enableMarkdownWrapper) Sets the enable markdown wrapper.voidsetEncoding(String encoding) Sets the encoding.voidsetOutputDirectory(File outputDirectory) Sets the output directory.voidsetOutputFilename(String outputFilename) Sets the output filename.voidsetProject(org.apache.maven.project.MavenProject project) Sets the project.protected voidwriteDiagramToFile(String classDiagramText) Write diagram to file.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Constructor Details
-
AbstractPlantUMLGeneratorMojo
public AbstractPlantUMLGeneratorMojo()
-
-
Method Details
-
createAsciidocWrappedDiagramText
Wraps a plantuml diagram text by an asciidoc diagram block.- Parameters:
paramClassDiagramTextToWrap- the class diagram text- Returns:
- the asciidoc plantuml diagram block
-
createMarkdownWrappedDiagramText
Wraps a plantuml diagram text by an markdown diagram block.- Parameters:
paramClassDiagramTextToWrap- the class diagram text- Returns:
- the markdown plantuml diagram block
-
writeDiagramToFile
Write diagram to file.- Parameters:
classDiagramText- the class diagram text- Throws:
IOException- Signals that an I/O exception has occurred.
-
getCompileClassLoader
Gets the compile class loader.- Returns:
- ClassLoader - the compile class loader
- Throws:
org.apache.maven.plugin.MojoExecutionException- the mojo execution exception
-
getEncoding
Gets the encoding.- Returns:
- String - the encoding
-
setEncoding
Sets the encoding.- Parameters:
encoding- the encoding
-
getOutputDirectory
Gets the output directory.- Returns:
- File - the output directory
-
setOutputDirectory
Sets the output directory.- Parameters:
outputDirectory- the output directory
-
getOutputFilename
Gets the output filename.- Returns:
- String - the output filename
-
setOutputFilename
Sets the output filename.- Parameters:
outputFilename- the output filename
-
getDescriptor
public org.apache.maven.plugin.descriptor.PluginDescriptor getDescriptor()Gets the descriptor.- Returns:
- PluginDescriptor - the descriptor
-
setDescriptor
public void setDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor descriptor) Sets the descriptor.- Parameters:
descriptor- the descriptor
-
getProject
public org.apache.maven.project.MavenProject getProject()Gets the project.- Returns:
- MavenProject - the project
-
setProject
public void setProject(org.apache.maven.project.MavenProject project) Sets the project.- Parameters:
project- the project
-
isEnableAsciidocWrapper
public boolean isEnableAsciidocWrapper()Checks if is enable asciidoc wrapper.- Returns:
- true, if is enable asciidoc wrapper
-
setEnableAsciidocWrapper
public void setEnableAsciidocWrapper(boolean enableAsciidocWrapper) Sets the enable asciidoc wrapper.- Parameters:
enableAsciidocWrapper- the new enable asciidoc wrapper
-
isEnableMarkdowncWrapper
public boolean isEnableMarkdowncWrapper()Checks if is enable markdown wrapper.- Returns:
- true, if is enable markdown wrapper
-
setEnableMarkdownWrapper
public void setEnableMarkdownWrapper(boolean enableMarkdownWrapper) Sets the enable markdown wrapper.- Parameters:
enableMarkdownWrapper- the new enable markdown wrapper
-
getAsciidocDiagramName
Gets the asciidoc diagram name.- Returns:
- the asciidoc diagram name
-
setAsciidocDiagramName
Sets the asciidoc diagram name.- Parameters:
asciidocDiagramName- the new asciidoc diagram name
-
getAsciidocDiagramImageFormat
Gets the asciidoc diagram image type.- Returns:
- the asciidoc diagram image type
-
setAsciidocDiagramImageFormat
Sets the asciidoc diagram image type.- Parameters:
asciidocDiagramImageFormat- the new asciidoc diagram image type
-
getAsciidocDiagramBlockDelimiter
Gets the asciidoc diagram block delimiter.- Returns:
- the asciidoc diagram block delimiter
-
setAsciidocDiagramBlockDelimiter
Sets the asciidoc diagram block delimiter.- Parameters:
asciidocDiagramBlockDelimiter- the new asciidoc diagram block delimiter
-
getAdditionalPlantUmlConfigs
Gets the additional plant uml configs.- Returns:
- the additional plant uml configs
-
setAdditionalPlantUmlConfigs
Sets the additional plant uml configs.- Parameters:
additionalPlantUmlConfigs- the new additional plant uml configs
-