public class XPathFunctionContext extends java.lang.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 and Description |
|---|
XPathFunctionContext() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFunction(java.lang.String name,
Function func)
Add a function to this FunctionContext
|
Function |
getFunction(java.lang.String name)
Retrieve a named function
|
static XPathFunctionContext |
getInstance()
Get the XPathFunctionContext singleton.
|
public static XPathFunctionContext getInstance()
protected void addFunction(java.lang.String name,
Function func)
name - The name of the function.func - The implementing Function Object.public Function getFunction(java.lang.String name)
Retrieve the named function object, or null if no such function exists.
getFunction in interface FunctionContextname - The name of the function sought.Function
matching the specified name.com.werken.xpath.ContextHelper#setFunctionContextCopyright ? 2000 bob mcwhirter and The Werken & Sons Company. All Rights Reserved.