protected class AbstractDocument.XPathExpr
extends java.lang.Object
implements org.w3c.dom.xpath.XPathExpression
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractDocument.XPathExpr.NSPrefixResolver
Xalan prefix resolver.
|
class |
AbstractDocument.XPathExpr.Result
XPathResult implementation.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.xpath.XPathContext |
context
The XPathContext object.
|
protected AbstractDocument.XPathExpr.NSPrefixResolver |
prefixResolver
The Xalan prefix resolver.
|
protected org.w3c.dom.xpath.XPathNSResolver |
resolver
The namespace resolver.
|
protected org.apache.xpath.XPath |
xpath
The compiled XPath expression.
|
| Constructor and Description |
|---|
XPathExpr(java.lang.String expr,
org.w3c.dom.xpath.XPathNSResolver res)
Creates a new XPathExpr object.
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractDocument.XPathExpr.Result |
convertBoolean(org.apache.xpath.objects.XObject xo)
Converts an XObject to a boolean XPathResult.
|
protected AbstractDocument.XPathExpr.Result |
convertNodeIterator(org.apache.xpath.objects.XObject xo,
short type)
Converts an XObject to a node iterator XPathResult.
|
protected AbstractDocument.XPathExpr.Result |
convertNumber(org.apache.xpath.objects.XObject xo)
Converts an XObject to a number XPathResult.
|
protected AbstractDocument.XPathExpr.Result |
convertSingleNode(org.apache.xpath.objects.XObject xo,
short type)
Converts an XObject to a single node XPathResult.
|
protected AbstractDocument.XPathExpr.Result |
convertString(org.apache.xpath.objects.XObject xo)
Converts an XObject to a string XPathResult.
|
java.lang.Object |
evaluate(org.w3c.dom.Node contextNode,
short type,
java.lang.Object res)
DOM: Implements
XPathExpression.evaluate(Node,short,Object). |
protected org.apache.xpath.XPath xpath
protected org.w3c.dom.xpath.XPathNSResolver resolver
protected AbstractDocument.XPathExpr.NSPrefixResolver prefixResolver
protected org.apache.xpath.XPathContext context
public XPathExpr(java.lang.String expr,
org.w3c.dom.xpath.XPathNSResolver res)
throws org.w3c.dom.DOMException,
org.w3c.dom.xpath.XPathException
org.w3c.dom.DOMExceptionorg.w3c.dom.xpath.XPathExceptionpublic java.lang.Object evaluate(org.w3c.dom.Node contextNode,
short type,
java.lang.Object res)
throws org.w3c.dom.xpath.XPathException,
org.w3c.dom.DOMException
XPathExpression.evaluate(Node,short,Object).evaluate in interface org.w3c.dom.xpath.XPathExpressionorg.w3c.dom.xpath.XPathExceptionorg.w3c.dom.DOMExceptionprotected AbstractDocument.XPathExpr.Result convertSingleNode(org.apache.xpath.objects.XObject xo, short type) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionprotected AbstractDocument.XPathExpr.Result convertBoolean(org.apache.xpath.objects.XObject xo) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionprotected AbstractDocument.XPathExpr.Result convertNumber(org.apache.xpath.objects.XObject xo) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionprotected AbstractDocument.XPathExpr.Result convertString(org.apache.xpath.objects.XObject xo)
protected AbstractDocument.XPathExpr.Result convertNodeIterator(org.apache.xpath.objects.XObject xo, short type) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException