public class MarshallingWrapper extends Object
Marshalling
to provide a hook for format transformations.Modifier and Type | Class and Description |
---|---|
static interface |
MarshallingWrapper.Marshaller |
Constructor and Description |
---|
MarshallingWrapper() |
Modifier and Type | Method and Description |
---|---|
static Object |
fromJSON(String json) |
static <K,V> Map<K,V> |
fromJSON(String json,
Class<?> type,
Class<K> mapKeyType,
Class<V> mapValueType) |
static <T> T |
fromJSON(String json,
Class<T> type) |
static <T> T |
fromJSON(String json,
Class<T> type,
Class<?> elementType) |
static MarshallingWrapper.Marshaller |
getMarshaller() |
static void |
setMarshaller(MarshallingWrapper.Marshaller marshaller) |
static String |
toJSON(List<?> arr) |
static String |
toJSON(Map<Object,Object> obj) |
static String |
toJSON(Object obj) |
public static void setMarshaller(MarshallingWrapper.Marshaller marshaller)
public static MarshallingWrapper.Marshaller getMarshaller()
public static <K,V> Map<K,V> fromJSON(String json, Class<?> type, Class<K> mapKeyType, Class<V> mapValueType)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.