Top Fields Constructors Methods
tools.jackson.databind.ext.javatime.deser

public abstract Class JSR310DateTimeDeserializerBase<T>

extends JSR310DeserializerBase<T>
Class Inheritance
Known Direct Subclasses
tools.jackson.databind.ext.javatime.deser.LocalDateDeserializer, tools.jackson.databind.ext.javatime.deser.LocalDateTimeDeserializer, tools.jackson.databind.ext.javatime.deser.LocalTimeDeserializer, tools.jackson.databind.ext.javatime.deser.MonthDayDeserializer, tools.jackson.databind.ext.javatime.deser.MonthDeserializer, tools.jackson.databind.ext.javatime.deser.OffsetTimeDeserializer, tools.jackson.databind.ext.javatime.deser.YearDeserializer, tools.jackson.databind.ext.javatime.deser.YearMonthDeserializer, tools.jackson.databind.ext.javatime.deser.InstantDeserializer
Imports
java.time.format.DateTimeFormatter, .DateTimeFormatterBuilder, .ResolverStyle, java.util.Locale, com.fasterxml.jackson.annotation.JsonFormat, .JsonFormat.Feature, .JsonFormat.Shape, tools.jackson.core.JacksonException, .JsonParser, tools.jackson.databind.*

Field Summary

Modifier and TypeField and Description
protected final DateTimeFormatter
protected final JsonFormat.Shape
_shape

Setting that indicates the JsonFormat.Shape specified for this deserializer as a com.fasterxml.jackson.annotation.JsonFormat.Shape annotation on property or class, or due to per-type "config override", or from global settings: If Shape is NUMBER_INT, the input value is considered to be epoch days.

Inherited from tools.jackson.databind.ext.javatime.deser.JSR310DeserializerBase:
_isLenient

Constructor Summary

AccessConstructor and Description
protected
public
protected
protected
protected
protected

Method Summary

Modifier and TypeMethod and Description
protected void
protected JSR310DateTimeDeserializerBase<?>

Returns:

Either this deserializer as is, or newly constructed variant if created for different configuration
_withFormatOverrides
(DeserializationContext
Active deserialization context
ctxt
,
BeanProperty
(optional) Property on which this deserializer is used, or null for root value
property
,
JsonFormat.Value
Format overrides to use (non-null)
formatOverrides
)

private boolean
public ValueDeserializer<?>
createContextual(DeserializationContext ctxt, BeanProperty property)

Overrides tools.jackson.databind.ValueDeserializer.createContextual.

Method called to see if a different (or differently configured) deserializer is needed to deserialize values of specified property.

protected abstract JSR310DateTimeDeserializerBase<T>
protected abstract JSR310DateTimeDeserializerBase<T>
protected JSR310DateTimeDeserializerBase<T>
withShape(JsonFormat.Shape shape)

The default implementation returns this, because shape is more likely applicable in case of the serialization, usage during deserialization could cover only very specific cases.

Inherited from tools.jackson.databind.ext.javatime.deser.JSR310DeserializerBase:
_failForNotLenient_fromEmptyString_handleDateTimeException_handleDateTimeFormatException_handleUnexpectedToken_handleUnexpectedToken_isValidTimestampString_peelDTE_reportWrongToken_reportWrongTokendeserializeWithTypeisLenientlogicalType

Field Detail

_formatterback to summary
protected final DateTimeFormatter _formatter
_shapeback to summary
protected final JsonFormat.Shape _shape

Setting that indicates the JsonFormat.Shape specified for this deserializer as a com.fasterxml.jackson.annotation.JsonFormat.Shape annotation on property or class, or due to per-type "config override", or from global settings: If Shape is NUMBER_INT, the input value is considered to be epoch days. If not a NUMBER_INT, and the deserializer was not specified with the leniency setting of true, then an exception will be thrown.

Constructor Detail

JSR310DateTimeDeserializerBaseback to summary
protected JSR310DateTimeDeserializerBase(Class<T> supportedType, DateTimeFormatter f)
JSR310DateTimeDeserializerBaseback to summary
public JSR310DateTimeDeserializerBase(Class<T> supportedType, DateTimeFormatter f, Boolean leniency)
JSR310DateTimeDeserializerBaseback to summary
protected JSR310DateTimeDeserializerBase(JSR310DateTimeDeserializerBase<T> base, DateTimeFormatter f)
JSR310DateTimeDeserializerBaseback to summary
protected JSR310DateTimeDeserializerBase(JSR310DateTimeDeserializerBase<T> base, Boolean leniency)
JSR310DateTimeDeserializerBaseback to summary
protected JSR310DateTimeDeserializerBase(JSR310DateTimeDeserializerBase<T> base, JsonFormat.Shape shape)
JSR310DateTimeDeserializerBaseback to summary
protected JSR310DateTimeDeserializerBase(JSR310DateTimeDeserializerBase<T> base, Boolean leniency, DateTimeFormatter formatter, JsonFormat.Shape shape)
Since
2.16

Method Detail

_throwNoNumericTimestampNeedTimeZoneback to summary
protected void _throwNoNumericTimestampNeedTimeZone(JsonParser p, DeserializationContext ctxt) throws JacksonException
_withFormatOverridesback to summary
protected JSR310DateTimeDeserializerBase<?> _withFormatOverrides(DeserializationContext ctxt, BeanProperty property, JsonFormat.Value formatOverrides)
Parameters
ctxt:DeserializationContext

Active deserialization context

property:BeanProperty

(optional) Property on which this deserializer is used, or null for root value

formatOverrides:JsonFormat.Value

Format overrides to use (non-null)

Returns:JSR310DateTimeDeserializerBase<?>

Either this deserializer as is, or newly constructed variant if created for different configuration

Since
2.12.1
acceptCaseInsensitiveValuesback to summary
private boolean acceptCaseInsensitiveValues(DeserializationContext ctxt, JsonFormat.Value format)
createContextualback to summary
public ValueDeserializer<?> createContextual(DeserializationContext ctxt, BeanProperty property)

Overrides tools.jackson.databind.ValueDeserializer.createContextual.

Doc from tools.jackson.databind.ValueDeserializer.createContextual.

Method called to see if a different (or differently configured) deserializer is needed to deserialize values of specified property. Note that instance that this method is called on is typically shared one and as a result method should NOT modify this instance but rather construct and return a new instance. This instance should only be returned as-is, in case it is already suitable for use.

Annotations
@Override
withDateFormatback to summary
protected abstract JSR310DateTimeDeserializerBase<T> withDateFormat(DateTimeFormatter dtf)
withLeniencyback to summary
protected abstract JSR310DateTimeDeserializerBase<T> withLeniency(Boolean leniency)

Implements abstract tools.jackson.databind.ext.javatime.deser.JSR310DeserializerBase.withLeniency.

Annotations
@Override
withShapeback to summary
protected JSR310DateTimeDeserializerBase<T> withShape(JsonFormat.Shape shape)

The default implementation returns this, because shape is more likely applicable in case of the serialization, usage during deserialization could cover only very specific cases.