public class RangeDeserializer
extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<com.google.common.collect.Range<?>>
implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
Range.
TODO: I think it would make sense to reimplement this deserializer to
use Delegating Deserializer, using a POJO as an intermediate form (properties
could be of type Object)
This would also also simplify the implementation a bit.
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.BoundType |
_defaultBoundType |
protected com.fasterxml.jackson.databind.JsonDeserializer<Object> |
_endpointDeserializer |
protected RangeHelper.RangeProperties |
_fieldNames |
protected com.fasterxml.jackson.databind.JavaType |
_rangeType |
| Modifier | Constructor and Description |
|---|---|
|
RangeDeserializer(com.google.common.collect.BoundType defaultBoundType,
com.fasterxml.jackson.databind.JavaType rangeType) |
|
RangeDeserializer(com.fasterxml.jackson.databind.JavaType rangeType)
Deprecated.
Since 2.7
|
|
RangeDeserializer(com.fasterxml.jackson.databind.JavaType rangeType,
com.fasterxml.jackson.databind.JsonDeserializer<?> endpointDeser) |
|
RangeDeserializer(com.fasterxml.jackson.databind.JavaType rangeType,
com.fasterxml.jackson.databind.JsonDeserializer<?> endpointDeser,
com.google.common.collect.BoundType defaultBoundType)
Deprecated.
|
protected |
RangeDeserializer(com.fasterxml.jackson.databind.JavaType rangeType,
com.fasterxml.jackson.databind.JsonDeserializer<?> endpointDeser,
com.google.common.collect.BoundType defaultBoundType,
RangeHelper.RangeProperties fieldNames) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonDeserializer<?> |
createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.BeanProperty property) |
com.google.common.collect.Range<?> |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext context) |
Object |
deserializeWithType(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) |
com.fasterxml.jackson.databind.JavaType |
getValueType() |
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDoubledeserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerprotected final com.fasterxml.jackson.databind.JavaType _rangeType
protected final com.fasterxml.jackson.databind.JsonDeserializer<Object> _endpointDeserializer
protected final com.google.common.collect.BoundType _defaultBoundType
protected final RangeHelper.RangeProperties _fieldNames
@Deprecated public RangeDeserializer(com.fasterxml.jackson.databind.JavaType rangeType)
public RangeDeserializer(com.google.common.collect.BoundType defaultBoundType,
com.fasterxml.jackson.databind.JavaType rangeType)
public RangeDeserializer(com.fasterxml.jackson.databind.JavaType rangeType,
com.fasterxml.jackson.databind.JsonDeserializer<?> endpointDeser)
@Deprecated public RangeDeserializer(com.fasterxml.jackson.databind.JavaType rangeType, com.fasterxml.jackson.databind.JsonDeserializer<?> endpointDeser, com.google.common.collect.BoundType defaultBoundType)
protected RangeDeserializer(com.fasterxml.jackson.databind.JavaType rangeType,
com.fasterxml.jackson.databind.JsonDeserializer<?> endpointDeser,
com.google.common.collect.BoundType defaultBoundType,
RangeHelper.RangeProperties fieldNames)
public com.fasterxml.jackson.databind.JavaType getValueType()
getValueType in class com.fasterxml.jackson.databind.deser.std.StdDeserializer<com.google.common.collect.Range<?>>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.deser.std.StdDeserializer<com.google.common.collect.Range<?>>IOExceptionpublic com.google.common.collect.Range<?> deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext context)
throws IOException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<com.google.common.collect.Range<?>>IOExceptionCopyright © 2020 FasterXML. All rights reserved.