java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainerpublic final class CastorCodeGenTask
extends org.apache.tools.ant.taskdefs.MatchingTask
| Constructor | Description | 
|---|---|
CastorCodeGenTask() | 
 No-arg constructor. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
addFileset(org.apache.tools.ant.types.FileSet set) | 
 Adds a fileset to process that contains schemas to process. 
 | 
void | 
execute() | 
 Public execute method -- entry point for the Ant task. 
 | 
void | 
setAutomaticConflictStrategy(java.lang.String automaticConflictStrategy) | 
 Sets the name conflict strategy to use. 
 | 
void | 
setBindingfile(java.lang.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(java.io.File dir) | 
 Sets the directory such that all schemas in this directory will have code
 generated for them. 
 | 
void | 
setFile(java.io.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 | 
setGenerateJdoDescriptors(boolean generateJdoDescriptors) | 
 Controls whether to generate JDO-specific class descriptors. 
 | 
void | 
setGenerateMapping(boolean generateMapping) | 
 Controls whether a mapping file should (additionally) be generated. 
 | 
void | 
setJClassPrinterType(java.lang.String jclassPrinterType) | 
 Sets the mode for printing  
JClass instances. | 
void | 
setLineseparator(java.lang.String ls) | 
 Sets the line seperator to use for code generation. 
 | 
void | 
setNameConflictStrategy(java.lang.String nameConflictStrategy) | 
 Sets the name conflict strategy to use. 
 | 
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 | 
setPackage(java.lang.String pack) | 
 Sets the package that generated code will belong to. 
 | 
void | 
setProperties(java.lang.String properties) | 
 Sets the file to use for castor builder properties. 
 | 
void | 
setResourcesDirectory(java.lang.String destination) | 
 Sets the directory into which resources will be generated. 
 | 
void | 
setSAX1(boolean sax1) | 
 Controls whether to generate SAX-1 compliant code. 
 | 
void | 
setSchemaURL(java.lang.String schemaURL) | 
 Sets an URL for one individual schema that will have code generated for it. 
 | 
void | 
setTestable(boolean b) | 
 Sets whether CTF framework code is generated. 
 | 
void | 
setTodir(java.lang.String dest) | 
 Sets the directory into which code will be generated. 
 | 
void | 
setTypes(java.lang.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. 
 | 
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItemsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocationbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setFile(java.io.File file)
file - One schema file.public void setSchemaURL(java.lang.String schemaURL)
schemaURL - URL for one schema file.public void setDir(java.io.File dir)
dir - The directory containing schemas to process.public void addFileset(org.apache.tools.ant.types.FileSet set)
set - An individual file set containing schemas.public void setPackage(java.lang.String pack)
pack - The package that generated code will belong to.public void setTodir(java.lang.String dest)
dest - The directory into which code will be generated.public void setResourcesDirectory(java.lang.String destination)
dest - The directory into which resources will be generated.public void setBindingfile(java.lang.String bindingfile)
bindingfile - The binding file to be used for code generation.public void setLineseparator(java.lang.String ls)
ls - The line seperator to use for code generation.public void setTypes(java.lang.String tf)
tf - The type factory to use for code generation.public void setVerbose(boolean b)
b - If true, the code generator will be verbose.public void setNameConflictStrategy(java.lang.String nameConflictStrategy)
nameConflictStrategy - The name conflict strategy to usepublic void setAutomaticConflictStrategy(java.lang.String automaticConflictStrategy)
automaticConflictStrategy - The automatic class name conflict strategy to usepublic void setWarnings(boolean b)
b - If true, non-fatal warnings will be suppressed. This additionally
        means that existing source files will be silently overwritten.public void setNodesc(boolean b)
b - If true, class descriptors are generated.public void setNomarshal(boolean b)
b - If true, marshaling methods are generated.public void setTestable(boolean b)
b - If true, the generated code will be instrumented for the CTF.public void setGenerateImportedSchemas(boolean generateImportedSchemas)
generateImportedSchemas - True if code should be generated for imported schemas.public void setGenerateJdoDescriptors(boolean generateJdoDescriptors)
generateJdoDescriptors - True if JDP class descriptors should be generatedpublic void setSAX1(boolean sax1)
sax1 - True if SAX-1 compliant code should be generated.public void setCaseInsensitive(boolean caseInsensitive)
caseInsensitive - True if enumerated type lookup should be performed in a case
        insensitive mannerpublic void setProperties(java.lang.String properties)
properties - The properties to use.public void setJClassPrinterType(java.lang.String jclassPrinterType)
JClass instances.jclassPrinterType - The mode for printing JClass instances.public void setGenerateMapping(boolean generateMapping)
generateMapping - True if a mapping file should be generated.public void execute()
execute in class org.apache.tools.ant.TaskTask.execute()Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com