Class 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 the Iterable interface. This class is required in order to extend Jackson's deserialisation behaviour for Collections to a non-Collections class.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        com.fasterxml.jackson.databind.JsonDeserializer.None
    • 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
    • Constructor Detail

      • IterableDeserializer

        public IterableDeserializer()
    • 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 class com.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 interface com.fasterxml.jackson.databind.deser.ContextualDeserializer
        Throws:
        com.fasterxml.jackson.databind.JsonMappingException