public class XPathContext.XPathExpressionContext extends java.lang.Object implements ExpressionContext
| Constructor and Description |
|---|
XPathExpressionContext() |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Node |
getContextNode()
Get the current context node.
|
org.w3c.dom.traversal.NodeIterator |
getContextNodes()
Get the current context node list.
|
DTMManager |
getDTMManager()
Return the DTMManager object.
|
javax.xml.transform.ErrorListener |
getErrorListener()
Get the error listener.
|
XObject |
getVariableOrParam(QName qname)
Get a variable based on it's qualified name.
|
XPathContext |
getXPathContext()
Return the XPathContext associated with this XPathExpressionContext.
|
double |
toNumber(org.w3c.dom.Node n)
Get the value of a node as a number.
|
java.lang.String |
toString(org.w3c.dom.Node n)
Get the value of a node as a string.
|
public XPathContext getXPathContext()
getXPathContext in interface ExpressionContextpublic DTMManager getDTMManager()
public org.w3c.dom.Node getContextNode()
getContextNode in interface ExpressionContextpublic org.w3c.dom.traversal.NodeIterator getContextNodes()
getContextNodes in interface ExpressionContextpublic javax.xml.transform.ErrorListener getErrorListener()
getErrorListener in interface ExpressionContextpublic double toNumber(org.w3c.dom.Node n)
toNumber in interface ExpressionContextn - Node to be converted to a number. May be null.public java.lang.String toString(org.w3c.dom.Node n)
toString in interface ExpressionContextn - Node to be converted to a string. May be null.public final XObject getVariableOrParam(QName qname) throws javax.xml.transform.TransformerException
getVariableOrParam in interface ExpressionContextqname - The qualified name of the variable.javax.xml.transform.TransformerExceptionCopyright © 2023 Apache XML Project. All Rights Reserved.