Class XPathUtil
- java.lang.Object
-
- org.apache.taglibs.standard.tag.common.xml.XPathUtil
-
public class XPathUtil extends Object
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
Constructors Constructor Description XPathUtil(jakarta.servlet.jsp.PageContext pc)Constructs a new XPathUtil object associated with the given PageContext.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValueOf(Node contextNode, String xpathString)Evaluate an XPath expression to a boolean value.static NodegetContext(jakarta.servlet.jsp.tagext.Tag t)List<Object>selectNodes(Node contextNode, String xpathString)Evaluate an XPath expression to a List of nodes.NodeselectSingleNode(Node contextNode, String xpathString)Evaluate an XPath expression to a single node.StringvalueOf(Node contextNode, String xpathString)Evaluate an XPath expression to a String value.
-
-
-
Method Detail
-
valueOf
public String valueOf(Node contextNode, String xpathString) throws jakarta.servlet.jsp.JspTagException
Evaluate an XPath expression to a String value.- Throws:
jakarta.servlet.jsp.JspTagException
-
booleanValueOf
public boolean booleanValueOf(Node contextNode, String xpathString) throws jakarta.servlet.jsp.JspTagException
Evaluate an XPath expression to a boolean value.- Throws:
jakarta.servlet.jsp.JspTagException
-
selectNodes
public List<Object> selectNodes(Node contextNode, String xpathString) throws jakarta.servlet.jsp.JspTagException
Evaluate an XPath expression to a List of nodes.- Throws:
jakarta.servlet.jsp.JspTagException
-
selectSingleNode
public Node selectSingleNode(Node contextNode, String xpathString) throws jakarta.servlet.jsp.JspTagException
Evaluate an XPath expression to a single node.- Throws:
jakarta.servlet.jsp.JspTagException
-
getContext
public static Node getContext(jakarta.servlet.jsp.tagext.Tag t) throws jakarta.servlet.jsp.JspTagException
- Throws:
jakarta.servlet.jsp.JspTagException
-
-