com.threerings.admin.web.gwt
Enum ConfigField.FieldType

java.lang.Object
  extended by java.lang.Enum<ConfigField.FieldType>
      extended by com.threerings.admin.web.gwt.ConfigField.FieldType
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, Serializable, Comparable<ConfigField.FieldType>
Enclosing class:
ConfigField

public static enum ConfigField.FieldType
extends Enum<ConfigField.FieldType>
implements com.google.gwt.user.client.rpc.IsSerializable


Enum Constant Summary
BOOLEAN
           
BYTE
           
DOUBLE
           
FLOAT
           
INTEGER
           
LONG
           
SHORT
           
STRING
           
 
Method Summary
 String toString(Object value)
          Create a string representation of the given value, which should be of the type reflected in this enum.
 Object toValue(String text)
          Convert the given string, which should have been created by toString(Object), back into its raw value form.
static ConfigField.FieldType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigField.FieldType[] 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

INTEGER

public static final ConfigField.FieldType INTEGER

SHORT

public static final ConfigField.FieldType SHORT

BYTE

public static final ConfigField.FieldType BYTE

LONG

public static final ConfigField.FieldType LONG

FLOAT

public static final ConfigField.FieldType FLOAT

BOOLEAN

public static final ConfigField.FieldType BOOLEAN

DOUBLE

public static final ConfigField.FieldType DOUBLE

STRING

public static final ConfigField.FieldType STRING
Method Detail

values

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

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

valueOf

public static ConfigField.FieldType 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

toString

public String toString(Object value)
Create a string representation of the given value, which should be of the type reflected in this enum.


toValue

public Object toValue(String text)
Convert the given string, which should have been created by toString(Object), back into its raw value form.