|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.xpath.XPathTagSupport
org.apache.commons.jelly.tags.xml.SetTag
A tag which defines a variable from an XPath expression.
This function creates a variable of type List or Node
(for example Element or Attribute).
Thus, the variable created from xml:set can be
used from the other xml library functions.
| 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.Boolean |
single
|
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 |
setSingle(boolean single)
If set to true will only take the first element matching. |
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, 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 |
private org.apache.commons.logging.Log log
private java.lang.String var
private org.jaxen.XPath select
private org.apache.commons.jelly.xpath.XPathComparator xpCmp
private java.lang.Boolean single
| Constructor Detail |
public SetTag()
| Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagExceptionpublic void setVar(java.lang.String var)
public void setSelect(org.jaxen.XPath select)
public void setSingle(boolean single)
Node thereby making sure that, for example,
when an element is selected, one can directly call such methods
as setAttribute.
public void setSort(org.jaxen.XPath sortXPath)
throws org.jaxen.JaxenException
org.jaxen.JaxenExceptionpublic void setDescending(boolean descending)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||