org.codehaus.enunciate.template.freemarker
Class EnunciateFileTransform

java.lang.Object
  extended by net.sf.jelly.apt.freemarker.FreemarkerTransform<net.sf.jelly.apt.strategies.FileStrategy>
      extended by net.sf.jelly.apt.freemarker.transforms.FileTransform
          extended by org.codehaus.enunciate.template.freemarker.EnunciateFileTransform
All Implemented Interfaces:
freemarker.template.TemplateModel, freemarker.template.TemplateTransformModel

public class EnunciateFileTransform
extends net.sf.jelly.apt.freemarker.transforms.FileTransform

Since Enunciate uses multiple modules, it needs a special transform to handle creating new files that creates the files in a specified output directory.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
EnunciateFileTransform(java.lang.String namespace)
           
 
Method Summary
 java.io.File getOutputDirectory()
          The directory into which to put the new files.
 java.lang.String getTransformName()
           
 net.sf.jelly.apt.strategies.FileStrategy newStrategy()
           
 void setOutputDirectory(java.io.File outputDirectory)
          The directory into which to put the new files.
 
Methods inherited from class net.sf.jelly.apt.freemarker.FreemarkerTransform
convertString, findSetter, getTransformNamespace, getWriter, setupStrategy, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnunciateFileTransform

public EnunciateFileTransform(java.lang.String namespace)
Method Detail

newStrategy

public net.sf.jelly.apt.strategies.FileStrategy newStrategy()
Overrides:
newStrategy in class net.sf.jelly.apt.freemarker.transforms.FileTransform

getTransformName

public java.lang.String getTransformName()
Overrides:
getTransformName in class net.sf.jelly.apt.freemarker.FreemarkerTransform<net.sf.jelly.apt.strategies.FileStrategy>

getOutputDirectory

public java.io.File getOutputDirectory()
The directory into which to put the new files.

Returns:
The directory into which to put the new files.

setOutputDirectory

public void setOutputDirectory(java.io.File outputDirectory)
The directory into which to put the new files. null means use the default annotation processing environment directory.

Parameters:
outputDirectory - The directory into which to put the new files.