| Constructor and Description |
|---|
XPathJavaImpl(String expr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValueOf(Object xpathContext)
Return boolean result of evaluating expression.
|
Object |
evaluate(Object xpathContext)
Evaluate expression and return an appropriate value, one of: Node, NodeList,
String, Boolean or Double.
|
XFunctionFilter |
getFunctionFilter() |
XNamespaceContext |
getNamespaceContext()
Get namespace context.
|
XVariableContext |
getVariableContext()
Get variable context.
|
double |
numberValueOf(Object xpathContext)
Return double result of evaluating expression.
|
List |
selectNodes(Object xpathContext)
Return List of Node result of evaluating expression.
|
org.dom4j.Node |
selectSingleNode(Object xpathContext)
Return Node result of evaluating expression.
|
void |
setExpr(String expr)
Reset the XPath expression.
|
void |
setFunctionFilter(XFunctionFilter filter) |
void |
setNamespaceContext(XNamespaceContext nsContext)
Get namespace context used when evaluating XPath expression.
|
void |
setVariableContext(XVariableContext varContext)
Set variable context used when evaluating XPath expression.
|
String |
stringValueOf(Object xpathContext)
Return String result of evaluating expression.
|
String |
toString() |
public XPathJavaImpl(String expr)
public void setFunctionFilter(XFunctionFilter filter)
setFunctionFilter in interface XPathAPIpublic XFunctionFilter getFunctionFilter()
getFunctionFilter in interface XPathAPIpublic void setVariableContext(XVariableContext varContext)
setVariableContext in interface XPathAPIvarContext - public XVariableContext getVariableContext()
getVariableContext in interface XPathAPIpublic void setNamespaceContext(XNamespaceContext nsContext)
setNamespaceContext in interface XPathAPInsContext - public XNamespaceContext getNamespaceContext()
getNamespaceContext in interface XPathAPIpublic Object evaluate(Object xpathContext) throws XPathException
evaluate in interface XPathAPIxpathContext - must be an org.dom4j.Node or null if expression contains
a Node-valued variable that can be used to establish the context.XPathException - if errors detectedpublic boolean booleanValueOf(Object xpathContext) throws XPathException
booleanValueOf in interface XPathAPIxpathContext - must be an org.dom4j.Node or null if expression contains
a Node-valued variable that can be used to establish the context.XPathException - if errors detectedpublic double numberValueOf(Object xpathContext) throws XPathException
numberValueOf in interface XPathAPIxpathContext - must be an org.dom4j.Node or null if expression contains
a Node-valued variable that can be used to establish the context.XPathExceptionpublic String stringValueOf(Object xpathContext) throws XPathException
stringValueOf in interface XPathAPIxpathContext - must be an org.dom4j.Node or null if expression contains
a Node-valued variable that can be used to establish the context.XPathExceptionpublic org.dom4j.Node selectSingleNode(Object xpathContext) throws XPathException
selectSingleNode in interface XPathAPIxpathContext - must be an org.dom4j.Node or null if expression contains
a Node-valued variable that can be used to establish the context.XPathExceptionpublic List selectNodes(Object xpathContext) throws XPathException
selectNodes in interface XPathAPIxpathContext - must be an org.dom4j.Node or null if expression contains
a Node-valued variable that can be used to establish the context.XPathExceptionpublic String toString()
Copyright © 2015. All rights reserved.