org.inria.ns.reflex.xml.xpath
Interface DeferredArgument


public interface DeferredArgument

A DeferredArgument is an argument used when calling a deferrable XPath function that indicates that this argument must be evaluated later.

Deferred arguments are usefull when the context must be different than those that was set when the function was invoked.

For example, the sorting criteria of the xcl:sort() function are deferred arguments because they must be applied on each item to sort.

Author:
Philippe Poulard
See Also:
DeferrableFunction.isDeferred(int)

Method Summary
 Object evaluate(XPathContext context)
          Evaluate the argument.
 

Method Detail

evaluate

Object evaluate(XPathContext context)
                throws XPathFunctionException
Evaluate the argument.

Parameters:
context - The evaluation context.
Returns:
The computed value of the argument.
Throws:
XPathFunctionException - When the value of this argument can't be computed.