Enum JsonNodeType
- java.lang.Object
-
- java.lang.Enum<JsonNodeType>
-
- com.fasterxml.jackson.databind.node.JsonNodeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JsonNodeType>
public enum JsonNodeType extends java.lang.Enum<JsonNodeType>
Enumeration of JSON types. Covers all JSON types defined by RFC 4627 (array, boolean, null, number, object and string) but also Jackson-specific types: binary, missing and POJO; although does not distinguish between more granular types.- Since:
- 2.2
- See Also:
BinaryNode
,MissingNode
,POJONode
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonNodeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JsonNodeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARRAY
public static final JsonNodeType ARRAY
-
BINARY
public static final JsonNodeType BINARY
-
BOOLEAN
public static final JsonNodeType BOOLEAN
-
MISSING
public static final JsonNodeType MISSING
-
NULL
public static final JsonNodeType NULL
-
NUMBER
public static final JsonNodeType NUMBER
-
OBJECT
public static final JsonNodeType OBJECT
-
POJO
public static final JsonNodeType POJO
-
STRING
public static final JsonNodeType STRING
-
-
Method Detail
-
values
public static JsonNodeType[] 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 (JsonNodeType c : JsonNodeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonNodeType 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 namejava.lang.NullPointerException
- if the argument is null
-
-