Package com.arangodb.internal.serde
Enum SerdeUtils
- All Implemented Interfaces:
Serializable
,Comparable<SerdeUtils>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
constructListType
(Class<?> clazz) static Type
constructParametricType
(Class<?> rawType, Type... rawArgs) static Type
convertToType
(com.fasterxml.jackson.databind.JavaType javaType) static byte[]
extractBytes
(com.fasterxml.jackson.core.JsonParser parser) Extract raw bytes for the current JSON (or VPACK) nodecom.fasterxml.jackson.databind.ObjectMapper
static boolean
isManagedClass
(Class<?> clazz) com.fasterxml.jackson.databind.JsonNode
Parse a JSON string.static SerdeUtils
Returns the enum constant of this type with the specified name.static SerdeUtils[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.writeJson
(com.fasterxml.jackson.databind.JsonNode data)
-
Enum Constant Details
-
INSTANCE
-
-
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
-
constructListType
-
constructParametricType
-
convertToType
-
getJsonMapper
public com.fasterxml.jackson.databind.ObjectMapper getJsonMapper() -
parseJson
Parse a JSON string.- Parameters:
json
- JSON string to parse- Returns:
- root of the parsed tree
-
writeJson
- Parameters:
data
- JsonNode- Returns:
- JSON string
-
extractBytes
Extract raw bytes for the current JSON (or VPACK) node- Parameters:
parser
- JsonParser with current token pointing to the node to extract- Returns:
- byte array
- Throws:
IOException
-
isManagedClass
-