|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.core.AbstractDescriptor
org.mmbase.util.functions.Parameter
org.mmbase.util.functions.ReturnType
Description of the return type of certain function. This wraps a Class object but it has some
extra members. Can be used as a constructor argument of Function objects or as an
argument of Function.setReturnType(org.mmbase.util.functions.ReturnType).
| Nested Class Summary |
| Nested classes inherited from class org.mmbase.util.functions.Parameter |
Parameter.Wrapper |
| Field Summary | |
static ReturnType |
BOOLEAN
The return type of a function that returns a Boolean. |
static ReturnType |
CHARSEQUENCE
|
static ReturnType |
COLLECTION
The return type of a function that returns a Set. |
static ReturnType |
DOUBLE
The return type of a function that returns a Double. |
static ReturnType |
INTEGER
The return type of a function that returns a Integer. |
static ReturnType |
LIST
The return type of a function that returns a List. |
static ReturnType |
LONG
The return type of a function that returns a Long. |
static ReturnType |
MAP
The return type of a function that returns a Map. |
static ReturnType |
NODE
The return type of a function that returns a Node. |
static ReturnType |
NODELIST
The return type of a function that returns a NodeList. |
static ReturnType |
NONE
The return type of a function is None |
static ReturnType |
SET
The return type of a function that returns a Set. |
static ReturnType |
STRING
The return type of a function that returns a String. |
static ReturnType |
UNKNOWN
The return type of a function is unknown. |
static ReturnType |
VOID
The return type of a function that does not return a thing. |
static Object |
VOID_VALUE
Can be return by functions that don't want to return anything. |
| Fields inherited from class org.mmbase.util.functions.Parameter |
CLOUD, CORENODE, dataType, EMPTY, FIELD, LANGUAGE, LOCALE, REQUEST, RESPONSE, USER |
| Fields inherited from class org.mmbase.core.AbstractDescriptor |
description, guiName, key |
| Constructor Summary | |
ReturnType(Class type,
String description)
|
|
| Method Summary | |
ReturnType |
addSubType(String name,
ReturnType type)
If the return type is like a map or struct (key-values pairs), then you might want to describe the types of the values seperately too. |
Map |
getSubTypes()
|
boolean |
isRequired()
Returns whether the parameter requires a value. |
String |
toString()
|
| Methods inherited from class org.mmbase.util.functions.Parameter |
autoCast, checkType, equals, getDataType, getDefaultValue, getTypeAsClass, hashCode, setDefaultValue |
| Methods inherited from class org.mmbase.core.AbstractDescriptor |
clone, clone, getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final ReturnType VOID
public static final ReturnType STRING
public static final ReturnType CHARSEQUENCE
public static final ReturnType INTEGER
public static final ReturnType LONG
public static final ReturnType DOUBLE
public static final ReturnType BOOLEAN
public static final ReturnType LIST
public static final ReturnType NODELIST
public static final ReturnType NODE
public static final ReturnType SET
public static final ReturnType COLLECTION
public static final ReturnType MAP
public static final ReturnType UNKNOWN
public static final ReturnType NONE
public static final Object VOID_VALUE
| Constructor Detail |
public ReturnType(Class type,
String description)
| Method Detail |
public boolean isRequired()
Parameter
isRequired in class Parametertrue if a value is required
public ReturnType addSubType(String name,
ReturnType type)
public Map getSubTypes()
public String toString()
toString in class Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||