Class XPathUtil
java.lang.Object
org.apache.taglibs.standard.tag.common.xml.XPathUtil
Support for tag handlers that evaluate XPath expressions.
- Author:
- Shawn Bayern, Ramesh Mandava ( ramesh.mandava@sun.com ), Pierre Delisle ( pierre.delisle@sun.com ), Dongbin Nie, David Matejcek
-
Constructor Summary
ConstructorsConstructorDescriptionXPathUtil(PageContext pc) Constructs a new XPathUtil object associated with the given PageContext. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanValueOf(Node contextNode, String xpathString) Evaluate an XPath expression to a boolean value.static NodegetContext(Tag t) selectNodes(Node contextNode, String xpathString) Evaluate an XPath expression to a List of nodes.selectSingleNode(Node contextNode, String xpathString) Evaluate an XPath expression to a single node.Evaluate an XPath expression to a String value.
-
Constructor Details
-
XPathUtil
Constructs a new XPathUtil object associated with the given PageContext.
-
-
Method Details
-
valueOf
Evaluate an XPath expression to a String value.- Throws:
JspTagException
-
booleanValueOf
Evaluate an XPath expression to a boolean value.- Throws:
JspTagException
-
selectNodes
Evaluate an XPath expression to a List of nodes.- Throws:
JspTagException
-
selectSingleNode
Evaluate an XPath expression to a single node.- Throws:
JspTagException
-
getContext
- Throws:
JspTagException
-