net.sf.jelly.apt.tags
Class FileTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by net.sf.jelly.apt.APTJellyTag<FileStrategy>
          extended by net.sf.jelly.apt.tags.FileTag
All Implemented Interfaces:
TemplateBlock, org.apache.commons.jelly.Tag

public class FileTag
extends APTJellyTag<FileStrategy>

Tag that pipes its output to a new file relative to the output directory specified for APT.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class net.sf.jelly.apt.APTJellyTag
strategy
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
FileTag()
           
 
Method Summary
 void setCharset(java.lang.String charset)
          The name of the charset to use.
 void setName(java.lang.String name)
          The name of the file.
 void setPackage(java.lang.String pkg)
          Package relative to which the file should be named, or the empty string if none.
 
Methods inherited from class net.sf.jelly.apt.APTJellyTag
doTag, getContext, getStrategy
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTag

public FileTag()
Method Detail

setName

public void setName(java.lang.String name)
The name of the file.

Parameters:
name - The name of the file.

setPackage

public void setPackage(java.lang.String pkg)
Package relative to which the file should be named, or the empty string if none.

Parameters:
pkg - Package relative to which the file should be named, or the empty string if none.

setCharset

public void setCharset(java.lang.String charset)
The name of the charset to use.

Parameters:
charset - The name of the charset to use.