Class IterableDeserializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<Iterable<?>>
-
- uk.gov.gchq.gaffer.jsonserialisation.jackson.IterableDeserializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.ContextualDeserializer
,com.fasterxml.jackson.databind.deser.NullValueProvider
public class IterableDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<Iterable<?>> implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
Custom deserialisation class for any classes implementing theIterable
interface. This class is required in order to extend Jackson's deserialisation behaviour for Collections to a non-Collections class.
-
-
Constructor Summary
Constructors Constructor Description IterableDeserializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonDeserializer<?>
createContextual(com.fasterxml.jackson.databind.DeserializationContext deserializationContext, com.fasterxml.jackson.databind.BeanProperty property)
Iterable<?>
deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)
static com.fasterxml.jackson.databind.module.SimpleModule
getModule()
-
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
-
-
-
Method Detail
-
getModule
public static com.fasterxml.jackson.databind.module.SimpleModule getModule()
-
deserialize
public Iterable<?> deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
- Specified by:
deserialize
in classcom.fasterxml.jackson.databind.JsonDeserializer<Iterable<?>>
- Throws:
IOException
-
createContextual
public com.fasterxml.jackson.databind.JsonDeserializer<?> createContextual(com.fasterxml.jackson.databind.DeserializationContext deserializationContext, com.fasterxml.jackson.databind.BeanProperty property) throws com.fasterxml.jackson.databind.JsonMappingException
- Specified by:
createContextual
in interfacecom.fasterxml.jackson.databind.deser.ContextualDeserializer
- Throws:
com.fasterxml.jackson.databind.JsonMappingException
-
-