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

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

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

A tag that can sort a list of xml nodes via an xpath expression.

Version:
$Id: SortTag.java 155420 2005-02-26 13:06:03Z dirkv $
Author:
Jason Horman

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SortTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 void setDescending(boolean descending)
          Set whether to sort ascending or descending.
 void setList(java.util.List list)
          Set the list to sort.
 void setSort(org.jaxen.XPath sortXPath)
          Sets the xpath expression to use to sort selected nodes.
 
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, 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

SortTag

public SortTag()
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

setList

public void setList(java.util.List list)
Set the list to sort.


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.



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