public class XPathContext.XPathExpressionContext extends Object implements ExpressionContext
| Constructor and Description |
|---|
XPathContext.XPathExpressionContext() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
void |
setServicesMechnism(boolean flag)
Set the state of the services mechanism feature.
|
double |
toNumber(Node n)
Get the value of a node as a number.
|
String |
toString(Node n)
Get the value of a node as a string.
|
boolean |
useServicesMechnism()
Return the state of the services mechanism feature.
|
public XPathContext getXPathContext()
getXPathContext in interface ExpressionContextpublic DTMManager getDTMManager()
public Node getContextNode()
getContextNode in interface ExpressionContextpublic org.w3c.dom.traversal.NodeIterator getContextNodes()
getContextNodes in interface ExpressionContextpublic ErrorListener getErrorListener()
getErrorListener in interface ExpressionContextpublic boolean useServicesMechnism()
public void setServicesMechnism(boolean flag)
public double toNumber(Node n)
toNumber in interface ExpressionContextn - Node to be converted to a number. May be null.public String toString(Node n)
toString in interface ExpressionContextn - Node to be converted to a string. May be null.public final XObject getVariableOrParam(QName qname) throws TransformerException
getVariableOrParam in interface ExpressionContextqname - The qualified name of the variable.TransformerExceptionCopyright © 2018–2021 mhoffrogge. All rights reserved.