org.apache.commons.jxpath
Class FunctionLibrary
java.lang.Object
org.apache.commons.jxpath.FunctionLibrary
- Functions
public class FunctionLibrary
extends java.lang.Object
An object that aggregates 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.
$Revision: 1.5 $ $Date: 2004/02/29 14:17:42 $
addFunctions
public void addFunctions(Functions functions)
Add functions to the library
getFunction
public Function getFunction(String namespace,
String name,
Object[] parameters)
Returns a Function, if any, for the specified namespace,
name and parameter types.
- getFunction in interface Functions
getUsedNamespaces
public Set getUsedNamespaces()
Returns a set containing all namespaces used by the aggregated
Functions.
- getUsedNamespaces in interface Functions
removeFunctions
public void removeFunctions(Functions functions)
Remove functions from the library.