public abstract class JsonObjectMapperAdapter<P> extends Object implements JsonObjectMapper<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) |
public String toJson(Object value) throws Exception
toJson in interface JsonObjectMapper<P>Exceptionpublic void toJson(Object value, Writer writer) throws Exception
toJson in interface JsonObjectMapper<P>Exceptionpublic <T> T fromJson(Object json, Class<T> valueType) throws Exception
fromJson in interface JsonObjectMapper<P>Exceptionpublic <T> T fromJson(P parser, Type valueType) throws Exception
fromJson in interface JsonObjectMapper<P>Exceptionpublic <T> T fromJson(Object json, Map<String,Object> javaTypes) throws Exception
fromJson in interface JsonObjectMapper<P>Exceptionpublic void populateJavaTypes(Map<String,Object> map, Class<?> sourceClass)
populateJavaTypes in interface JsonObjectMapper<P>Copyright © 2016. All rights reserved.