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 typeXPathExpressionException
String evaluate(Object item) throws XPathExpressionException
item
- the evaluation contextXPathExpressionException
Object evaluate(InputSource source, QName returnType) throws XPathExpressionException
source
- the source to load the context fromreturnType
- the desired return typeXPathExpressionException
String evaluate(InputSource source) throws XPathExpressionException
source
- the source to load the context fromXPathExpressionException