org.mmbase.util.functions
Class NodeFunction

java.lang.Object
  extended byorg.mmbase.util.functions.Function
      extended byorg.mmbase.util.functions.NodeFunction

public class NodeFunction
extends Function

Describing a function on a bridge Node, giving access to the underlying executeFunction of the MMObjectBuilder.

Since:
MMBase-1.7
Version:
$Id: NodeFunction.java,v 1.1 2003/12/21 13:25:36 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
MMObjectBuilder.executeFunction(org.mmbase.module.core.MMObjectNode, java.lang.String, java.util.List), Node.getFunctionValue(java.lang.String, java.util.List)

Field Summary
 
Fields inherited from class org.mmbase.util.functions.Function
name, returnType
 
Constructor Summary
NodeFunction(java.lang.String name, Parameter[] def, ReturnType returnType, Node node)
           
 
Method Summary
static Function getFunction(Node node, java.lang.String name)
           
 java.lang.Object getFunctionValue(Parameters arguments)
          Executes the defined function supplying the given arguments.
static Parameter[] getParametersByReflection(java.lang.Class claz, java.lang.String name)
          Utility function, which can be called from MMObjectBuilder implementations to implement their getParameters easily
 
Methods inherited from class org.mmbase.util.functions.Function
getDescription, getName, getNewParameters, getParameterDefinition, getReturnType, setDescription, setParameterDefinition, setReturnType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFunction

public NodeFunction(java.lang.String name,
                    Parameter[] def,
                    ReturnType returnType,
                    Node node)
Method Detail

getParametersByReflection

public static Parameter[] getParametersByReflection(java.lang.Class claz,
                                                    java.lang.String name)
Utility function, which can be called from MMObjectBuilder implementations to implement their getParameters easily


getFunction

public static Function getFunction(Node node,
                                   java.lang.String name)

getFunctionValue

public java.lang.Object getFunctionValue(Parameters arguments)
Description copied from class: Function
Executes the defined function supplying the given arguments.

Specified by:
getFunctionValue in class Function
See Also:
Function.getNewParameters()


MMBase build 1.7.4.20050922