org.granite.generator.ant
Class AntJavaAs3Task

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.granite.generator.ant.AntJavaAs3Task
All Implemented Interfaces:
JavaAs3GroovyConfiguration, Configuration, GroovyConfiguration

public class AntJavaAs3Task
extends org.apache.tools.ant.Task
implements JavaAs3GroovyConfiguration

Author:
Franck WOLFF

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
AntJavaAs3Task()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet fileSet)
           
 void addTranslator(PackageTranslator translator)
           
 org.apache.tools.ant.types.Path createClasspath()
           
 void execute()
           
 As3TypeFactory getAs3TypeFactory()
           
 java.io.File getBaseOutputDir(JavaAs3Input input)
           
 java.lang.ClassLoader getClassLoader()
           
 EntityFactory getEntityFactory()
           
 GroovyTemplateFactory getGroovyTemplateFactory()
           
 java.io.File getOutputDir(JavaAs3Input input)
           
 RemoteDestinationFactory getRemoteDestinationFactory()
           
 TemplateUri[] getTemplateUris(JavaType.Kind kind, java.lang.Class<?> clazz)
           
 java.util.List<PackageTranslator> getTranslators()
           
 java.lang.String getUid()
           
 boolean isGenerated(java.lang.Class<?> clazz)
           
 void setAs3typefactory(java.lang.String as3typefactory)
           
 void setBaseoutputdir(java.lang.String baseoutputdir)
           
 void setBeanbasetemplate(java.lang.String beanbasetemplate)
           
 void setBeantemplate(java.lang.String beantemplate)
           
 void setClasspath(org.apache.tools.ant.types.Path path)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
           
 void setEntitybasetemplate(java.lang.String entitybasetemplate)
           
 void setEntityfactory(java.lang.String entityfactory)
           
 void setEntitytemplate(java.lang.String entitytemplate)
           
 void setEnumtemplate(java.lang.String enumtemplate)
           
 void setExternalizebigdecimal(boolean externalizebigdecimal)
           
 void setExternalizebiginteger(boolean externalizebiginteger)
           
 void setExternalizelong(boolean externalizelong)
           
 void setInterfacetemplate(java.lang.String interfacetemplate)
           
 void setOutputdir(java.lang.String outputdir)
           
 void setRemotebasetemplate(java.lang.String remotebasetemplate)
           
 void setRemotedestinationfactory(java.lang.String remotedestinationfactory)
           
 void setRemotetemplate(java.lang.String remotetemplate)
           
 void setTide(boolean tide)
           
 void setTransformer(java.lang.String transformer)
           
 void setUid(java.lang.String uid)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntJavaAs3Task

public AntJavaAs3Task()
Method Detail

setOutputdir

public void setOutputdir(java.lang.String outputdir)

setBaseoutputdir

public void setBaseoutputdir(java.lang.String baseoutputdir)

setAs3typefactory

public void setAs3typefactory(java.lang.String as3typefactory)

setEntityfactory

public void setEntityfactory(java.lang.String entityfactory)

setRemotedestinationfactory

public void setRemotedestinationfactory(java.lang.String remotedestinationfactory)

setUid

public void setUid(java.lang.String uid)

setEntitytemplate

public void setEntitytemplate(java.lang.String entitytemplate)

setEntitybasetemplate

public void setEntitybasetemplate(java.lang.String entitybasetemplate)

setBeantemplate

public void setBeantemplate(java.lang.String beantemplate)

setBeanbasetemplate

public void setBeanbasetemplate(java.lang.String beanbasetemplate)

setInterfacetemplate

public void setInterfacetemplate(java.lang.String interfacetemplate)

setEnumtemplate

public void setEnumtemplate(java.lang.String enumtemplate)

setRemotetemplate

public void setRemotetemplate(java.lang.String remotetemplate)

setRemotebasetemplate

public void setRemotebasetemplate(java.lang.String remotebasetemplate)

setTide

public void setTide(boolean tide)

setExternalizelong

public void setExternalizelong(boolean externalizelong)

setExternalizebiginteger

public void setExternalizebiginteger(boolean externalizebiginteger)

setExternalizebigdecimal

public void setExternalizebigdecimal(boolean externalizebigdecimal)

setTransformer

public void setTransformer(java.lang.String transformer)

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet fileSet)

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path path)

createClasspath

public org.apache.tools.ant.types.Path createClasspath()

setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference r)

addTranslator

public void addTranslator(PackageTranslator translator)

execute

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

getAs3TypeFactory

public As3TypeFactory getAs3TypeFactory()
Specified by:
getAs3TypeFactory in interface JavaAs3GroovyConfiguration

getEntityFactory

public EntityFactory getEntityFactory()
Specified by:
getEntityFactory in interface JavaAs3GroovyConfiguration

getRemoteDestinationFactory

public RemoteDestinationFactory getRemoteDestinationFactory()
Specified by:
getRemoteDestinationFactory in interface JavaAs3GroovyConfiguration

getBaseOutputDir

public java.io.File getBaseOutputDir(JavaAs3Input input)
Specified by:
getBaseOutputDir in interface JavaAs3GroovyConfiguration

getOutputDir

public java.io.File getOutputDir(JavaAs3Input input)
Specified by:
getOutputDir in interface JavaAs3GroovyConfiguration

getTemplateUris

public TemplateUri[] getTemplateUris(JavaType.Kind kind,
                                     java.lang.Class<?> clazz)
Specified by:
getTemplateUris in interface JavaAs3GroovyConfiguration

getTranslators

public java.util.List<PackageTranslator> getTranslators()
Specified by:
getTranslators in interface JavaAs3GroovyConfiguration

getUid

public java.lang.String getUid()
Specified by:
getUid in interface JavaAs3GroovyConfiguration

isGenerated

public boolean isGenerated(java.lang.Class<?> clazz)
Specified by:
isGenerated in interface JavaAs3GroovyConfiguration

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in interface Configuration

getGroovyTemplateFactory

public GroovyTemplateFactory getGroovyTemplateFactory()
Specified by:
getGroovyTemplateFactory in interface GroovyConfiguration