public class XPathUtil extends Object
Support for tag handlers that evaluate XPath expressions.
| Constructor and Description |
|---|
XPathUtil(javax.servlet.jsp.PageContext pc)
Constructs a new XPathUtil object associated with the given
PageContext.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValueOf(Node contextNode,
String xpathString)
Evaluate an XPath expression to a boolean value.
|
static Node |
getContext(javax.servlet.jsp.tagext.Tag t) |
static void |
printDetails(Node n) |
List |
selectNodes(Node contextNode,
String xpathString)
Evaluate an XPath expression to a List of nodes.
|
Node |
selectSingleNode(Node contextNode,
String xpathString)
Evaluate an XPath expression to a single node.
|
String |
valueOf(Node contextNode,
String xpathString)
Evaluate an XPath expression to a String value.
|
public XPathUtil(javax.servlet.jsp.PageContext pc)
public String valueOf(Node contextNode, String xpathString) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic boolean booleanValueOf(Node contextNode, String xpathString) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic List selectNodes(Node contextNode, String xpathString) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic Node selectSingleNode(Node contextNode, String xpathString) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic static Node getContext(javax.servlet.jsp.tagext.Tag t) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic static void printDetails(Node n)
Copyright (c) 1999-2012 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.