Class JsonMarshaller<T>
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.datamodeling.JsonMarshaller<T>
-
- All Implemented Interfaces:
DynamoDBMarshaller<T>
public class JsonMarshaller<T> extends Object implements DynamoDBMarshaller<T>
A simple JSON marshaller that uses the Jackson JSON processor. It shares all limitations of that library. For more information about Jackson, see: http://wiki.fasterxml.com/JacksonHome
-
-
Constructor Summary
Constructors Constructor Description JsonMarshaller()Constructs the JSON marshaller instance.JsonMarshaller(Class<T> valueType)Constructs the JSON marshaller instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<T>getValueType()Gets the value type.Stringmarshall(T obj)Turns an object of type T into its String representation.Tunmarshall(Class<T> clazz, String json)Turns a String representation of an object of type T into an object.
-
-
-
Method Detail
-
marshall
public String marshall(T obj)
Description copied from interface:DynamoDBMarshallerTurns an object of type T into its String representation.- Specified by:
marshallin interfaceDynamoDBMarshaller<T>
-
unmarshall
public T unmarshall(Class<T> clazz, String json)
Description copied from interface:DynamoDBMarshallerTurns a String representation of an object of type T into an object.- Specified by:
unmarshallin interfaceDynamoDBMarshaller<T>
-
-