rails.util
Enum ConfigItem.ConfigType

java.lang.Object
  extended by java.lang.Enum<ConfigItem.ConfigType>
      extended by rails.util.ConfigItem.ConfigType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ConfigItem.ConfigType>
Enclosing class:
ConfigItem

public static enum ConfigItem.ConfigType
extends java.lang.Enum<ConfigItem.ConfigType>

Defines possible types (Java classes used as types in ConfigItem below


Enum Constant Summary
BOOLEAN
           
COLOR
           
DIRECTORY
           
FILE
           
FONT
           
INTEGER
           
LIST
           
PERCENT
           
STRING
           
 
Method Summary
static ConfigItem.ConfigType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ConfigItem.ConfigType[] 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

BOOLEAN

public static final ConfigItem.ConfigType BOOLEAN

INTEGER

public static final ConfigItem.ConfigType INTEGER

PERCENT

public static final ConfigItem.ConfigType PERCENT

STRING

public static final ConfigItem.ConfigType STRING

LIST

public static final ConfigItem.ConfigType LIST

FONT

public static final ConfigItem.ConfigType FONT

DIRECTORY

public static final ConfigItem.ConfigType DIRECTORY

FILE

public static final ConfigItem.ConfigType FILE

COLOR

public static final ConfigItem.ConfigType COLOR
Method Detail

values

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

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

valueOf

public static ConfigItem.ConfigType 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