com.werken.xpath
public class XPathFunctionContext extends Object implements FunctionContext
Implementation of FunctionContext which matches the core function library as described by the W3C XPath Specification.
May be directly instantiated or subclassed. A Singleton is provided for ease-of-use in the default case of bare XPaths.
Constructor Summary | |
---|---|
XPathFunctionContext() |
Method Summary | |
---|---|
protected void | addFunction(String name, Function func) Add a function to this FunctionContext
|
Function | getFunction(String name) Retrieve a named function
Retrieve the named function object, or null if no such function exists. |
static XPathFunctionContext | getInstance() Get the XPathFunctionContext singleton.
|
Parameters: name The name of the function. func The implementing Function Object.
Retrieve the named function object, or null if no such function exists.
Parameters: name The name of the function sought.
Returns: The Function matching the specified name.
See Also: com.werken.xpath.ContextHelper#setFunctionContext
Returns: The global, immutable FunctionContext which matches the functions as described by the W3C XPath specification.