com.sun.tools.jxc
Class SchemaGenTask

java.lang.Object
  extended by Javac
      extended by com.sun.tools.jxc.AptBasedTask
          extended by com.sun.tools.jxc.SchemaGenTask

public class SchemaGenTask
extends AptBasedTask

Ant task to invoke the schema generator.


Nested Class Summary
 class SchemaGenTask.Schema
          Nested schema element to specify the namespace -> file name mapping.
 
Constructor Summary
SchemaGenTask()
           
 
Method Summary
protected  AnnotationProcessorFactory createFactory()
          Creates a facotry that does the actual job.
 SchemaGenTask.Schema createSchema()
           
protected  java.lang.String getCompilationMessage()
           
protected  java.lang.String getFailedMessage()
           
 void setEpisode(java.io.File f)
          Sets the episode file to be generated.
protected  void setupCommandlineSwitches(Commandline cmd)
          Implemented by the derived class to set up command line switches passed to Apt.
 
Methods inherited from class com.sun.tools.jxc.AptBasedTask
compile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaGenTask

public SchemaGenTask()
Method Detail

setupCommandlineSwitches

protected void setupCommandlineSwitches(Commandline cmd)
Description copied from class: AptBasedTask
Implemented by the derived class to set up command line switches passed to Apt.

Specified by:
setupCommandlineSwitches in class AptBasedTask

getCompilationMessage

protected java.lang.String getCompilationMessage()
Specified by:
getCompilationMessage in class AptBasedTask

getFailedMessage

protected java.lang.String getFailedMessage()
Specified by:
getFailedMessage in class AptBasedTask

createSchema

public SchemaGenTask.Schema createSchema()

setEpisode

public void setEpisode(java.io.File f)
Sets the episode file to be generated. Null to not to generate one, which is the default behavior.


createFactory

protected AnnotationProcessorFactory createFactory()
Description copied from class: AptBasedTask
Creates a facotry that does the actual job.

Specified by:
createFactory in class AptBasedTask