com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper
Class JsonMarshaller<T>
java.lang.Object
com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.JsonMarshaller<T>
- All Implemented Interfaces:
- DynamoDBMarshaller<T>
public class JsonMarshaller<T>
- extends java.lang.Object
- implements DynamoDBMarshaller<T>
Simple JSON marshaller that uses Gson mapper. It has all the limitations
of that library, the documentation of which is available here:
http://docs.codehaus.org/display/JACKSON/Home
Method Summary |
java.lang.String |
marshall(T obj)
Turns an object of type T into its String representation. |
T |
unmarshall(java.lang.Class<T> clazz,
java.lang.String json)
Turns a String representation of an object of type T into an object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonMarshaller
public JsonMarshaller()
marshall
public java.lang.String marshall(T obj)
- Description copied from interface:
DynamoDBMarshaller
- Turns an object of type T into its String representation.
- Specified by:
marshall
in interface DynamoDBMarshaller<T>
unmarshall
public T unmarshall(java.lang.Class<T> clazz,
java.lang.String json)
- Description copied from interface:
DynamoDBMarshaller
- Turns a String representation of an object of type T into an object.
- Specified by:
unmarshall
in interface DynamoDBMarshaller<T>
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.