org.apache.commons.jelly.tags.core
Class IncludeTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.jelly.tags.core.IncludeTag
All Implemented Interfaces:
Tag

public class IncludeTag
extends TagSupport

A tag which conditionally evaluates its body based on some condition

Version:
$Revision: 1807798 $
Author:
James Strachan

Field Summary
private  java.io.File file
           
private  boolean shouldExport
           
private  boolean shouldInherit
           
private  java.lang.String uri
           
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
IncludeTag()
           
 
Method Summary
 void doTag(XMLOutput output)
          Evaluates this tag after all the tags properties have been initialized.
 java.io.File getFile()
           
 boolean isExport()
           
 boolean isInherit()
           
 void setExport(java.lang.String export)
           
 void setFile(java.io.File file)
          Sets the file to be included which is either an absolute file or a file relative to the current directory
 void setInherit(java.lang.String inherit)
           
 void setUri(java.lang.String uri)
          Sets the URI (relative URI or absolute URL) for the script to evaluate.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, 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
 

Field Detail

uri

private java.lang.String uri

file

private java.io.File file

shouldExport

private boolean shouldExport

shouldInherit

private boolean shouldInherit
Constructor Detail

IncludeTag

public IncludeTag()
Method Detail

setInherit

public void setInherit(java.lang.String inherit)

setExport

public void setExport(java.lang.String export)

isInherit

public boolean isInherit()

isExport

public boolean isExport()

getFile

public java.io.File getFile()
Returns:

setFile

public void setFile(java.io.File file)
Sets the file to be included which is either an absolute file or a file relative to the current directory


doTag

public void doTag(XMLOutput output)
           throws MissingAttributeException,
                  JellyTagException
Description copied from interface: Tag
Evaluates this tag after all the tags properties have been initialized.

Throws:
MissingAttributeException
JellyTagException

setUri

public void setUri(java.lang.String uri)
Sets the URI (relative URI or absolute URL) for the script to evaluate.