public class DefaultJSONMapper extends Object implements WidgetJSONMapper
ObjectMapper and uses it.| Constructor and Description |
|---|
DefaultJSONMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected org.codehaus.jackson.map.ObjectMapper |
configureMapper(Class<?> objectType,
org.codehaus.jackson.map.ObjectMapper mapper) |
protected org.codehaus.jackson.map.ObjectMapper |
createMapper(Class<?> objectType) |
<T> T |
fromJSONString(String json,
Class<T> resultType) |
<T> T |
fromJSONString(WidgetInstanceManager widgetInstanceManager,
String json,
Class<T> resultType) |
List<ObjectMapperConfiguration> |
getConfigurations() |
protected org.codehaus.jackson.map.ObjectMapper |
getMapper(Class<?> objectType) |
protected org.codehaus.jackson.map.ObjectMapper |
getMapper(WidgetInstanceManager widgetInstanceManager,
Class<?> objectType) |
protected <T> T |
readValue(org.codehaus.jackson.map.ObjectMapper objectMapper,
String json,
Class<T> resultType) |
void |
setConfigurations(List<ObjectMapperConfiguration> configurations) |
String |
toJSONString(Object object) |
String |
toJSONString(WidgetInstanceManager widgetInstanceManager,
Object object) |
protected String |
writeValue(org.codehaus.jackson.map.ObjectMapper objectMapper,
Object object) |
protected String writeValue(org.codehaus.jackson.map.ObjectMapper objectMapper, Object object) throws IOException
IOExceptionprotected <T> T readValue(org.codehaus.jackson.map.ObjectMapper objectMapper,
String json,
Class<T> resultType)
throws IOException
IOExceptionpublic <T> T fromJSONString(String json, Class<T> resultType)
fromJSONString in interface JSONMapperpublic <T> T fromJSONString(WidgetInstanceManager widgetInstanceManager, String json, Class<T> resultType)
fromJSONString in interface WidgetJSONMapperpublic String toJSONString(Object object)
toJSONString in interface JSONMapperpublic String toJSONString(WidgetInstanceManager widgetInstanceManager, Object object)
toJSONString in interface WidgetJSONMapperprotected org.codehaus.jackson.map.ObjectMapper createMapper(Class<?> objectType)
protected org.codehaus.jackson.map.ObjectMapper configureMapper(Class<?> objectType, org.codehaus.jackson.map.ObjectMapper mapper)
protected org.codehaus.jackson.map.ObjectMapper getMapper(WidgetInstanceManager widgetInstanceManager, Class<?> objectType)
protected org.codehaus.jackson.map.ObjectMapper getMapper(Class<?> objectType)
public List<ObjectMapperConfiguration> getConfigurations()
public void setConfigurations(List<ObjectMapperConfiguration> configurations)
Copyright © 2018. All rights reserved.