| org.springframework.xml.xpath.XPathExpression
XPathExpression | public interface XPathExpression (Code) | | Defines the contract for a precompiled XPath expression. Concrete instances can be obtained through the
XPathExpressionFactory .
Implementations of this interface are precompiled, and thus faster, but less flexible, than the XPath expressions
used by
XPathOperations implementations.
author: Arjen Poutsma since: 1.0.0 |
evaluateAsBoolean | boolean evaluateAsBoolean(Node node) throws XPathException(Code) | | Evaluates the given expression as a boolean . Returns the boolean evaluation of the expression, or
false if it is invalid.
Parameters: node - the starting point the result of the evaluation throws: XPathException - in case of XPath errors See Also: XPath specification |
evaluateAsNode | Node evaluateAsNode(Node node) throws XPathException(Code) | | Evaluates the given expression as a
Node . Returns the evaluation of the expression, or null
if it is invalid.
Parameters: node - the starting point the result of the evaluation throws: XPathException - in case of XPath errors See Also: XPath specification |
evaluateAsNodeList | List evaluateAsNodeList(Node node) throws XPathException(Code) | | Evaluates the given expression, and returns all
Node objects that conform to it. Returns an empty list if
no result could be found.
Parameters: node - the starting point a list of Node s that are selected by the expression throws: XPathException - in case of XPath errors See Also: XPath specification |
evaluateAsNumber | double evaluateAsNumber(Node node) throws XPathException(Code) | | Evaluates the given expression as a number (double ). Returns the numeric evaluation of the
expression, or
Double.NaN if it is invalid.
Parameters: node - the starting point the result of the evaluation throws: XPathException - in case of XPath errors See Also: XPath specification |
|
|