org.apache.batik.dom

Class AbstractDocument.XPathExpr

protected class AbstractDocument.XPathExpr extends Object implements XPathExpression

A compiled XPath expression.
Nested Class Summary
protected classAbstractDocument.XPathExpr.NSPrefixResolver
Xalan prefix resolver.
classAbstractDocument.XPathExpr.Result
XPathResult implementation.
Field Summary
protected XPathContextcontext
The XPathContext object.
protected AbstractDocument.XPathExpr.NSPrefixResolverprefixResolver
The Xalan prefix resolver.
protected XPathNSResolverresolver
The namespace resolver.
protected XPathxpath
The compiled XPath expression.
Constructor Summary
XPathExpr(String expr, XPathNSResolver res)
Creates a new XPathExpr object.
Method Summary
protected AbstractDocument.XPathExpr.ResultconvertBoolean(XObject xo)
Converts an XObject to a boolean XPathResult.
protected AbstractDocument.XPathExpr.ResultconvertNodeIterator(XObject xo, short type)
Converts an XObject to a node iterator XPathResult.
protected AbstractDocument.XPathExpr.ResultconvertNumber(XObject xo)
Converts an XObject to a number XPathResult.
protected AbstractDocument.XPathExpr.ResultconvertSingleNode(XObject xo, short type)
Converts an XObject to a single node XPathResult.
protected AbstractDocument.XPathExpr.ResultconvertString(XObject xo)
Converts an XObject to a string XPathResult.
Objectevaluate(Node contextNode, short type, Object res)
DOM: Implements {@link org.w3c.dom.xpath.XPathExpression#evaluate(Node,short,Object)}.

Field Detail

context

protected XPathContext context
The XPathContext object.

prefixResolver

protected AbstractDocument.XPathExpr.NSPrefixResolver prefixResolver
The Xalan prefix resolver.

resolver

protected XPathNSResolver resolver
The namespace resolver.

xpath

protected XPath xpath
The compiled XPath expression.

Constructor Detail

XPathExpr

public XPathExpr(String expr, XPathNSResolver res)
Creates a new XPathExpr object.

Method Detail

convertBoolean

protected AbstractDocument.XPathExpr.Result convertBoolean(XObject xo)
Converts an XObject to a boolean XPathResult.

convertNodeIterator

protected AbstractDocument.XPathExpr.Result convertNodeIterator(XObject xo, short type)
Converts an XObject to a node iterator XPathResult.

convertNumber

protected AbstractDocument.XPathExpr.Result convertNumber(XObject xo)
Converts an XObject to a number XPathResult.

convertSingleNode

protected AbstractDocument.XPathExpr.Result convertSingleNode(XObject xo, short type)
Converts an XObject to a single node XPathResult.

convertString

protected AbstractDocument.XPathExpr.Result convertString(XObject xo)
Converts an XObject to a string XPathResult.

evaluate

public Object evaluate(Node contextNode, short type, Object res)
DOM: Implements {@link org.w3c.dom.xpath.XPathExpression#evaluate(Node,short,Object)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.