public interface XPathExpression
| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(InputSource source)
Evaluates this expression against the specified context, returning the
result as a string.
|
Object |
evaluate(InputSource source,
QName returnType)
Evaluates this expression against the specified context.
|
String |
evaluate(Object item)
Evaluates this expression against the specified context, returning the
result as a string.
|
Object |
evaluate(Object item,
QName returnType)
Evaluates this expression against the specified context.
|
Object evaluate(Object item, QName returnType) throws XPathExpressionException
item - the evaluation contextreturnType - the desired return typeXPathExpressionExceptionString evaluate(Object item) throws XPathExpressionException
item - the evaluation contextXPathExpressionExceptionObject evaluate(InputSource source, QName returnType) throws XPathExpressionException
source - the source to load the context fromreturnType - the desired return typeXPathExpressionExceptionString evaluate(InputSource source) throws XPathExpressionException
source - the source to load the context fromXPathExpressionException