public class JsonUtilsClassTypeMapperForJackson extends Object implements JsonUtilsClassTypeMapper
JsonUtilsClassTypeMapper that inspects a "kind"
attribute in a JsonTypeInfo annotation that exists on a particular
JSON serialized class.| Modifier and Type | Field and Description |
|---|---|
static String |
AT_CLASS |
static String |
KIND |
| Constructor and Description |
|---|
JsonUtilsClassTypeMapperForJackson()
No-Args Constructor.
|
JsonUtilsClassTypeMapperForJackson(String jsonTypeAttributeName)
Required-Args Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getJsonClassType(com.fasterxml.jackson.databind.JsonNode jsonNode)
Return the class value that the Jackson library should deserialize the
jsonNode to. |
public static final String KIND
public static final String AT_CLASS
public JsonUtilsClassTypeMapperForJackson()
public JsonUtilsClassTypeMapperForJackson(String jsonTypeAttributeName)
jsonTypeAttributeName - A String representing the name of
the JsonTypeInfo value for the attribute that will
identify the class type of a particular serializaed Json
object.public Class<?> getJsonClassType(com.fasterxml.jackson.databind.JsonNode jsonNode)
JsonUtilsClassTypeMapperjsonNode to. For example, if a payload had the following
annotation values, then an implementation of this interface would convert
the value found in the "kind" attribute to an actual Class. getJsonClassType in interface JsonUtilsClassTypeMapperCopyright © 2014–2015 Sappenin Inc.. All rights reserved.