public abstract class PCollectionsMapDeserializer<T extends org.pcollections.PMap<Object,Object>>
extends com.fasterxml.jackson.databind.JsonDeserializer<T>
implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.KeyDeserializer |
_keyDeserializer
Key deserializer used, if not null.
|
protected com.fasterxml.jackson.databind.type.MapType |
_mapType |
protected com.fasterxml.jackson.databind.jsontype.TypeDeserializer |
_typeDeserializerForValue
If value instances have polymorphic type information, this
is the type deserializer that can handle it
|
protected com.fasterxml.jackson.databind.JsonDeserializer<?> |
_valueDeserializer
Value deserializer.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PCollectionsMapDeserializer(com.fasterxml.jackson.databind.type.MapType type,
com.fasterxml.jackson.databind.KeyDeserializer keyDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeser,
com.fasterxml.jackson.databind.JsonDeserializer<?> deser) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
_deserializeEntries(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
protected T |
_handleNull(com.fasterxml.jackson.databind.DeserializationContext ctxt,
Object key,
com.fasterxml.jackson.databind.JsonDeserializer<?> valueDeser,
T map)
Overridable helper method called when a JSON null value is encountered.
|
com.fasterxml.jackson.databind.JsonDeserializer<?> |
createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.BeanProperty property)
Method called to finalize setup of this deserializer,
after deserializer itself has been registered.
|
protected abstract T |
createEmptyMap() |
T |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
Object |
deserializeWithType(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer)
Base implementation that does not assume specific type
inclusion mechanism.
|
abstract PCollectionsMapDeserializer<T> |
withResolved(com.fasterxml.jackson.databind.KeyDeserializer keyDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeser,
com.fasterxml.jackson.databind.JsonDeserializer<?> valueDeser)
Overridable fluent factory method used for creating contextual
instances.
|
deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerprotected final com.fasterxml.jackson.databind.type.MapType _mapType
protected com.fasterxml.jackson.databind.KeyDeserializer _keyDeserializer
protected com.fasterxml.jackson.databind.JsonDeserializer<?> _valueDeserializer
protected final com.fasterxml.jackson.databind.jsontype.TypeDeserializer _typeDeserializerForValue
protected PCollectionsMapDeserializer(com.fasterxml.jackson.databind.type.MapType type,
com.fasterxml.jackson.databind.KeyDeserializer keyDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeser,
com.fasterxml.jackson.databind.JsonDeserializer<?> deser)
public abstract PCollectionsMapDeserializer<T> withResolved(com.fasterxml.jackson.databind.KeyDeserializer keyDeser, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeser, com.fasterxml.jackson.databind.JsonDeserializer<?> valueDeser)
public com.fasterxml.jackson.databind.JsonDeserializer<?> createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.BeanProperty property)
throws com.fasterxml.jackson.databind.JsonMappingException
createContextual in interface com.fasterxml.jackson.databind.deser.ContextualDeserializercom.fasterxml.jackson.databind.JsonMappingExceptionpublic Object deserializeWithType(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) throws IOException
deserializeWithType in class com.fasterxml.jackson.databind.JsonDeserializer<T extends org.pcollections.PMap<Object,Object>>IOExceptionpublic T deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<T extends org.pcollections.PMap<Object,Object>>IOExceptionprotected abstract T createEmptyMap()
protected T _deserializeEntries(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
IOExceptionprotected T _handleNull(com.fasterxml.jackson.databind.DeserializationContext ctxt, Object key, com.fasterxml.jackson.databind.JsonDeserializer<?> valueDeser, T map) throws IOException
IOExceptionCopyright © 2020 FasterXML. All rights reserved.