Class AdditionalPropertiesDeserializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.deser.NullValueProvider, com.fasterxml.jackson.databind.deser.ResolvableDeserializer, Serializable

    @Beta(V1_7_0)
    public final class AdditionalPropertiesDeserializer
    extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<Object>
    implements com.fasterxml.jackson.databind.deser.ResolvableDeserializer
    Custom serializer for deserializing complex types with additional properties. If a complex type has a property named "additionalProperties" with serialized name empty ("") of type Map<String, Object>, all extra properties on the payload will be stored in this map.
    See Also:
    Serialized Form
    • Nested Class Summary

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

        com.fasterxml.jackson.databind.JsonDeserializer.None
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer

        _valueClass, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AdditionalPropertiesDeserializer​(Class<?> vc, com.fasterxml.jackson.databind.JsonDeserializer<?> defaultDeserializer, com.fasterxml.jackson.databind.ObjectMapper mapper)
      Creates an instance of FlatteningDeserializer.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object deserialize​(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)  
      static com.fasterxml.jackson.databind.module.SimpleModule getModule​(com.fasterxml.jackson.databind.ObjectMapper mapper)
      Gets a module wrapping this serializer as an adapter for the Jackson ObjectMapper.
      void resolve​(com.fasterxml.jackson.databind.DeserializationContext ctxt)  
      • Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer

        _byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, deserializeWithType, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
      • Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        deserialize, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializer
    • Constructor Detail

      • AdditionalPropertiesDeserializer

        protected AdditionalPropertiesDeserializer​(Class<?> vc,
                                                   com.fasterxml.jackson.databind.JsonDeserializer<?> defaultDeserializer,
                                                   com.fasterxml.jackson.databind.ObjectMapper mapper)
        Creates an instance of FlatteningDeserializer.
        Parameters:
        vc - handled type
        defaultDeserializer - the default JSON mapperAdapter
        mapper - the object mapper for default deserializations
    • Method Detail

      • getModule

        public static com.fasterxml.jackson.databind.module.SimpleModule getModule​(com.fasterxml.jackson.databind.ObjectMapper mapper)
        Gets a module wrapping this serializer as an adapter for the Jackson ObjectMapper.
        Parameters:
        mapper - the object mapper for default deserializations
        Returns:
        a simple module to be plugged onto Jackson ObjectMapper.
      • deserialize

        public Object 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<Object>
        Throws:
        IOException
      • resolve

        public void resolve​(com.fasterxml.jackson.databind.DeserializationContext ctxt)
                     throws com.fasterxml.jackson.databind.JsonMappingException
        Specified by:
        resolve in interface com.fasterxml.jackson.databind.deser.ResolvableDeserializer
        Throws:
        com.fasterxml.jackson.databind.JsonMappingException