org.apache.commons.jelly.tags.xml
Class SetTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.xpath.XPathTagSupport
          extended byorg.apache.commons.jelly.tags.xml.SetTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class SetTag
extends org.apache.commons.jelly.xpath.XPathTagSupport

A tag which defines a variable from an XPath expression

Version:
$Revision: 1.3 $
Author:
James Strachan

Field Summary
private  org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
private  org.jaxen.XPath select
          The XPath expression to evaluate.
private  java.lang.String var
          The variable name to export.
private  org.apache.commons.jelly.xpath.XPathComparator xpCmp
          Xpath comparator for sorting
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SetTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 void setDescending(boolean descending)
          Set whether to sort ascending or descending.
 void setSelect(org.jaxen.XPath select)
          Sets the XPath expression to evaluate.
 void setSort(org.jaxen.XPath sortXPath)
          Sets the xpath expression to use to sort selected nodes.
 void setVar(java.lang.String var)
          Sets the variable name to define for this expression
 
Methods inherited from class org.apache.commons.jelly.xpath.XPathTagSupport
getXPathContext
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, 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
 

Field Detail

log

private org.apache.commons.logging.Log log
The Log to which logging calls will be made.


var

private java.lang.String var
The variable name to export.


select

private org.jaxen.XPath select
The XPath expression to evaluate.


xpCmp

private org.apache.commons.jelly.xpath.XPathComparator xpCmp
Xpath comparator for sorting

Constructor Detail

SetTag

public SetTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException

setVar

public void setVar(java.lang.String var)
Sets the variable name to define for this expression


setSelect

public void setSelect(org.jaxen.XPath select)
Sets the XPath expression to evaluate.


setSort

public void setSort(org.jaxen.XPath sortXPath)
             throws org.jaxen.JaxenException
Sets the xpath expression to use to sort selected nodes.

Throws:
org.jaxen.JaxenException

setDescending

public void setDescending(boolean descending)
Set whether to sort ascending or descending.