org.apache.xpath
Class XPathContext.XPathExpressionContext
java.lang.Object
org.apache.xpath.XPathContext.XPathExpressionContext
- XPathContext
- ExpressionContext
public class XPathContext.XPathExpressionContext
extends java.lang.Object
getDTMManager
public DTMManager getDTMManager()
Return the DTMManager object. Though XPathContext context extends
the DTMManager, it really is a proxy for the real DTMManager. If a
caller needs to make a lot of calls to the DTMManager, it is faster
if it gets the real one from this function.
getXPathContext
public XPathContext getXPathContext()
Return the XPathContext associated with this XPathExpressionContext.
Extensions should use this judiciously and only when special processing
requirements cannot be met another way. Consider requesting an enhancement
to the ExpressionContext interface to avoid having to call this method.
- getXPathContext in interface ExpressionContext
- the XPathContext associated with this XPathExpressionContext.
toNumber
public double toNumber(Node n)
Get the value of a node as a number.
- toNumber in interface ExpressionContext
n
- Node to be converted to a number. May be null.
- value of n as a number.
toString
public String toString(Node n)
Get the value of a node as a string.
- toString in interface ExpressionContext
n
- Node to be converted to a string. May be null.
- value of n as a string, or an empty string if n is null.
Copyright B) 2004 Apache XML Project. All Rights Reserved.