public class GenerateMojo
extends org.apache.maven.plugin.AbstractMojo
Constructor and Description |
---|
GenerateMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
File |
getDictFile()
Returns the dictionary file for which code generation should be executed.
|
String |
getFieldPackage()
Returns the default package to be used during field code generation.
|
File |
getOutputDirectory()
Returns the destination directory to used during code generation.
|
String |
getPackaging()
Returns the default package to be used during code generation.
|
org.apache.maven.project.MavenProject |
getProject()
Returns the
MavenProject instance for which code generation should be executed. |
File |
getSchemaDirectory()
Returns the directory containing schemas for code generation.
|
String |
getUtcTimestampPrecision()
Returns the default UtcTimestampPrecision to be used during field code generation.
|
boolean |
isDecimal()
Returns if BigDecimal has been enabled.
|
boolean |
isOrderedFields()
Returns if ordered fields have been enabled.
|
void |
setDecimal(boolean decimal)
Enables BigDecimal usage during code generation.
|
void |
setDictFile(File dictFile)
Sets the dictionary file for which code generation should be executed.
|
void |
setFieldPackage(String fieldPackage)
Sets the default package to be used during field code generation.
|
void |
setOrderedFields(boolean orderedFields)
Sets the ordered fields flag.
|
void |
setOutputDirectory(File outputDirectory)
Sets the destination directory to used during code generation.
|
void |
setPackaging(String packaging)
Sets the default package to be used during code generation.
|
void |
setProject(org.apache.maven.project.MavenProject project)
Sets the
MavenProject instance for which code generation should be executed. |
void |
setSchemaDirectory(File schemaDirectory)
Sets the directory containing schemas for code generation.
|
void |
setUtcTimestampPrecision(String utcTimestampPrecision)
Sets the default UtcTimestampPrecision to be used during field code generation.
|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Mojo.execute()
public File getOutputDirectory()
public void setOutputDirectory(File outputDirectory)
outputDirectory
- the destination directory to used during code generation.public String getPackaging()
public void setPackaging(String packaging)
packaging
- the default package to be used during code generation.public org.apache.maven.project.MavenProject getProject()
MavenProject
instance for which code generation should be executed.MavenProject
instance for which code generation should be executed.public void setProject(org.apache.maven.project.MavenProject project)
MavenProject
instance for which code generation should be executed.project
- the MavenProject
instance for which code generation should be executed.public File getDictFile()
public void setDictFile(File dictFile)
dictFile
- the dictionary file for which code generation should be executed.public File getSchemaDirectory()
public void setSchemaDirectory(File schemaDirectory)
schemaDirectory
- the directory containing schemas for code generation.public boolean isDecimal()
public void setDecimal(boolean decimal)
decimal
- if true, then enables BigDecimal generation; otherwise uses doublepublic boolean isOrderedFields()
public void setOrderedFields(boolean orderedFields)
orderedFields
- if true, then ordered fields is enabled.public String getFieldPackage()
public void setFieldPackage(String fieldPackage)
fieldPackage
- the default package to be used during field code generation.public String getUtcTimestampPrecision()
public void setUtcTimestampPrecision(String utcTimestampPrecision)
utcTimestampPrecision
- the default UtcTimestampPrecision to be used during field code generation.Copyright © 2021. All rights reserved.