nl.gx.webmanager.cms.form
Enum RuleParameterType

java.lang.Object
  extended by java.lang.Enum<RuleParameterType>
      extended by nl.gx.webmanager.cms.form.RuleParameterType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RuleParameterType>

public enum RuleParameterType
extends java.lang.Enum<RuleParameterType>

Parameters for rules can have different datatypes. This enumeration describes the different datatypes available.

Author:
simon

Enum Constant Summary
BOOLEAN
           
CALLBACK
           
FORM_PART
           
FORM_PART_VALUE
           
INTEGER
           
PAGE
           
STEP
           
STRING
           
USER_ENTRY
           
 
Method Summary
 java.lang.String getCode()
          Return this type's internal code name.
static RuleParameterType parse(java.lang.String code)
          Convert a string to rule parameter type.
static RuleParameterType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RuleParameterType[] 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

STRING

public static final RuleParameterType STRING

BOOLEAN

public static final RuleParameterType BOOLEAN

CALLBACK

public static final RuleParameterType CALLBACK

FORM_PART

public static final RuleParameterType FORM_PART

FORM_PART_VALUE

public static final RuleParameterType FORM_PART_VALUE

INTEGER

public static final RuleParameterType INTEGER

PAGE

public static final RuleParameterType PAGE

STEP

public static final RuleParameterType STEP

USER_ENTRY

public static final RuleParameterType USER_ENTRY
Method Detail

values

public static RuleParameterType[] 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 (RuleParameterType c : RuleParameterType.values())
    System.out.println(c);

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

valueOf

public static RuleParameterType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCode

public java.lang.String getCode()
Return this type's internal code name.

Returns:
code name string.

parse

public static RuleParameterType parse(java.lang.String code)
Convert a string to rule parameter type.

Parameters:
code - string to parse.
Returns:
matching rule parameter type.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.