public abstract class JsonObjectMapperAdapter<N,P> extends Object implements JsonObjectMapper<N,P>
Constructor and Description |
---|
JsonObjectMapperAdapter() |
Modifier and Type | Method and Description |
---|---|
<T> T |
fromJson(Object json,
Class<T> valueType) |
<T> T |
fromJson(Object json,
Map<String,Object> javaTypes) |
<T> T |
fromJson(P parser,
Type valueType) |
void |
populateJavaTypes(Map<String,Object> map,
Class<?> sourceClass) |
String |
toJson(Object value) |
void |
toJson(Object value,
Writer writer) |
N |
toJsonNode(Object value) |
public String toJson(Object value) throws Exception
toJson
in interface JsonObjectMapper<N,P>
Exception
public void toJson(Object value, Writer writer) throws Exception
toJson
in interface JsonObjectMapper<N,P>
Exception
public N toJsonNode(Object value) throws Exception
toJsonNode
in interface JsonObjectMapper<N,P>
Exception
public <T> T fromJson(Object json, Class<T> valueType) throws Exception
fromJson
in interface JsonObjectMapper<N,P>
Exception
public <T> T fromJson(P parser, Type valueType) throws Exception
fromJson
in interface JsonObjectMapper<N,P>
Exception
public <T> T fromJson(Object json, Map<String,Object> javaTypes) throws Exception
fromJson
in interface JsonObjectMapper<N,P>
Exception
public void populateJavaTypes(Map<String,Object> map, Class<?> sourceClass)
populateJavaTypes
in interface JsonObjectMapper<N,P>