public class ChangeTransformerHelper extends Object
ChangeDetail
).Constructor and Description |
---|
ChangeTransformerHelper(com.fasterxml.jackson.databind.ObjectMapper fieldChangeMapper) |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JavaType |
getJavaType(String serializedType)
Get the
JavaType instance from the serialized canonical type. |
Object |
getObjectRepresentation(String json,
String type,
String serializedType)
Get an object version of some JSON
|
<T> T |
getObjectRepresentation(String json,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
Get a
TypeReference version of some JSON |
String |
getSerializedType(Type type)
Canonical String version of a
JavaType instance based on a Type instance. |
String |
getStringRepresentation(Object item)
The message information to convert to JSON string.
|
public ChangeTransformerHelper(com.fasterxml.jackson.databind.ObjectMapper fieldChangeMapper)
public Object getObjectRepresentation(String json, String type, String serializedType)
json
- The JSON to deserializetype
- The object type used during deserializationserializedType
- Canonical String version of the JavaType
public <T> T getObjectRepresentation(String json, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
TypeReference
version of some JSONjson
- The JSON to deserializepublic String getSerializedType(Type type)
JavaType
instance based on a Type
instance.type
- The Type
instance to convertpublic String getStringRepresentation(Object item)
item
- The message informationpublic com.fasterxml.jackson.databind.JavaType getJavaType(String serializedType)
JavaType
instance from the serialized canonical type.serializedType
- Canonical String version of JavaTypeJavaType
represented by the StringCopyright © 2021. All rights reserved.