Top Description Fields Constructors Methods
tools.jackson.databind.deser.std

public abstract Class ContainerDeserializerBase<T>

extends StdDeserializer<T>
implements Gettable
Class Inheritance
All Implemented Interfaces
tools.jackson.databind.deser.ValueInstantiator.Gettable
Known Direct Subclasses
tools.jackson.databind.deser.jdk.CollectionDeserializer, tools.jackson.databind.deser.jdk.EnumMapDeserializer, tools.jackson.databind.deser.jdk.MapDeserializer, tools.jackson.databind.deser.jdk.MapEntryDeserializer, tools.jackson.databind.deser.jdk.ObjectArrayDeserializer, tools.jackson.databind.deser.jdk.StringCollectionDeserializer
Imports
java.lang.reflect.InvocationTargetException, tools.jackson.core.JacksonException, tools.jackson.databind.*, tools.jackson.databind.deser.NullValueProvider, .SettableBeanProperty, .ValueInstantiator, tools.jackson.databind.deser.impl.NullsConstantProvider, tools.jackson.databind.type.TypeFactory, tools.jackson.databind.util.AccessPattern, .ClassUtil

Intermediate base deserializer class that adds more shared accessor so that other classes can access information about contained (value) types

Field Summary

Modifier and TypeField and Description
protected final JavaType
protected final NullValueProvider
_nullProvider

Handler we need for dealing with nulls.

protected final boolean
_skipNullValues

Marker flag set if the _nullProvider indicates that all null content values should be skipped (instead of being possibly converted).

protected final Boolean
_unwrapSingle

Specific override for this instance (from proper, or global per-type overrides) to indicate whether single value may be taken to mean an unwrapped one-element array or not.

Inherited from tools.jackson.databind.deser.std.StdDeserializer:
_valueClass_valueTypeF_MASK_INT_COERCIONS

Constructor Summary

AccessConstructor and Description
protected
protected
protected
protected

Method Summary

Modifier and TypeMethod and Description
public SettableBeanProperty
findBackReference(String refName)

Overrides tools.jackson.databind.ValueDeserializer.findBackReference.

Method needed by BeanDeserializerFactory to properly link managed- and back-reference pairs.

public abstract ValueDeserializer<Object>
getContentDeserializer()

Accesor for deserializer use for deserializing content values.

public JavaType
getContentType()

Accessor for declared type of contained value elements; either exact type, or one of its supertypes.

public AccessPattern
getEmptyAccessPattern()

Overrides tools.jackson.databind.ValueDeserializer.getEmptyAccessPattern.

This method may be called in conjunction with calls to getEmptyValue(DeserializationContext), to check whether it needs to be called just once (static values), or each time empty value is needed.

public Object
getEmptyValue(DeserializationContext ctxt)

Overrides tools.jackson.databind.ValueDeserializer.getEmptyValue.

Method called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings).

public JavaType
getValueType()

Overrides tools.jackson.databind.deser.std.StdDeserializer.getValueType.

Exact structured type this deserializer handles, if known.

public Boolean
supportsUpdate(DeserializationConfig config)

Overrides tools.jackson.databind.ValueDeserializer.supportsUpdate.

Introspection method that may be called to see whether deserializer supports update of an existing value (aka "merging") or not.

protected <BOGUS> BOGUS
wrapAndThrow(DeserializationContext ctxt, Throwable t, Object ref, String key)

Helper method called by various Map(-like) deserializers when encountering a processing problem (whether from underlying parser, i/o, or something else).

Inherited from tools.jackson.databind.deser.std.StdDeserializer:
_byteOverflow_checkBooleanToStringCoercion_checkCoercionFail_checkDoubleSpecialValue_checkFloatSpecialValue_checkFloatToIntCoercion_checkFloatToStringCoercion_checkFromStringCoercion_checkFromStringCoercion_checkIntToFloatCoercion_checkIntToStringCoercion_checkTextualNull_checkToStringCoercion_coerceBooleanFromInt_coercedTypeDesc_coercedTypeDesc_coerceIntegral_deserializeFromArray_deserializeFromEmptyString_deserializeFromString_deserializeWrappedValue_findCoercionFromBlankString_findCoercionFromEmptyArray_findCoercionFromEmptyString_findNullProvider_hasTextualNull_intOverflow_isBlank_isFalse_isIntNumber_isNaN_isNegInf_isPosInf_isTrue_neitherNull_nonNullNumber_parseBoolean_parseBooleanPrimitive_parseBytePrimitive_parseDate_parseDate_parseDateFromArray_parseDouble_parseDoublePrimitive_parseDoublePrimitive_parseFloatPrimitive_parseFloatPrimitive_parseInteger_parseInteger_parseIntPrimitive_parseIntPrimitive_parseLong_parseLong_parseLongPrimitive_parseLongPrimitive_parseShortPrimitive_parseString_reportFailedNullCoerce_shortOverflow_verifyEndArrayForSingle_verifyNullForPrimitive_verifyNullForPrimitiveCoercion_wrapIOFailuredeserializeWithTypefindContentNullProviderfindContentNullStylefindConvertingContentDeserializerfindDeserializerfindFormatFeaturefindFormatOverridesfindValueNullProvidergetValueInstantiatorgetValueTypehandledTypehandleMissingEndArrayForSinglehandleNestedArrayForSinglehandleUnknownPropertyisDefaultDeserializerisDefaultKeyDeserializer

