|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.werken.xpath.XPathFunctionContext
public class XPathFunctionContext
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(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathFunctionContext()
Method Detail |
---|
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 FunctionContext
name
- The name of the function sought.
Function
matching the specified name.com.werken.xpath.ContextHelper#setFunctionContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |