org.apache.ws.jaxme.js.pattern
Class Ant.AntTypesafeEnumerationGenerator

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.ws.jaxme.js.pattern.Ant.ReallyBasicAntTask
              extended by org.apache.ws.jaxme.js.pattern.Ant.BasicAntTask
                  extended by org.apache.ws.jaxme.js.pattern.Ant.AntTypesafeEnumerationGenerator
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
Ant

public static class Ant.AntTypesafeEnumerationGenerator
extends Ant.BasicAntTask

Ant task for generating typesafe enumerations.


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
Ant.AntTypesafeEnumerationGenerator()
           
 
Method Summary
 TypesafeEnumerationGenerator.Item createItem()
          Creates a new, nested item.
 void finish()
          Performs validation of the attributes and nested elements.
 void generate(JavaSourceFactory pFactory, JavaQName pTargetClass)
          Abstract method, which is invoked to generate the target class.
 void setAddingEquals(boolean pAddingEquals)
          Sets whether the equals and hashCode methods are being generated.
 
Methods inherited from class org.apache.ws.jaxme.js.pattern.Ant.BasicAntTask
doExecute, setTargetClass
 
Methods inherited from class org.apache.ws.jaxme.js.pattern.Ant.ReallyBasicAntTask
addClasspath, execute, getClasspath, getClasspathRef, getDestDir, isSettingLoggerFactory, setClasspathRef, setDestDir, setSettingLoggerFactory
 
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

Ant.AntTypesafeEnumerationGenerator

public Ant.AntTypesafeEnumerationGenerator()
Method Detail

setAddingEquals

public void setAddingEquals(boolean pAddingEquals)
Sets whether the equals and hashCode methods are being generated. Defaults to true.


createItem

public TypesafeEnumerationGenerator.Item createItem()
Creates a new, nested item.


finish

public void finish()
Description copied from class: Ant.ReallyBasicAntTask

Performs validation of the attributes and nested elements.

Overrides:
finish in class Ant.BasicAntTask

generate

public void generate(JavaSourceFactory pFactory,
                     JavaQName pTargetClass)
              throws java.lang.Exception
Description copied from class: Ant.BasicAntTask
Abstract method, which is invoked to generate the target class.

Specified by:
generate in class Ant.BasicAntTask
Throws:
java.lang.Exception