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

All Known Implementing Classes:
AddDateFunction, CandidateFunction, CanonicalPathFunction, ChannelFunction, ContextFunction, CountFunction, CurrentFunction, DateFormatFunction, DocumentFunction, ElementFunction, FileFunction, GroupFunction, JaxenXPathFunctionResolver.JaxenXPathFunction, MacroFunction, MessageFunction, MimeTypeFunction, NormalizeSpaceFunction, NumberFunction, QNameFunction, RelativizeURIFunction, ResolveURIFunction, ReverseFunction, RootFilesFunction, SortFunction, StringFunction, ValueFunction, XPathFunction.NamedXPathFunction

public interface XPathFunction

Represent an XPath function.

Author:
Philippe Poulard

Nested Class Summary
static class XPathFunction.NamedXPathFunction
          A convenient basic implementation that allow to set the name of an XPath function just after its creation.
 
Method Summary
 Object evaluate(XPathContext context, List args)
          Evaluate the function.
 QName getQName()
          Return the name of this function.
 

Method Detail

evaluate

Object evaluate(XPathContext context,
                List args)
                throws XPathFunctionException
Evaluate the function.

Parameters:
context - The evaluation context : variables, current node, etc.
args - The list of arguments passed to this function.
Returns:
The result of the evaluation.
Throws:
XPathFunctionException - When this function fails to be evaluated.

getQName

QName getQName()
Return the name of this function.

Returns:
The name of this function.