org.apache.commons.jelly.tags.jsl
Class TemplateTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.xml.XPathTagSupport
              |
              +--org.apache.commons.jelly.tags.jsl.JSLTagSupport
                    |
                    +--org.apache.commons.jelly.tags.jsl.TemplateTag
All Implemented Interfaces:
Tag, XPathSource

public class TemplateTag
extends JSLTagSupport
implements XPathSource

This tag represents a declarative matching rule, similar to the template tag in XSLT.

Version:
$Revision: 1.8 $
Author:
James Strachan

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
TemplateTag()
           
 
Method Summary
protected  org.dom4j.rule.Action createAction()
           
protected  org.dom4j.rule.Rule createRule()
           
 void doTag(XMLOutput output)
          Evaluates this tag after all the tags properties have been initialized.
 org.dom4j.rule.Action getAction()
          Getter for property action.
 java.lang.String getName()
          Getter for property name.
 double getPriority()
          Getter for property priority.
 org.dom4j.rule.Rule getRule()
          Getter for property rule.
 java.lang.Object getXPathSource()
           
 void setAction(org.dom4j.rule.Action action)
          Sets the action.
 void setMatch(org.dom4j.rule.Pattern match)
           
 void setMode(java.lang.String mode)
          Sets the mode.
 void setName(java.lang.String name)
          Sets the name.
 void setPriority(double priority)
          Sets the priority.
 
Methods inherited from class org.apache.commons.jelly.tags.jsl.JSLTagSupport
getStylesheet
 
Methods inherited from class org.apache.commons.jelly.tags.xml.XPathTagSupport
getXPathContext
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateTag

public TemplateTag()
Method Detail

doTag

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

getXPathSource

public java.lang.Object getXPathSource()
Specified by:
getXPathSource in interface XPathSource
Returns:
the current XPath iteration value so that any other XPath aware child tags to use

setMatch

public void setMatch(org.dom4j.rule.Pattern match)

getPriority

public double getPriority()
Getter for property priority.
Returns:
Value of property priority.

setPriority

public void setPriority(double priority)
Sets the priority.
Parameters:
priority - New value of property priority.

getName

public java.lang.String getName()
Getter for property name.
Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Sets the name.
Parameters:
name - New value of property name.

getAction

public org.dom4j.rule.Action getAction()
Getter for property action.
Returns:
Value of property action.

setAction

public void setAction(org.dom4j.rule.Action action)
Sets the action.
Parameters:
action - New value of property action.

setMode

public void setMode(java.lang.String mode)
Sets the mode.
Parameters:
mode - New value of property mode.

getRule

public org.dom4j.rule.Rule getRule()
Getter for property rule.
Returns:
Value of property rule.

createRule

protected org.dom4j.rule.Rule createRule()

createAction

protected org.dom4j.rule.Action createAction()


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.