org.mmbase.bridge.implementation
Class BasicFunctionValue

java.lang.Object
  extended by org.mmbase.bridge.util.AbstractFieldValue
      extended by org.mmbase.bridge.implementation.BasicFunctionValue
All Implemented Interfaces:
FieldValue

public class BasicFunctionValue
extends AbstractFieldValue

This implementation of the Field Value interface is used by Node.getFunctionValue(java.lang.String, java.util.List) of Node. This represents the result of a `function' on a node and it (therefore) is a unmodifiable.

Since:
MMBase-1.6
Version:
$Id: BasicFunctionValue.java 39191 2009-10-17 21:42:51Z michiel $
Author:
Michiel Meeuwissen

Field Summary
 
Fields inherited from class org.mmbase.bridge.util.AbstractFieldValue
CANNOTCHANGE, cloud, node
 
Constructor Summary
BasicFunctionValue(Cloud cloud, Object value)
          Constructor for a function value returned by a Module or NodeManager.
BasicFunctionValue(Node node, Object value)
          Constructor for a function value returned by a Node.
 
Method Summary
protected static Object convert(Object o, Cloud cloud)
           
 Object get()
          Returns the value as an Object.
 
Methods inherited from class org.mmbase.bridge.util.AbstractFieldValue
canModify, getField, getNode, isNull, set, setBoolean, setByte, setDate, setDouble, setFLoat, setInt, setLong, setNode, setObject, setString, setXML, toBoolean, toByte, toDate, toDouble, toFloat, toInt, toLong, toNode, toString, toXML, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicFunctionValue

BasicFunctionValue(Node node,
                   Object value)
Constructor for a function value returned by a Node.

Parameters:
node - the node that called the function
value - the function value
Since:
MMBase-1.8

BasicFunctionValue

BasicFunctionValue(Cloud cloud,
                   Object value)
Constructor for a function value returned by a Module or NodeManager.

Parameters:
cloud - the cloud under which the call was run, used to instantiate NodeList values
value - the function value
Since:
MMBase-1.8
Method Detail

convert

protected static Object convert(Object o,
                                Cloud cloud)

get

public Object get()
Description copied from interface: FieldValue
Returns the value as an Object. The object type may vary and is dependent on how data was stored in a field. I.e. It may be possible for an Integer field to return it's value as a String if it was stored that way in the first place.

Specified by:
get in interface FieldValue
Specified by:
get in class AbstractFieldValue
Returns:
the field value as an object


MMBase 2.0-SNAPSHOT - null