public class CustomUnmarshaller extends Object
DynamoDBMarshaller
-derived custom marshaler.Constructor and Description |
---|
CustomUnmarshaller(Class<?> targetClass,
Class<? extends DynamoDBMarshaller<?>> unmarshallerClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
typeCheck(AttributeValue value,
Method setter)
Asserts that the value given can be processed using the setter given.
|
Object |
unmarshall(AttributeValue value)
Unmarshalls the
AttributeValue given into an instance of the
appropriate type, as determined by DynamoDBReflector and
DynamoDBMapper |
public CustomUnmarshaller(Class<?> targetClass, Class<? extends DynamoDBMarshaller<?>> unmarshallerClass)
targetClass
- the target class.unmarshallerClass
- the custom unmarshallerpublic 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, Method setter)
ArgumentUnmarshaller
typeCheck
in interface ArgumentUnmarshaller
value
- the attribute value.setter
- the method.Copyright © 2019. All rights reserved.