Class PlantUMLGeneratorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- de.elnarion.maven.plugin.plantuml.generator.PlantUMLGeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate", defaultPhase=GENERATE_SOURCES, threadSafe=true, requiresDependencyResolution=COMPILE, requiresProject=true) public class PlantUMLGeneratorMojo extends org.apache.maven.plugin.AbstractMojoThis Mojo is used as maven frontend of the PlantUMLClassDiagramGenerator in the artifact plantuml-generator-util.
-
-
Constructor Summary
Constructors Constructor Description PlantUMLGeneratorMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Execute.StringgetAsciidocDiagramBlockDelimiter()Gets the asciidoc diagram block delimiter.StringgetAsciidocDiagramImageFormat()Gets the asciidoc diagram image type.StringgetAsciidocDiagramName()Gets the asciidoc diagram name.StringgetBlacklistRegexp()Gets the blacklist regexp.org.apache.maven.plugin.descriptor.PluginDescriptorgetDescriptor()Gets the descriptor.StringgetEncoding()Gets the encoding.List<String>getHideClasses()Gets the hide classes.FilegetOutputDirectory()Gets the output directory.StringgetOutputFilename()Gets the output filename.org.apache.maven.project.MavenProjectgetProject()Gets the project.List<String>getScanPackages()Gets the scan packages.StringgetWhitelistRegexp()Gets the whitelist regexp.booleanisAddJPAAnnotations()booleanisEnableAsciidocWrapper()Checks if is enable asciidoc wrapper.booleanisHideFields()Checks if is hide fields.booleanisHideMethods()Checks if is hide methods.voidsetAddJPAAnnotations(boolean addJPAAnnotations)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.voidsetBlacklistRegexp(String blacklistRegexp)Sets the blacklist regexp.voidsetDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor descriptor)Sets the descriptor.voidsetEnableAsciidocWrapper(boolean enableAsciidocWrapper)Sets the enable asciidoc wrapper.voidsetEncoding(String encoding)Sets the encoding.voidsetHideClasses(List<String> hideClasses)Sets the hide classes.voidsetHideFields(boolean hideFields)Sets the hide fields.voidsetHideMethods(boolean hideMethods)Sets the hide methods.voidsetOutputDirectory(File outputDirectory)Sets the output directory.voidsetOutputFilename(String outputFilename)Sets the output filename.voidsetProject(org.apache.maven.project.MavenProject project)Sets the project.voidsetScanPackages(List<String> scanPackages)Sets the scan packages.voidsetWhitelistRegexp(String whitelistRegexp)Sets the whitelist regexp.
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecute.- Throws:
org.apache.maven.plugin.MojoExecutionException- the mojo execution exceptionorg.apache.maven.plugin.MojoFailureException- the mojo failure exception
-
getEncoding
public String getEncoding()
Gets the encoding.- Returns:
- String - the encoding
-
setEncoding
public void setEncoding(String encoding)
Sets the encoding.- Parameters:
encoding- the encoding
-
getOutputDirectory
public File getOutputDirectory()
Gets the output directory.- Returns:
- File - the output directory
-
setOutputDirectory
public void setOutputDirectory(File outputDirectory)
Sets the output directory.- Parameters:
outputDirectory- the output directory
-
getOutputFilename
public String getOutputFilename()
Gets the output filename.- Returns:
- String - the output filename
-
setOutputFilename
public void setOutputFilename(String outputFilename)
Sets the output filename.- Parameters:
outputFilename- the output filename
-
isHideFields
public boolean isHideFields()
Checks if is hide fields.- Returns:
- true, if is hide fields
-
setHideFields
public void setHideFields(boolean hideFields)
Sets the hide fields.- Parameters:
hideFields- the hide fields
-
isHideMethods
public boolean isHideMethods()
Checks if is hide methods.- Returns:
- true, if is hide methods
-
setHideMethods
public void setHideMethods(boolean hideMethods)
Sets the hide methods.- Parameters:
hideMethods- the hide methods
-
getScanPackages
public List<String> getScanPackages()
Gets the scan packages.- Returns:
- List - the scan packages
-
setScanPackages
public void setScanPackages(List<String> scanPackages)
Sets the scan packages.- Parameters:
scanPackages- the scan packages
-
getHideClasses
public List<String> getHideClasses()
Gets the hide classes.- Returns:
- List - the hide classes
-
setHideClasses
public void setHideClasses(List<String> hideClasses)
Sets the hide classes.- Parameters:
hideClasses- the hide classes
-
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
-
getWhitelistRegexp
public String getWhitelistRegexp()
Gets the whitelist regexp.- Returns:
- the whitelist regexp
-
setWhitelistRegexp
public void setWhitelistRegexp(String whitelistRegexp)
Sets the whitelist regexp.- Parameters:
whitelistRegexp- the new whitelist regexp
-
getBlacklistRegexp
public String getBlacklistRegexp()
Gets the blacklist regexp.- Returns:
- the blacklist regexp
-
setBlacklistRegexp
public void setBlacklistRegexp(String blacklistRegexp)
Sets the blacklist regexp.- Parameters:
blacklistRegexp- the new blacklist regexp
-
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
-
getAsciidocDiagramName
public String getAsciidocDiagramName()
Gets the asciidoc diagram name.- Returns:
- the asciidoc diagram name
-
setAsciidocDiagramName
public void setAsciidocDiagramName(String asciidocDiagramName)
Sets the asciidoc diagram name.- Parameters:
asciidocDiagramName- the new asciidoc diagram name
-
getAsciidocDiagramImageFormat
public String getAsciidocDiagramImageFormat()
Gets the asciidoc diagram image type.- Returns:
- the asciidoc diagram image type
-
setAsciidocDiagramImageFormat
public void setAsciidocDiagramImageFormat(String asciidocDiagramImageFormat)
Sets the asciidoc diagram image type.- Parameters:
asciidocDiagramImageFormat- the new asciidoc diagram image type
-
getAsciidocDiagramBlockDelimiter
public String getAsciidocDiagramBlockDelimiter()
Gets the asciidoc diagram block delimiter.- Returns:
- the asciidoc diagram block delimiter
-
setAsciidocDiagramBlockDelimiter
public void setAsciidocDiagramBlockDelimiter(String asciidocDiagramBlockDelimiter)
Sets the asciidoc diagram block delimiter.- Parameters:
asciidocDiagramBlockDelimiter- the new asciidoc diagram block delimiter
-
isAddJPAAnnotations
public boolean isAddJPAAnnotations()
-
setAddJPAAnnotations
public void setAddJPAAnnotations(boolean addJPAAnnotations)
-
-