com.amazonaws.services.dynamodb.datamodeling
Class JsonMarshaller<T>

java.lang.Object
  extended by com.amazonaws.services.dynamodb.datamodeling.JsonMarshaller<T>
All Implemented Interfaces:
DynamoDBMarshaller<T>

public class JsonMarshaller<T>
extends Object
implements DynamoDBMarshaller<T>

Simple JSON marshaller that uses Jackson mapper. It has all the limitations of that library, the documentation of which is available here: http://docs.codehaus.org/display/JACKSON/Home


Constructor Summary
JsonMarshaller()
           
 
Method Summary
 String marshall(T obj)
          Turns an object of type T into its String representation.
 T unmarshall(Class<T> clazz, String obj)
          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
 

Constructor Detail

JsonMarshaller

public JsonMarshaller()
Method Detail

marshall

public 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(Class<T> clazz,
                    String obj)
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.