Package org.mmbase.util.functions

The function framework is all about the creation of Function instances, from which then, subsequently, function values can be acquired.

See:
          Description

Interface Summary
Function A representation of a piece of functionality (a 'function').
 

Class Summary
AbstractFunction An abstract representation of a piece of functionality (a 'function').
AutodefiningParameters If there is no Parameter definition array available you could try it with this specialization, which does not need one.
BeanFunction One or more functions based on a Java-bean.
ExampleBean A bean can be accessed through the function framework.
ExampleBuilder Example builder implementation implementing functions.
FunctionFactory The FunctionFactory instanciates Function objects.
FunctionProvider A function provider maintains a set of Function objects.
Functions This class defines static methods for defining Function and Parameters objects.
FunctionSet The implementation of one set ('namespace') of functions.
FunctionSets A utility class for maintaining and querying functionsets.
IndexFunction The index node functions can be assigned to nodes which are connected by an 'index' relation.
IndexFunction.Stack  
MethodFunction A function based on an abritrary method.
NodeFunction A NodeFunction represents a function on a node instances of this builder.
Parameter Each (function) argument is specified by a Parameter object.
Parameter.Wrapper A Parameter.Wrapper wraps one Parameter around a Parameter[] (then you can put it in a Parameter[]).
Parameters This class implemements the Parameters interface.
PatternNodeFunctionProvider This Function provider creates function objects , which can create a String function based on a pattern.
PatternNodeFunctionProvider.PatternNodeFunction  
ReturnType Description of the return type of certain function.
WrappedFunction A wrapped function is a base class for function objects based on an other function object.
 

Package org.mmbase.util.functions Description

The function framework is all about the creation of Function instances, from which then, subsequently, function values can be acquired. To do that you need to supply the Parameters to the function.

Functions come in several different variants. There are completely stand alone functions, e.g. Functions (of which a limited number of instances can exists), but they can also be associated with some object (in OO speak: they mimic instance member functions of that object then). NodeFunction Function objects can e.g. be associated with Node objects. Such function objects can exists very many (for every possible node, for every function on it, there can be a Function object). Other object instance related functions may be associated with Modules and NodeManager.

How to use functions

Taglib users would use the function tags. Those are documented in the taglib reference documentation (and a bit of small example code can be found in javadoc of ExampleBuilder). More taglib examples for functions can be found in /mmexamples/taglib/functions.jsp of the distro.

A programmer needs to know several things.

Since:
MMBase-1.7


MMBase build 1.8.1.20060716