org.exolab.castor.tools.ant.taskdefs
Class CastorSourceGenTask
MatchingTask
org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask
public final class CastorSourceGenTask
extends MatchingTask
An
Ant task to call the Castor
Source Generator. It can be passed a file, a directory, a Fileset or all
three.
$Revision: 6543 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
void | addFileset(FileSet set) - Adds a fileset to process that contains schemas to process.
|
void | execute() - Public execute method -- entry point for the Ant task.
|
void | setBindingfile(String bindingfile) - Sets the binding file to be used for code generation.
|
void | setCaseInsensitive(boolean caseInsensitive) - Controls whether enumerated type lookup should be performed in a case
insensitive manner.
|
void | setDir(File dir) - Sets the directory such that all schemas in this directory will have code
generated for them.
|
void | setFile(File file) - Sets the individual schema that will have code generated for it.
|
void | setGenerateImportedSchemas(boolean generateImportedSchemas) - Controls whether to generate code for imported schemas as well.
|
void | setLineseparator(String ls) - Sets the line seperator to use for code generation.
|
void | setNodesc(boolean b) - Sets whether or not class descriptors are generated.
|
void | setNomarshal(boolean b) - Sets whether or not marshaling methods are generated.
|
void | setNomarshall(boolean b) - For the correct spelling, see
setNomarshal(boolean) .
|
void | setPackage(String pack) - Sets the package that generated code will belong to.
|
void | setProperties(String properties) - Sets the file to use for castor builder properties.
|
void | setSAX1(boolean sax1) - Controls whether to generate SAX-1 compliant code.
|
void | setTestable(boolean b) - Sets whether CTF framework code is generated.
|
void | setTodir(String dest) - Sets the directory into which code will be generated.
|
void | setTypes(String tf) - Sets the type factory for code generation.
|
void | setVerbose(boolean b) - Sets whether or not code generation gives extra information about its work.
|
void | setWarnings(boolean b) - Sets whether or not non-fatal warnings should be suppressed.
|
CastorSourceGenTask
public CastorSourceGenTask()
No-arg constructor.
addFileset
public void addFileset(FileSet set)
Adds a fileset to process that contains schemas to process.
set
- An individual file set containing schemas.
execute
public void execute()
Public execute method -- entry point for the Ant task. Loops over all
schema that need code generated and creates needed code generators, then
executes them. If anything goes wrong during execution of the Ant task a
BuildException will be thrown.
org.apache.tools.ant.Task.execute()
setBindingfile
public void setBindingfile(String bindingfile)
Sets the binding file to be used for code generation.
bindingfile
- The binding file to be used for code generation.
setCaseInsensitive
public void setCaseInsensitive(boolean caseInsensitive)
Controls whether enumerated type lookup should be performed in a case
insensitive manner.
caseInsensitive
- True if enumerated type lookup should be performed in a case
insensitive manner
setDir
public void setDir(File dir)
Sets the directory such that all schemas in this directory will have code
generated for them.
dir
- The directory containing schemas to process.
setFile
public void setFile(File file)
Sets the individual schema that will have code generated for it.
setGenerateImportedSchemas
public void setGenerateImportedSchemas(boolean generateImportedSchemas)
Controls whether to generate code for imported schemas as well.
generateImportedSchemas
- True if code should be generated for imported schemas.
setLineseparator
public void setLineseparator(String ls)
Sets the line seperator to use for code generation.
ls
- The line seperator to use for code generation.
setNodesc
public void setNodesc(boolean b)
Sets whether or not class descriptors are generated.
b
- If true, class descriptors are generated.
setNomarshal
public void setNomarshal(boolean b)
Sets whether or not marshaling methods are generated.
b
- If true, marshaling methods are generated.
setNomarshall
public void setNomarshall(boolean b)
For the correct spelling, see setNomarshal(boolean)
.
Sets whether or not marshaling methods are generated.
b
- If true, marshaling methods are generated.
setPackage
public void setPackage(String pack)
Sets the package that generated code will belong to.
pack
- The package that generated code will belong to.
setProperties
public void setProperties(String properties)
Sets the file to use for castor builder properties.
properties
- The properties to use.
setSAX1
public void setSAX1(boolean sax1)
Controls whether to generate SAX-1 compliant code.
sax1
- True if SAX-1 compliant code should be generated.
setTestable
public void setTestable(boolean b)
Sets whether CTF framework code is generated.
b
- If true, the generated code will be instrumented for the CTF.
setTodir
public void setTodir(String dest)
Sets the directory into which code will be generated.
dest
- The directory into which code will be generated.
setTypes
public void setTypes(String tf)
Sets the type factory for code generation.
tf
- The type factory to use for code generation.
setVerbose
public void setVerbose(boolean b)
Sets whether or not code generation gives extra information about its work.
b
- If true, the code generator will be verbose.
setWarnings
public void setWarnings(boolean b)
Sets whether or not non-fatal warnings should be suppressed.
b
- If true, non-fatal warnings will be suppressed. This additionally
means that existing source files will be silently overwritten.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com