org.exolab.castor.tools

Class XSDCompiler


public final class XSDCompiler
extends Task

Ant task that enables code generation from an XML _schema from within Ant.
Version:
$Revision: 6543 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
Author:
Keith Visco

Constructor Summary

XSDCompiler()
Creates a new XSDCompiler Task.

Method Summary

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.

Constructor Details

XSDCompiler

public XSDCompiler()
Creates a new XSDCompiler Task.

Method Details

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.
Parameters:
dirName - The name of the destination directory

setForce

public void setForce(boolean force)
Set overwriting existing files.
Parameters:
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.
Parameters:
lineSep - The line seperator to use for this platform.

setPackage

public void setPackage(String pkgName)
Set the target package name.
Parameters:
pkgName - The target package name.

setSchema

public void setSchema(String schema)
Set the schema file name.
Parameters:
schema - The schema to be used for code generation.

setTypefactory

public void setTypefactory(String typeFactory)
Set the type factory.
Parameters:
typeFactory - Name of the custom type factory class for collections.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com