Class XSDCompiler

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.exolab.castor.tools.XSDCompiler
All Implemented Interfaces:
Cloneable

public final class XSDCompiler extends org.apache.tools.ant.Task
Deprecated.
Please use CastorCodeGenTask instead.
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
  • Field Summary

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a new XSDCompiler Task.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Executes the task.
    void
    setDestdir(String dirName)
    Deprecated.
    Set the destination directory into which the Java sources should be copied to.
    void
    setForce(boolean force)
    Deprecated.
    Set overwriting existing files.
    void
    Deprecated.
    Set the line separator.
    void
    setPackage(String pkgName)
    Deprecated.
    Set the target package name.
    void
    setSchema(String schema)
    Deprecated.
    Set the schema file name.
    void
    setTypefactory(String typeFactory)
    Deprecated.
    Set the type factory.

    Methods inherited from class org.apache.tools.ant.Task

    bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XSDCompiler

      public XSDCompiler()
      Deprecated.
      Creates a new XSDCompiler Task.
  • Method Details

    • execute

      public void execute()
      Deprecated.
      Executes the task. If anything goes wrong during execution of the Ant task a BuildException will be thrown.
      Overrides:
      execute in class org.apache.tools.ant.Task
    • setSchema

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

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

      public void setLineseperator(String lineSep)
      Deprecated.
      Set the line separator.
      Parameters:
      lineSep - The line seperator to use for this platform.
    • setForce

      public void setForce(boolean force)
      Deprecated.
      Set overwriting existing files.
      Parameters:
      force - If true, existing files will be silently overwritten and non-fatal warnings will be ignored
    • setTypefactory

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

      public void setDestdir(String dirName)
      Deprecated.
      Set the destination directory into which the Java sources should be copied to.
      Parameters:
      dirName - The name of the destination directory