Class TxwTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class TxwTask
    extends org.apache.tools.ant.Task
    Ant task interface for txw compiler.
    Author:
    ryan_shoemaker@dev.java.net
    • 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
      TxwTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      launch txw
      void setDestdir​(java.io.File dir)
      parse @destdir
      void setMethodChaining​(boolean flg)
      parse @methodChaining
      void setPackage​(java.lang.String pkg)
      Parse @package
      void setSchema​(java.io.File schema)
      parse @schema
      void setSyntax​(java.lang.String style)
      Parse @syntax
      • 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 Detail

      • TxwTask

        public TxwTask()
    • Method Detail

      • setPackage

        public void setPackage​(java.lang.String pkg)
        Parse @package
        Parameters:
        pkg - name of the package to generate the java classes into
      • setSyntax

        public void setSyntax​(java.lang.String style)
        Parse @syntax
        Parameters:
        style - either "compact" for RELAX NG compact syntax or "XML" for RELAX NG xml syntax
      • setSchema

        public void setSchema​(java.io.File schema)
        parse @schema
        Parameters:
        schema - the schema file to be processed by txw
      • setDestdir

        public void setDestdir​(java.io.File dir)
        parse @destdir
        Parameters:
        dir - the directory to produce generated source code in
      • setMethodChaining

        public void setMethodChaining​(boolean flg)
        parse @methodChaining
        Parameters:
        flg - true if the txw should generate api's that allow method chaining (when possible, false otherwise
      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        launch txw
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException