com.typesafe.config
Enum ConfigValueType

java.lang.Object
  extended by java.lang.Enum<ConfigValueType>
      extended by com.typesafe.config.ConfigValueType
All Implemented Interfaces:
Serializable, Comparable<ConfigValueType>

public enum ConfigValueType
extends Enum<ConfigValueType>

The type of a configuration value (following the JSON type schema).


Enum Constant Summary
BOOLEAN
           
LIST
           
NULL
           
NUMBER
           
OBJECT
           
STRING
           
 
Method Summary
static ConfigValueType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigValueType[] 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

OBJECT

public static final ConfigValueType OBJECT

LIST

public static final ConfigValueType LIST

NUMBER

public static final ConfigValueType NUMBER

BOOLEAN

public static final ConfigValueType BOOLEAN

NULL

public static final ConfigValueType NULL

STRING

public static final ConfigValueType STRING
Method Detail

values

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

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

valueOf

public static ConfigValueType 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