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 |
---|---|
protected Node |
adaptParamsForXalan(Node n,
String xpath,
XPathVariableResolver jxvr)
To evaluate an XPath expression using Xalan, we need
to create an XPath object, which wraps an expression object and provides
general services for execution of that expression.
|
boolean |
booleanValueOf(Node n,
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 n,
String xpathString)
Evaluate an XPath expression to a List of nodes.
|
Node |
selectSingleNode(Node n,
String xpathString)
Evaluate an XPath expression to a single node.
|
String |
valueOf(Node n,
String xpathString)
Evaluate an XPath expression to a String value.
|
public XPathUtil(javax.servlet.jsp.PageContext pc)
public String valueOf(Node n, String xpathString) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public boolean booleanValueOf(Node n, String xpathString) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public List selectNodes(Node n, String xpathString) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public Node selectSingleNode(Node n, String xpathString) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
protected Node adaptParamsForXalan(Node n, String xpath, XPathVariableResolver jxvr)
public static Node getContext(javax.servlet.jsp.tagext.Tag t) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public static void printDetails(Node n)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.