Enum JsonParserUtils.Mode
- java.lang.Object
-
- java.lang.Enum<JsonParserUtils.Mode>
-
- com.couchbase.client.core.utils.yasjl.JsonParserUtils.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonParserUtils.Mode>
- Enclosing class:
- JsonParserUtils
protected static enum JsonParserUtils.Mode extends Enum<JsonParserUtils.Mode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOM
JSON_ARRAY
JSON_ARRAY_VALUE
JSON_BOOLEAN_FALSE_VALUE
JSON_BOOLEAN_TRUE_VALUE
JSON_NULL_VALUE
JSON_NUMBER_VALUE
JSON_OBJECT
JSON_OBJECT_VALUE
JSON_STRING_HASH_KEY
JSON_STRING_VALUE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonParserUtils.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static JsonParserUtils.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JSON_OBJECT
public static final JsonParserUtils.Mode JSON_OBJECT
-
JSON_OBJECT_VALUE
public static final JsonParserUtils.Mode JSON_OBJECT_VALUE
-
JSON_ARRAY
public static final JsonParserUtils.Mode JSON_ARRAY
-
JSON_ARRAY_VALUE
public static final JsonParserUtils.Mode JSON_ARRAY_VALUE
-
JSON_STRING_HASH_KEY
public static final JsonParserUtils.Mode JSON_STRING_HASH_KEY
-
JSON_STRING_VALUE
public static final JsonParserUtils.Mode JSON_STRING_VALUE
-
JSON_BOOLEAN_TRUE_VALUE
public static final JsonParserUtils.Mode JSON_BOOLEAN_TRUE_VALUE
-
JSON_BOOLEAN_FALSE_VALUE
public static final JsonParserUtils.Mode JSON_BOOLEAN_FALSE_VALUE
-
JSON_NUMBER_VALUE
public static final JsonParserUtils.Mode JSON_NUMBER_VALUE
-
JSON_NULL_VALUE
public static final JsonParserUtils.Mode JSON_NULL_VALUE
-
BOM
public static final JsonParserUtils.Mode BOM
-
-
Method Detail
-
values
public static JsonParserUtils.Mode[] 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 (JsonParserUtils.Mode c : JsonParserUtils.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonParserUtils.Mode 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
-
-