public abstract class GuavaCollectionDeserializer<T>
extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.type.CollectionType |
_containerType |
protected com.fasterxml.jackson.databind.jsontype.TypeDeserializer |
_typeDeserializerForValue
If value instances have polymorphic type information, this
is the type deserializer that can deserialize required type
information
|
protected com.fasterxml.jackson.databind.JsonDeserializer<?> |
_valueDeserializer
Deserializer used for values contained in collection being deserialized;
either assigned on constructor, or during resolve().
|
Modifier | Constructor and Description |
---|---|
protected |
GuavaCollectionDeserializer(com.fasterxml.jackson.databind.type.CollectionType type,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeser,
com.fasterxml.jackson.databind.JsonDeserializer<?> deser) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
_deserializeContents(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
protected abstract T |
_deserializeFromSingleValue(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt)
Method used to support implicit coercion from a single non-array value
into single-element collection.
|
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.
|
T |
deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
Object |
deserializeWithType(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer)
Base implementation that does not assume specific type
inclusion mechanism.
|
abstract GuavaCollectionDeserializer<T> |
withResolved(com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeser,
com.fasterxml.jackson.databind.JsonDeserializer<?> valueDeser)
Overridable fluent factory method used for creating contextual
instances.
|
_coerceIntegral, _deserializeFromEmpty, _failDoubleToIntCoercion, _hasTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _parseBoolean, _parseBooleanFromOther, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, getValueClass, getValueType, handledType, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
protected final com.fasterxml.jackson.databind.type.CollectionType _containerType
protected final com.fasterxml.jackson.databind.JsonDeserializer<?> _valueDeserializer
protected final com.fasterxml.jackson.databind.jsontype.TypeDeserializer _typeDeserializerForValue
protected GuavaCollectionDeserializer(com.fasterxml.jackson.databind.type.CollectionType type, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeser, com.fasterxml.jackson.databind.JsonDeserializer<?> deser)
public abstract GuavaCollectionDeserializer<T> withResolved(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.ContextualDeserializer
com.fasterxml.jackson.databind.JsonMappingException
public Object deserializeWithType(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
deserializeWithType
in class com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
IOException
com.fasterxml.jackson.core.JsonProcessingException
public T deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<T>
IOException
com.fasterxml.jackson.core.JsonProcessingException
protected abstract T _deserializeContents(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
protected abstract T _deserializeFromSingleValue(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
Copyright © 2016 FasterXML. All rights reserved.