Package org.apache.batik.dom
Class AbstractDocument.XPathExpr
java.lang.Object
org.apache.batik.dom.AbstractDocument.XPathExpr
- All Implemented Interfaces:
XPathExpression
- Enclosing class:
- AbstractDocument
A compiled XPath expression.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Xalan prefix resolver.class
XPathResult implementation. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.xpath.XPathContext
The XPathContext object.The Xalan prefix resolver.protected XPathNSResolver
The namespace resolver.protected org.apache.xpath.XPath
The compiled XPath expression. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.DOM: ImplementsXPathExpression.evaluate(Node,short,Object)
.
-
Field Details
-
xpath
protected org.apache.xpath.XPath xpathThe compiled XPath expression. -
resolver
The namespace resolver. -
prefixResolver
The Xalan prefix resolver. -
context
protected org.apache.xpath.XPathContext contextThe XPathContext object.
-
-
Constructor Details
-
XPathExpr
Creates a new XPathExpr object.- Throws:
DOMException
XPathException
-
-
Method Details
-
evaluate
public Object evaluate(Node contextNode, short type, Object res) throws XPathException, DOMException DOM: ImplementsXPathExpression.evaluate(Node,short,Object)
.- Specified by:
evaluate
in interfaceXPathExpression
- Throws:
XPathException
DOMException
-
convertSingleNode
protected AbstractDocument.XPathExpr.Result convertSingleNode(org.apache.xpath.objects.XObject xo, short type) throws TransformerException Converts an XObject to a single node XPathResult.- Throws:
TransformerException
-
convertBoolean
protected AbstractDocument.XPathExpr.Result convertBoolean(org.apache.xpath.objects.XObject xo) throws TransformerException Converts an XObject to a boolean XPathResult.- Throws:
TransformerException
-
convertNumber
protected AbstractDocument.XPathExpr.Result convertNumber(org.apache.xpath.objects.XObject xo) throws TransformerException Converts an XObject to a number XPathResult.- Throws:
TransformerException
-
convertString
Converts an XObject to a string XPathResult. -
convertNodeIterator
protected AbstractDocument.XPathExpr.Result convertNodeIterator(org.apache.xpath.objects.XObject xo, short type) throws TransformerException Converts an XObject to a node iterator XPathResult.- Throws:
TransformerException
-