APIdia Launch Partner
Top Description Methods
javax.xml.xpath

public Interface XPathFunction

Imports
java.util.List

XPathFunction provides access to XPath functions.

Functions are identified by QName and arity in XPath.

Authors
Norman Walsh, Jeff Suttor
Since
1.5

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The result of evaluating the XPath function as an Object.
evaluate
(List<?>
The arguments, null is a valid value.
args
)

Evaluate the function with the specified arguments.

Method Detail

evaluateback to summary
public Object evaluate(List<?> args) throws XPathFunctionException

Evaluate the function with the specified arguments.

To the greatest extent possible, side-effects should be avoided in the definition of extension functions. The implementation evaluating an XPath expression is under no obligation to call extension functions in any particular order or any particular number of times.

Parameters
args:List<?>

The arguments, null is a valid value.

Returns:Object

The result of evaluating the XPath function as an Object.

Exceptions
XPathFunctionException:
If args cannot be evaluated with this XPath function.