org.jaxen
Class XPathFunctionContext
- FunctionContext
public class XPathFunctionContext
A
FunctionContext
implementing the core XPath
function library, plus Jaxen extensions.
The core XPath function library is provided through this
implementation of
FunctionContext
. Additionally,
extension functions have been provided, as enumerated below.
This class is re-entrant and thread-safe. If using the
default instance, it is inadvisable to call
registerFunction(String,String,Function)
as that will extend the global function context, affecting other
users.
Extension functions:
- evaluate(..)
- upper-case(..)
- lower-case(..)
- ends-with(..)
FunctionContext
, org.jaxen.function
, org.jaxen.function.xslt
, org.jaxen.function.ext
XPathFunctionContext
public XPathFunctionContext()
Create a new XPath function context.
All core XPath and Jaxen extension functions are registered.
XPathFunctionContext
public XPathFunctionContext(boolean includeExtensionFunctions)
Create a new XPath function context.
All core XPath functions are registered.
includeExtensionFunctions
- if true extension functions are included;
if false, they aren't
getInstance
public static FunctionContext getInstance()
Retrieve the default function context
- the default function context
registerExtensionFunctions
private void registerExtensionFunctions()
registerXPathFunctions
private void registerXPathFunctions()
registerXSLTFunctions
private void registerXSLTFunctions()