org.apache.commons.jxpath
public class FunctionLibrary extends java.lang.Object implements Functions
Functions objects into a group Functions
object. Since JXPathContext can only register a single Functions
object, FunctionLibrary should always be used to group all Functions objects
that need to be registered.| Constructor and Description |
|---|
FunctionLibrary() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFunctions(Functions functions)
Add functions to the library
|
Function |
getFunction(java.lang.String namespace,
java.lang.String name,
java.lang.Object[] parameters)
Returns a Function, if any, for the specified namespace,
name and parameter types.
|
java.util.Set |
getUsedNamespaces()
Returns a set containing all namespaces used by the aggregated
Functions.
|
void |
removeFunctions(Functions functions)
Remove functions from the library.
|
public void addFunctions(Functions functions)
functions - to addpublic void removeFunctions(Functions functions)
functions - to removepublic java.util.Set getUsedNamespaces()
getUsedNamespaces in interface Functionspublic Function getFunction(java.lang.String namespace, java.lang.String name, java.lang.Object[] parameters)
getFunction in interface Functionsnamespace - function namespacename - function nameparameters - parameters