Package com.gengoai.config
Enum ConfigTokenType
- java.lang.Object
-
- java.lang.Enum<ConfigTokenType>
-
- com.gengoai.config.ConfigTokenType
-
- All Implemented Interfaces:
Tag
,Serializable
,Comparable<ConfigTokenType>
public enum ConfigTokenType extends Enum<ConfigTokenType> implements Tag
- Author:
- David B. Bracewell
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPEND_PROPERTY
BEAN
BEGIN_ARRAY
BEGIN_OBJECT
BOOLEAN
COMMENT
END_ARRAY
END_OBJECT
EQUAL_PROPERTY
IMPORT
KEY
KEY_VALUE_SEPARATOR
NULL
STRING
VALUE_SEPARATOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigTokenType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigTokenType[]
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 interface com.gengoai.Tag
isInstance, isInstance, label, name, parent
-
-
-
-
Enum Constant Detail
-
STRING
public static final ConfigTokenType STRING
-
KEY
public static final ConfigTokenType KEY
-
BEAN
public static final ConfigTokenType BEAN
-
BOOLEAN
public static final ConfigTokenType BOOLEAN
-
NULL
public static final ConfigTokenType NULL
-
VALUE_SEPARATOR
public static final ConfigTokenType VALUE_SEPARATOR
-
BEGIN_OBJECT
public static final ConfigTokenType BEGIN_OBJECT
-
END_OBJECT
public static final ConfigTokenType END_OBJECT
-
EQUAL_PROPERTY
public static final ConfigTokenType EQUAL_PROPERTY
-
APPEND_PROPERTY
public static final ConfigTokenType APPEND_PROPERTY
-
KEY_VALUE_SEPARATOR
public static final ConfigTokenType KEY_VALUE_SEPARATOR
-
IMPORT
public static final ConfigTokenType IMPORT
-
BEGIN_ARRAY
public static final ConfigTokenType BEGIN_ARRAY
-
END_ARRAY
public static final ConfigTokenType END_ARRAY
-
COMMENT
public static final ConfigTokenType COMMENT
-
-
Method Detail
-
values
public static ConfigTokenType[] 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 (ConfigTokenType c : ConfigTokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigTokenType 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 nameNullPointerException
- if the argument is null
-
-