Package com.amazonaws.util.json
Enum Jackson
- All Implemented Interfaces:
Serializable
,Comparable<Jackson>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
fromJsonString
(String json, Class<T> clazz) Returns the deserialized object from the given json string and target class; or null if the given json string is null.static com.fasterxml.jackson.databind.ObjectMapper
static com.fasterxml.jackson.databind.ObjectWriter
static com.fasterxml.jackson.databind.ObjectWriter
static com.fasterxml.jackson.core.JsonGenerator
jsonGeneratorOf
(Writer writer) static com.fasterxml.jackson.databind.JsonNode
jsonNodeOf
(String json) static <T> T
static String
toJsonPrettyString
(Object value) static String
toJsonString
(Object value) static Jackson
Returns the enum constant of this type with the specified name.static Jackson[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
toJsonPrettyString
-
toJsonString
-
fromJsonString
Returns the deserialized object from the given json string and target class; or null if the given json string is null. -
jsonNodeOf
-
jsonGeneratorOf
public static com.fasterxml.jackson.core.JsonGenerator jsonGeneratorOf(Writer writer) throws IOException - Throws:
IOException
-
loadFrom
- Throws:
IOException
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getWriter
public static com.fasterxml.jackson.databind.ObjectWriter getWriter() -
getPrettywriter
public static com.fasterxml.jackson.databind.ObjectWriter getPrettywriter()
-