T
- The type this deserializer should read.public abstract class AbstractJacksonCalendarDeserializer<T>
extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
Calendar
object as a Jackson
StdDeserializer
.
This may be used to specify a deserializer for the new Java date API (e.g. LocalDateTime
) based on
a common conversion logic. This way the logic is split the following way:
General Conversion logic | AbstractTypeConverter subclasses (*CalendarConverter) |
Gson Adapter | AbstractCalendarAdapter subclasses |
Jackson (De)Serializer | AbstractJacksonCalendar(De)Serializer and subclasses |
Modifier | Constructor and Description |
---|---|
protected |
AbstractJacksonCalendarDeserializer(Class<?> vc)
Constructor needed by the super class.
|
Modifier and Type | Method and Description |
---|---|
T |
deserialize(com.fasterxml.jackson.core.JsonParser jsonParser,
com.fasterxml.jackson.databind.DeserializationContext deserializationContext) |
protected abstract AbstractTypeConverter<T,Calendar> |
getConverterInstance()
Getter for an instance of the common conversion logic from and to
Calendar . |
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, deserializeWithType, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
deserialize, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializer
protected AbstractJacksonCalendarDeserializer(Class<?> vc)
vc
- The class to be read by this deserializer.protected abstract AbstractTypeConverter<T,Calendar> getConverterInstance()
Calendar
.@Nullable public T deserialize(@Nonnull com.fasterxml.jackson.core.JsonParser jsonParser, @Nonnull com.fasterxml.jackson.databind.DeserializationContext deserializationContext) throws IOException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<T>
IOException
Copyright © 2018 SAP SE. All rights reserved.