Class CustomUnmarshaller
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.datamodeling.unmarshallers.CustomUnmarshaller
-
- All Implemented Interfaces:
ArgumentUnmarshaller
public class CustomUnmarshaller extends Object
An unmarshaller that delegates to an instance of aDynamoDBMarshaller
-derived custom marshaler.
-
-
Constructor Summary
Constructors Constructor Description CustomUnmarshaller(Class<?> targetClass, Class<? extends DynamoDBMarshaller<?>> unmarshallerClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
typeCheck(AttributeValue value, Method setter)
Asserts that the value given can be processed using the setter given.Object
unmarshall(AttributeValue value)
Unmarshalls theAttributeValue
given into an instance of the appropriate type, as determined byDynamoDBReflector
andDynamoDBMapper
-
-
-
Constructor Detail
-
CustomUnmarshaller
public CustomUnmarshaller(Class<?> targetClass, Class<? extends DynamoDBMarshaller<?>> unmarshallerClass)
-
-
Method Detail
-
unmarshall
public Object unmarshall(AttributeValue value)
Description copied from interface:ArgumentUnmarshaller
Unmarshalls theAttributeValue
given into an instance of the appropriate type, as determined byDynamoDBReflector
andDynamoDBMapper
-
typeCheck
public void typeCheck(AttributeValue value, Method setter)
Description copied from interface:ArgumentUnmarshaller
Asserts that the value given can be processed using the setter given.- Specified by:
typeCheck
in interfaceArgumentUnmarshaller
-
-