public class XPathFunctionContext extends SimpleFunctionContext
FunctionContext implementing the core XPath
function library, with extensions.
The core XPath function library is provided through this
implementation of FunctionContext. Additionally,
extension functions have been provided, as enumerated below.
This class implements a Singleton pattern (see getInstance()),
as it is perfectly re-entrant and thread-safe. If using the
singleton, it is inadvisable to call SimpleFunctionContext.registerFunction(java.lang.String, java.lang.String, org.xmlpull.v1.builder.xpath.jaxen.Function)
as that will extend the global function context, affecting other
users of the singleton. But that's your call, really, now isn't
it? That may be what you really want to do.
Extension functions:
FunctionContext| Constructor and Description |
|---|
XPathFunctionContext()
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
static FunctionContext |
getInstance()
Retrieve the singleton instance.
|
getFunction, registerFunctionpublic XPathFunctionContext()
Construct with all core XPath functions registered.
public static FunctionContext getInstance()
Copyright © 2013. All Rights Reserved.