|
||||||||||
| 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<C>
org.mmbase.util.functions.ReturnType<C>
public class ReturnType<C>
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/interfaces inherited from class org.mmbase.util.functions.Parameter |
|---|
Parameter.Wrapper |
| Field Summary | |
|---|---|
static ReturnType<Boolean> |
BOOLEAN
The return type of a function that returns a Boolean. |
static ReturnType<CharSequence> |
CHARSEQUENCE
|
static ReturnType<Collection<?>> |
COLLECTION
The return type of a function that returns a Set. |
static ReturnType<Double> |
DOUBLE
The return type of a function that returns a Double. |
static ReturnType<Integer> |
INTEGER
The return type of a function that returns a Integer. |
static ReturnType<List> |
LIST
The return type of a function that returns a List. |
static ReturnType<Long> |
LONG
The return type of a function that returns a Long. |
static ReturnType<Map<?,?>> |
MAP
The return type of a function that returns a Map. |
static ReturnType<Node> |
NODE
The return type of a function that returns a Node. |
static ReturnType<NodeList> |
NODELIST
The return type of a function that returns a NodeList. |
static ReturnType<Object> |
NONE
The return type of a function is None |
static ReturnType<Set<?>> |
SET
The return type of a function that returns a Set. |
static ReturnType<String> |
STRING
The return type of a function that returns a String. |
static ReturnType<Object> |
UNKNOWN
The return type of a function is unknown. |
static ReturnType<Void> |
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. |
static ReturnType<?> |
getReturnType(Class<?> type)
|
Map<String,ReturnType> |
getSubTypes()
|
boolean |
isRequired()
Returns whether the parameter requires a value. |
String |
toString()
|
| Methods inherited from class org.mmbase.util.functions.Parameter |
|---|
autoCast, checkType, emptyArray, equals, getClass, getClassForName, getDataType, getDefaultValue, getTypeAsClass, hashCode, matches, readArrayFromXml, readFromXml, 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> VOID
public static final ReturnType<String> STRING
public static final ReturnType<CharSequence> CHARSEQUENCE
public static final ReturnType<Integer> INTEGER
public static final ReturnType<Long> LONG
public static final ReturnType<Double> DOUBLE
public static final ReturnType<Boolean> BOOLEAN
public static final ReturnType<List> LIST
public static final ReturnType<NodeList> NODELIST
public static final ReturnType<Node> NODE
public static final ReturnType<Set<?>> SET
public static final ReturnType<Collection<?>> COLLECTION
public static final ReturnType<Map<?,?>> MAP
public static final ReturnType<Object> UNKNOWN
public static final ReturnType<Object> NONE
public static final Object VOID_VALUE
| Constructor Detail |
|---|
public ReturnType(Class type,
String description)
| Method Detail |
|---|
public static final ReturnType<?> getReturnType(Class<?> type)
public boolean isRequired()
Parameter
isRequired in class Parameter<C>true if a value is required
public ReturnType addSubType(String name,
ReturnType type)
public Map<String,ReturnType> getSubTypes()
public String toString()
toString in class Parameter<C>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||