Class MapAndKeyValuePairDeserializer

  • All Implemented Interfaces:
    org.codehaus.jackson.map.ResolvableDeserializer
    Direct Known Subclasses:
    EnrichedMapDeserializer

    public class MapAndKeyValuePairDeserializer
    extends org.codehaus.jackson.map.deser.std.MapDeserializer
    Deserialize either a map json object, or a key-value pair json array as a map. This provides support for the graph-ql deserialization of a Map to a key/value hierarchy (useful for testing). See MapKeyValueHierarchyTypeBuilder.
    Since:
    6.12.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.codehaus.jackson.map.deser.std.StdDeserializer

        org.codehaus.jackson.map.deser.std.StdDeserializer.BigDecimalDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.BigIntegerDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.BooleanDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.ByteDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.CharacterDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.DoubleDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.FloatDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.IntegerDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.LongDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.NumberDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.PrimitiveOrWrapperDeserializer<T extends Object>, org.codehaus.jackson.map.deser.std.StdDeserializer.ShortDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.SqlDateDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.StackTraceElementDeserializer
      • Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonDeserializer

        org.codehaus.jackson.map.JsonDeserializer.None
    • Field Summary

      • Fields inherited from class org.codehaus.jackson.map.deser.std.MapDeserializer

        _delegateDeserializer, _hasDefaultCreator, _ignorableProperties, _keyDeserializer, _mapType, _propertyBasedCreator, _valueDeserializer, _valueInstantiator, _valueTypeDeserializer
      • Fields inherited from class org.codehaus.jackson.map.deser.std.StdDeserializer

        _valueClass
    • Constructor Summary

      Constructors 
      Constructor Description
      MapAndKeyValuePairDeserializer​(org.codehaus.jackson.type.JavaType mapType, org.codehaus.jackson.map.deser.ValueInstantiator valueInstantiator, org.codehaus.jackson.map.KeyDeserializer keyDeser, org.codehaus.jackson.map.JsonDeserializer<Object> valueDeser, org.codehaus.jackson.map.TypeDeserializer valueTypeDeser)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Map<Object,​Object> deserialize​(org.codehaus.jackson.JsonParser jp, org.codehaus.jackson.map.DeserializationContext ctxt)  
      Map<Object,​Object> deserialize​(org.codehaus.jackson.JsonParser jp, org.codehaus.jackson.map.DeserializationContext ctxt, Map<Object,​Object> result)  
      • Methods inherited from class org.codehaus.jackson.map.deser.std.MapDeserializer

        _deserializeUsingCreator, _readAndBind, deserializeWithType, getContentDeserializer, getContentType, getMapClass, getValueType, resolve, setIgnorableProperties, wrapAndThrow
      • Methods inherited from class org.codehaus.jackson.map.deser.std.StdDeserializer

        _parseBoolean, _parseBooleanFromNumber, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, findDeserializer, getValueClass, handleUnknownProperty, isDefaultSerializer, parseDouble, reportUnknownProperty
      • Methods inherited from class org.codehaus.jackson.map.JsonDeserializer

        getEmptyValue, getNullValue, unwrappingDeserializer
    • Constructor Detail

      • MapAndKeyValuePairDeserializer

        public MapAndKeyValuePairDeserializer​(org.codehaus.jackson.type.JavaType mapType,
                                              org.codehaus.jackson.map.deser.ValueInstantiator valueInstantiator,
                                              org.codehaus.jackson.map.KeyDeserializer keyDeser,
                                              org.codehaus.jackson.map.JsonDeserializer<Object> valueDeser,
                                              org.codehaus.jackson.map.TypeDeserializer valueTypeDeser)
    • Method Detail

      • deserialize

        public Map<Object,​Object> deserialize​(org.codehaus.jackson.JsonParser jp,
                                                    org.codehaus.jackson.map.DeserializationContext ctxt)
                                             throws IOException
        Overrides:
        deserialize in class org.codehaus.jackson.map.deser.std.MapDeserializer
        Throws:
        IOException
      • deserialize

        public Map<Object,​Object> deserialize​(org.codehaus.jackson.JsonParser jp,
                                                    org.codehaus.jackson.map.DeserializationContext ctxt,
                                                    Map<Object,​Object> result)
                                             throws IOException,
                                                    org.codehaus.jackson.JsonProcessingException
        Overrides:
        deserialize in class org.codehaus.jackson.map.deser.std.MapDeserializer
        Throws:
        IOException
        org.codehaus.jackson.JsonProcessingException