public class XPathUtil extends Object
Support for tag handlers that evaluate XPath expressions.
Constructor and Description |
---|
XPathUtil(jakarta.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(jakarta.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(jakarta.servlet.jsp.PageContext pc)
public String valueOf(Node contextNode, String xpathString) throws jakarta.servlet.jsp.JspTagException
jakarta.servlet.jsp.JspTagException
public boolean booleanValueOf(Node contextNode, String xpathString) throws jakarta.servlet.jsp.JspTagException
jakarta.servlet.jsp.JspTagException
public List selectNodes(Node contextNode, String xpathString) throws jakarta.servlet.jsp.JspTagException
jakarta.servlet.jsp.JspTagException
public Node selectSingleNode(Node contextNode, String xpathString) throws jakarta.servlet.jsp.JspTagException
jakarta.servlet.jsp.JspTagException
public static Node getContext(jakarta.servlet.jsp.tagext.Tag t) throws jakarta.servlet.jsp.JspTagException
jakarta.servlet.jsp.JspTagException
public static void printDetails(Node n)
Copyright © 2019,2020 Eclipse Foundation. All rights reserved.