org.mmbase.module
Class ProcessorModule.ProcessFunction

Package class diagram package ProcessorModule.ProcessFunction
java.lang.Object
  extended by org.mmbase.util.functions.AbstractFunction<Map<?,?>>
      extended by org.mmbase.module.ProcessorModule.ProcessFunction
All Implemented Interfaces:
Serializable, Comparable<Function<Map<?,?>>>, Function<Map<?,?>>
Enclosing class:
ProcessorModule

protected class ProcessorModule.ProcessFunction
extends AbstractFunction<Map<?,?>>

Function implementation around ProcessorModule.process(PageInfo, Hashtable, Hashtable). See in MMAdmin for an example on how to use. It does not support multipible commands, so the first Hashtable always contains precisely one entry. The value of the entry is the value of the first string parameter or the empty string. All parameters are added to the second Hashtable parameter ('vars'), and this is also returned (because sometimes also results are put in it).

Since:
MMBase-1.8
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.util.functions.AbstractFunction
autoReturnType, name, returnType
 
Constructor Summary
ProcessorModule.ProcessFunction(String name, Parameter<Object>[] params)
           
 
Method Summary
 Map getFunctionValue(Parameters arguments)
           
 
Methods inherited from class org.mmbase.util.functions.AbstractFunction
compareTo, createParameters, equals, getDescription, getFunctionValueWithArgs, getFunctionValueWithList, getName, getParameterDefinition, getReturnType, hashCode, setDescription, setParameterDefinition, setReturnType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessorModule.ProcessFunction

public ProcessorModule.ProcessFunction(String name,
                                       Parameter<Object>[] params)
Method Detail

getFunctionValue

public Map getFunctionValue(Parameters arguments)
Specified by:
getFunctionValue in interface Function<Map<?,?>>
Specified by:
getFunctionValue in class AbstractFunction<Map<?,?>>


MMBase2 Core 2.0-SNAPSHOT - 2013-03-30T06:36