org.exolab.castor.tools
Class XSDCompiler
Task
org.exolab.castor.tools.XSDCompiler
public final class XSDCompiler
extends Task
Ant task that enables code generation from an XML _schema from within Ant.
$Revision: 6543 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
void | execute() - Executes the task.
|
void | setDestdir(String dirName) - Set the destination directory into which the Java sources should be copied to.
|
void | setForce(boolean force) - Set overwriting existing files.
|
void | setLineseperator(String lineSep) - Set the line separator.
|
void | setPackage(String pkgName) - Set the target package name.
|
void | setSchema(String schema) - Set the schema file name.
|
void | setTypefactory(String typeFactory) - Set the type factory.
|
XSDCompiler
public XSDCompiler()
Creates a new XSDCompiler Task.
execute
public void execute()
Executes the task. If anything goes wrong during execution of the Ant task a
BuildException will be thrown.
setDestdir
public void setDestdir(String dirName)
Set the destination directory into which the Java sources should be copied to.
dirName
- The name of the destination directory
setForce
public void setForce(boolean force)
Set overwriting existing files.
force
- If true, existing files will be silently overwritten and non-fatal
warnings will be ignored
setLineseperator
public void setLineseperator(String lineSep)
Set the line separator.
lineSep
- The line seperator to use for this platform.
setPackage
public void setPackage(String pkgName)
Set the target package name.
pkgName
- The target package name.
setSchema
public void setSchema(String schema)
Set the schema file name.
schema
- The schema to be used for code generation.
setTypefactory
public void setTypefactory(String typeFactory)
Set the type factory.
typeFactory
- Name of the custom type factory class for collections.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com