public abstract class PrimitiveArrayDeserializers<T> extends StdDeserializer<T> implements ContextualDeserializer
JsonDeserializer.None| Modifier and Type | Field and Description |
|---|---|
protected 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.
|
_valueClass, F_MASK_INT_COERCIONS| Modifier | Constructor and Description |
|---|---|
protected |
PrimitiveArrayDeserializers(Class<T> cls) |
protected |
PrimitiveArrayDeserializers(PrimitiveArrayDeserializers<?> base,
Boolean unwrapSingle) |
| Modifier and Type | Method and Description |
|---|---|
JsonDeserializer<?> |
createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to see if a different (or differently configured) deserializer
is needed to deserialize values of specified property.
|
Object |
deserializeWithType(JsonParser p,
DeserializationContext ctxt,
TypeDeserializer typeDeserializer)
Base implementation that does not assume specific type
inclusion mechanism.
|
static JsonDeserializer<?> |
forType(Class<?> rawType) |
protected T |
handleNonArray(JsonParser p,
DeserializationContext ctxt) |
protected abstract T |
handleSingleElementUnwrapped(JsonParser p,
DeserializationContext ctxt) |
protected abstract PrimitiveArrayDeserializers<?> |
withResolved(Boolean unwrapSingle) |
_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, parseDoubledeserialize, deserialize, findBackReference, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializerprotected final Boolean _unwrapSingle
protected PrimitiveArrayDeserializers(PrimitiveArrayDeserializers<?> base, Boolean unwrapSingle)
public static JsonDeserializer<?> forType(Class<?> rawType)
protected abstract PrimitiveArrayDeserializers<?> withResolved(Boolean unwrapSingle)
public JsonDeserializer<?> createContextual(DeserializationContext ctxt, BeanProperty property) throws JsonMappingException
ContextualDeserializercreateContextual in interface ContextualDeserializerctxt - Deserialization context to access configuration, additional
deserializers that may be needed by this deserializerproperty - Method, field or constructor parameter that represents the property
(and is used to assign deserialized value).
Should be available; but there may be cases where caller can not provide it and
null is passed instead (in which case impls usually pass 'this' deserializer as is)JsonMappingExceptionpublic Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException
StdDeserializerdeserializeWithType in class StdDeserializer<T>typeDeserializer - Deserializer to use for handling type informationIOExceptionprotected T handleNonArray(JsonParser p, DeserializationContext ctxt) throws IOException
IOExceptionprotected abstract T handleSingleElementUnwrapped(JsonParser p, DeserializationContext ctxt) throws IOException
IOExceptionCopyright © 2008–2016 FasterXML. All rights reserved.