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 classXalan prefix resolver.classXPathResult implementation. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.xpath.XPathContextThe XPathContext object.The Xalan prefix resolver.protected XPathNSResolverThe namespace resolver.protected org.apache.xpath.XPathThe compiled XPath expression. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractDocument.XPathExpr.ResultconvertBoolean(org.apache.xpath.objects.XObject xo) Converts an XObject to a boolean XPathResult.protected AbstractDocument.XPathExpr.ResultconvertNodeIterator(org.apache.xpath.objects.XObject xo, short type) Converts an XObject to a node iterator XPathResult.protected AbstractDocument.XPathExpr.ResultconvertNumber(org.apache.xpath.objects.XObject xo) Converts an XObject to a number XPathResult.protected AbstractDocument.XPathExpr.ResultconvertSingleNode(org.apache.xpath.objects.XObject xo, short type) Converts an XObject to a single node XPathResult.protected AbstractDocument.XPathExpr.ResultconvertString(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:
DOMExceptionXPathException
-
-
Method Details
-
evaluate
public Object evaluate(Node contextNode, short type, Object res) throws XPathException, DOMException DOM: ImplementsXPathExpression.evaluate(Node,short,Object).- Specified by:
evaluatein interfaceXPathExpression- Throws:
XPathExceptionDOMException
-
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
-