public class XPathContext.XPathExpressionContext extends Object implements ExpressionContext
Constructor and Description |
---|
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.
|
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.
|
public XPathContext getXPathContext()
getXPathContext
in interface ExpressionContext
public DTMManager getDTMManager()
public Node getContextNode()
getContextNode
in interface ExpressionContext
public org.w3c.dom.traversal.NodeIterator getContextNodes()
getContextNodes
in interface ExpressionContext
public ErrorListener getErrorListener()
getErrorListener
in interface ExpressionContext
public double toNumber(Node n)
toNumber
in interface ExpressionContext
n
- Node to be converted to a number. May be null.public String toString(Node n)
toString
in interface ExpressionContext
n
- Node to be converted to a string. May be null.public final XObject getVariableOrParam(QName qname) throws TransformerException
getVariableOrParam
in interface ExpressionContext
qname
- The qualified name of the variable.TransformerException
Copyright © 2019 JBoss by Red Hat. All rights reserved.