public class CustomUnmarshaller
extends java.lang.Object
DynamoDBMarshaller
-derived custom marshaler.Constructor and Description |
---|
CustomUnmarshaller(java.lang.Class<?> targetClass,
java.lang.Class<? extends DynamoDBMarshaller<?>> unmarshallerClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
typeCheck(AttributeValue value,
java.lang.reflect.Method setter)
Asserts that the value given can be processed using the setter given.
|
java.lang.Object |
unmarshall(AttributeValue value)
Unmarshalls the
AttributeValue given into an instance of the
appropriate type, as determined by DynamoDBReflector and
DynamoDBMapper |
public CustomUnmarshaller(java.lang.Class<?> targetClass, java.lang.Class<? extends DynamoDBMarshaller<?>> unmarshallerClass)
targetClass
- the target class.unmarshallerClass
- the custom unmarshallerpublic java.lang.Object unmarshall(AttributeValue value)
ArgumentUnmarshaller
AttributeValue
given into an instance of the
appropriate type, as determined by DynamoDBReflector
and
DynamoDBMapper
value
- the attribute value.public void typeCheck(AttributeValue value, java.lang.reflect.Method setter)
ArgumentUnmarshaller
typeCheck
in interface ArgumentUnmarshaller
value
- the attribute value.setter
- the method.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.