public interface FunctionContext
By using a custom FunctionContext, new or different
functions may be installed and available to XPath expression writers.
XPathFunctionContext| Modifier and Type | Method and Description |
|---|---|
Function |
getFunction(String namespaceURI,
String prefix,
String localName)
An implementation should return a
Function implementation object
based on the namespace URI and local name of the function-call
expression. |
Function getFunction(String namespaceURI, String prefix, String localName) throws UnresolvableException
Function implementation object
based on the namespace URI and local name of the function-call
expression.
It must not use the prefix parameter to select an implementation, because a prefix could be bound to any namespace; the prefix parameter could be used in debugging output or other generated information. The prefix may otherwise be completely ignored.
namespaceURI - the namespace URI to which the prefix parameter
is bound in the XPath expression. If the function
call expression had no prefix, the namespace URI
is null.prefix - the prefix that was used in the function call
expressionlocalName - the local name of the function-call expression.
If there is no prefix, then this is the whole
name of the function.UnresolvableException - when the function cannot be resolvedCopyright © 2001-2012 Codehaus. All Rights Reserved.