Field Detail

_containerTypeback to summary
protected final JavaType _containerType
_nullProviderback to summary
protected final NullValueProvider _nullProvider

Handler we need for dealing with nulls.

_skipNullValuesback to summary
protected final boolean _skipNullValues

Marker flag set if the _nullProvider indicates that all null content values should be skipped (instead of being possibly converted).

_unwrapSingleback to summary
protected final Boolean _unwrapSingle

Specific override for this instance (from proper, or global per-type overrides) to indicate whether single value may be taken to mean an unwrapped one-element array or not. If null, left to global defaults.

Constructor Detail

ContainerDeserializerBaseback to summary
protected ContainerDeserializerBase(JavaType selfType, NullValueProvider nuller, Boolean unwrapSingle)
ContainerDeserializerBaseback to summary
protected ContainerDeserializerBase(JavaType selfType)
ContainerDeserializerBaseback to summary
protected ContainerDeserializerBase(ContainerDeserializerBase<?> base)
ContainerDeserializerBaseback to summary
protected ContainerDeserializerBase(ContainerDeserializerBase<?> base, NullValueProvider nuller, Boolean unwrapSingle)

Method Detail

findBackReferenceback to summary
public SettableBeanProperty findBackReference(String refName)

Overrides tools.jackson.databind.ValueDeserializer.findBackReference.

Doc from tools.jackson.databind.ValueDeserializer.findBackReference.

Method needed by BeanDeserializerFactory to properly link managed- and back-reference pairs.

Annotations
@Override
getContentDeserializerback to summary
public abstract ValueDeserializer<Object> getContentDeserializer()

Accesor for deserializer use for deserializing content values.

getContentTypeback to summary
public JavaType getContentType()

Accessor for declared type of contained value elements; either exact type, or one of its supertypes.

getEmptyAccessPatternback to summary
public AccessPattern getEmptyAccessPattern()

Overrides tools.jackson.databind.ValueDeserializer.getEmptyAccessPattern.

Doc from tools.jackson.databind.ValueDeserializer.getEmptyAccessPattern.

This method may be called in conjunction with calls to getEmptyValue(DeserializationContext), to check whether it needs to be called just once (static values), or each time empty value is needed.

Annotations
@Override
getEmptyValueback to summary
public Object getEmptyValue(DeserializationContext ctxt) throws JacksonException

Overrides tools.jackson.databind.ValueDeserializer.getEmptyValue.

Doc from tools.jackson.databind.ValueDeserializer.getEmptyValue.

Method called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings). Usually this is same as getNullValue (which in turn is usually simply Java null), but it can be overridden for specific types. Or, if type should never be converted from empty String, method can also throw an exception.

This method may be called once, or multiple times, depending on what getEmptyAccessPattern() returns.

Default implementation simply calls getNullValue and returns value.

Annotations
@Override
getValueTypeback to summary
public JavaType getValueType()

Overrides tools.jackson.databind.deser.std.StdDeserializer.getValueType.

Doc from tools.jackson.databind.deser.std.StdDeserializer.getValueType.

Exact structured type this deserializer handles, if known.

Annotations
@Override
supportsUpdateback to summary
public Boolean supportsUpdate(DeserializationConfig config)

Overrides tools.jackson.databind.ValueDeserializer.supportsUpdate.

Doc from tools.jackson.databind.ValueDeserializer.supportsUpdate.

Introspection method that may be called to see whether deserializer supports update of an existing value (aka "merging") or not. Return value should either be Boolean#FALSE if update is not supported at all (immutable values); Boolean#TRUE if update should usually work (regular POJOs, for example), or null if this is either not known, or may sometimes work.

Information gathered is typically used to either prevent merging update for property (either by skipping, if based on global defaults; or by exception during deserializer construction if explicit attempt made) if Boolean#FALSE returned, or inclusion if Boolean#TRUE is specified. If "unknown" case (null returned) behavior is to exclude property if global defaults used; or to allow if explicit per-type or property merging is defined.

Default implementation returns null to allow explicit per-type or per-property attempts.

Annotations
@Override
wrapAndThrowback to summary
protected <BOGUS> BOGUS wrapAndThrow(DeserializationContext ctxt, Throwable t, Object ref, String key) throws JacksonException

Helper method called by various Map(-like) deserializers when encountering a processing problem (whether from underlying parser, i/o, or something else).