@Mojo(name="generate", defaultPhase=GENERATE_SOURCES) public class GenerateMojo extends AbstractMojo
Constructor and Description |
---|
GenerateMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
String |
getClassGenerationMode()
Returns the method to use for Java class generation.
|
boolean |
getCreateJdoDescriptors()
Indicates whether JDO descriptors should be generated during code generation.
|
File |
getDest()
Returns the destination directory to used during code generation.
|
boolean |
getMarshal()
Indicates whether #marshal() methods will be generated during the code generation.
|
String |
getNameConflictStrategy()
Returns the name conflict strategy to be used during code generation.
|
String |
getPackaging()
Returns the default package to be used during code generation.
|
MavenProject |
getProject()
Returns the
MavenProject instance for which code generation should be executed. |
File |
getResourceDestination()
Returns the destination directory for resource files generated during code generation.
|
File |
getSchema()
Returns the (single) XML schema file to be processed.
|
File |
getTstamp()
Returns the directory to store time stamp information.
|
String |
getTypes()
Returns the collection types Castor XML is capable of working with.
|
boolean |
isGenerateImportedSchemas()
Indicates whether code should be generated for imported XML schemas as well.
|
void |
setBindingfile(File bindingfile)
Sets the Castor XML code generator binding file to be used during code generation.
|
void |
setClassGenerationMode(String classPrinterMethod)
Sets the method to use for Java class generation; possible values are 'standard' (default) and 'velocity'.
|
void |
setCreateJdoDescriptors(boolean newCreateJdoDescriptors)
Sets whether JDO descriptors should be generated during code generation.
|
void |
setDest(File dest)
Sets the destination directory to used during code generation.
|
void |
setGenerateImportedSchemas(boolean generateImportedSchemas)
Sets whether code should be generated for imported XML schemas as well.
|
void |
setGenerateMappings(boolean generateMappings)
Sets whether mapping files should be created during code generation.
|
void |
setMarshal(boolean marshal)
Sets whether #marshal() methods will be generated during the code generation.
|
void |
setNameConflictStrategy(String nameConflictStrategy)
Sets the name conflict strategy to be used during code generation.
|
void |
setPackaging(String packaging)
Sets the default package to be used during code generation.
|
void |
setProject(MavenProject project)
Sets the
MavenProject instance for which code generation should be executed. |
void |
setProperties(File properties)
Sets the (user-specific) castorbuilder.properties file to be used during code generation.
|
void |
setResourceDestination(File resourceDestination)
Sets the destination directory for resource files generated during code generation.
|
void |
setSchema(File schema)
Sets the (single) XML schema file to be processed.
|
void |
setTstamp(File tstamp)
Sets the directory to store time stamp information.
|
void |
setTypes(String types)
Sets the collection types Castor XML is capable of working with.
|
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws MojoExecutionException
MojoExecutionException
Mojo.execute()
public File getDest()
public File getResourceDestination()
public void setDest(File dest)
dest
- the destination directory to used during code generation.public void setResourceDestination(File resourceDestination)
resourceDestination
- the destination directory for generated resource files.public File getTstamp()
public void setTstamp(File tstamp)
tstamp
- the directory to store time stamp information.public String getPackaging()
public void setPackaging(String packaging)
packaging
- the default package to be used during code generation.public String getNameConflictStrategy()
public void setNameConflictStrategy(String nameConflictStrategy)
nameConflictStrategy
- the name conflict strategy to be used during code generation.public File getSchema()
public void setSchema(File schema)
schema
- the (single) XML schema file to be processed.public String getTypes()
public void setTypes(String types)
types
- the collection types Castor XML is capable of working with.public void setBindingfile(File bindingfile)
bindingfile
- the Castor XML code generator binding file to be used during code generation.public void setProperties(File properties)
properties
- the (user-specific) castorbuilder.properties file to be used during code generation.public boolean getMarshal()
public void setMarshal(boolean marshal)
marshal
- True if #marshal() methods will be generated during the code generation.public boolean isGenerateImportedSchemas()
public void setGenerateImportedSchemas(boolean generateImportedSchemas)
generateImportedSchemas
- True if code should be generated for imported XML schemas as well.public MavenProject getProject()
MavenProject
instance for which code generation should be executed.MavenProject
instance for which code generation should be executed.public void setProject(MavenProject project)
MavenProject
instance for which code generation should be executed.project
- the MavenProject
instance for which code generation should be executed.public final boolean getCreateJdoDescriptors()
public final void setCreateJdoDescriptors(boolean newCreateJdoDescriptors)
newCreateJdoDescriptors
- True if JDO descriptors should be generated during code generation.public final void setGenerateMappings(boolean generateMappings)
generateMappings
- True if mapping files should be created during code generation.public String getClassGenerationMode()
public void setClassGenerationMode(String classPrinterMethod)
classPrinterMethod
- The class generation mode to use.Copyright © 2005-2015 Codehaus. All Rights Reserved.