org.mmbase.util.functions
Enum SetFunction.Type

java.lang.Object
  extended by java.lang.Enum<SetFunction.Type>
      extended by org.mmbase.util.functions.SetFunction.Type
All Implemented Interfaces:
Serializable, Comparable<SetFunction.Type>
Enclosing class:
SetFunction

public static enum SetFunction.Type
extends Enum<SetFunction.Type>


Enum Constant Summary
BEAN
          If type is 'bean' the method must not be static, and on every call to getFunctionValue, a new object is instantiated.
CLASS
          If type is 'class' the method must be static, or if it is not static, there will be instantiated one object.
INSTANCE
          If type is 'instance' the method must not be static, and on every call to getFunctionValue, a new object is instantiated.
SINGLETON
          If type is 'singleton', then the static method 'getInstance' will be called to get the one instance, unless the method is static.
 
Method Summary
static SetFunction.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SetFunction.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLASS

public static final SetFunction.Type CLASS
If type is 'class' the method must be static, or if it is not static, there will be instantiated one object.


INSTANCE

public static final SetFunction.Type INSTANCE
If type is 'instance' the method must not be static, and on every call to getFunctionValue, a new object is instantiated.


BEAN

public static final SetFunction.Type BEAN
If type is 'bean' the method must not be static, and on every call to getFunctionValue, a new object is instantiated. There is not need to explicitely declare the parameters.


SINGLETON

public static final SetFunction.Type SINGLETON
If type is 'singleton', then the static method 'getInstance' will be called to get the one instance, unless the method is static.

Method Detail

values

public static SetFunction.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SetFunction.Type c : SetFunction.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SetFunction.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


MMBase 2.0-SNAPSHOT - null