org.mmbase.util.functions
Class ExampleBean

java.lang.Object
  extended byorg.mmbase.util.functions.ExampleBean

public final class ExampleBean
extends Object

A bean can be accessed through the function framework.

Since:
MMBase-1.8
Version:
$Id: ExampleBean.java,v 1.9 2006/06/20 20:51:49 michiel Exp $
Author:
Michiel Meeuwissen

Constructor Summary
ExampleBean()
           
 
Method Summary
 String getAnotherParameter()
           
 Integer getParameter2()
           
 Integer integerFunction()
           
 Map mapFunction()
          A function returning a Map
 MMObjectNode nodeFunction1()
          A function returning a Node as a core object (deprecated).
 Node nodeFunction2()
          A function returning a Node as a bridge object, but based on a Map of values.
 Collection nodeListFunction()
           
 NodeList nodeListFunction1()
           
 void setAnotherParameter(String a)
           
 void setCloud(Cloud c)
          Makes the functions useable in bridge (so with security).
 void setNode(Node node)
          Makes this bean useable as a Node function.
 void setParameter1(String hoi)
           
 void setParameter2(Integer j)
           
 String stringFunction()
          A function defined by this class
 Object successor()
          A real node-function (using the node argument).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleBean

public ExampleBean()
Method Detail

setParameter1

public void setParameter1(String hoi)

setParameter2

public void setParameter2(Integer j)

getParameter2

public Integer getParameter2()

setAnotherParameter

public void setAnotherParameter(String a)

getAnotherParameter

public String getAnotherParameter()

setNode

public void setNode(Node node)
Makes this bean useable as a Node function.


setCloud

public void setCloud(Cloud c)
Makes the functions useable in bridge (so with security). See also Parameter.CLOUD. This is an example of a parameter which is automaticly filled by function tags.


stringFunction

public String stringFunction()
A function defined by this class


integerFunction

public Integer integerFunction()

mapFunction

public Map mapFunction()
A function returning a Map


nodeFunction1

public MMObjectNode nodeFunction1()
A function returning a Node as a core object (deprecated).


nodeFunction2

public Node nodeFunction2()
A function returning a Node as a bridge object, but based on a Map of values.


nodeListFunction

public Collection nodeListFunction()

nodeListFunction1

public NodeList nodeListFunction1()

successor

public Object successor()
A real node-function (using the node argument). Returns the next newer node of same type. Also a nice example on the difference between core and bridge.



MMBase build 1.8.1.20060716