public class PairDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<org.apache.commons.lang3.tuple.Pair<Object,Object>> implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
MapEntryDeserializer.| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.JsonDeserializer<Object> |
_keyDeserializer
Key deserializer to use; either passed via constructor
(when indicated by annotations), or resolved when
createContextual(com.fasterxml.jackson.databind.DeserializationContext, com.fasterxml.jackson.databind.BeanProperty) is called; |
protected com.fasterxml.jackson.databind.jsontype.TypeDeserializer |
_keyTypeDeserializer
If key instances have polymorphic type information, this
is the type deserializer that can handle it
|
protected com.fasterxml.jackson.databind.JavaType |
_type |
protected com.fasterxml.jackson.databind.JsonDeserializer<Object> |
_valueDeserializer
Value deserializer.
|
protected com.fasterxml.jackson.databind.jsontype.TypeDeserializer |
_valueTypeDeserializer
If value instances have polymorphic type information, this
is the type deserializer that can handle it
|
| Modifier | Constructor and Description |
|---|---|
|
PairDeserializer(com.fasterxml.jackson.databind.JavaType type,
com.fasterxml.jackson.databind.JsonDeserializer<Object> keyDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer keyTypeDeserializer,
com.fasterxml.jackson.databind.JsonDeserializer<Object> valueDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer valueTypeDeser) |
protected |
PairDeserializer(PairDeserializer src)
Copy-constructor that can be used by sub-classes to allow
copy-on-write styling copying of settings of an existing instance.
|
protected |
PairDeserializer(PairDeserializer src,
com.fasterxml.jackson.databind.JsonDeserializer<Object> keyDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer keyTypeDeserializer,
com.fasterxml.jackson.databind.JsonDeserializer<Object> valueDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer valueTypeDeser) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonDeserializer<?> |
createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.BeanProperty property)
Method called to finalize setup of this deserializer,
when it is known for which property deserializer is needed for.
|
org.apache.commons.lang3.tuple.Pair<Object,Object> |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
org.apache.commons.lang3.tuple.Pair<Object,Object> |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt,
org.apache.commons.lang3.tuple.Pair<Object,Object> result) |
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() |
protected PairDeserializer |
withResolved(com.fasterxml.jackson.databind.jsontype.TypeDeserializer keyTypeDeserializer,
com.fasterxml.jackson.databind.JsonDeserializer<?> keyDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer valueTypeDeser,
com.fasterxml.jackson.databind.JsonDeserializer<?> valueDeser)
Fluent factory method used to create a copy with slightly
different settings.
|
protected void |
wrapAndThrow(Throwable t,
Object ref,
String key)
Helper method called by various Map(-like) deserializers.
|
_coerceIntegral, _deserializeFromEmpty, _failDoubleToIntCoercion, _hasTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _parseBoolean, _parseBooleanFromInt, _parseBooleanFromOther, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, getValueClass, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDoubleprotected final com.fasterxml.jackson.databind.JavaType _type
protected final com.fasterxml.jackson.databind.JsonDeserializer<Object> _keyDeserializer
createContextual(com.fasterxml.jackson.databind.DeserializationContext, com.fasterxml.jackson.databind.BeanProperty) is called;protected final com.fasterxml.jackson.databind.jsontype.TypeDeserializer _keyTypeDeserializer
protected final com.fasterxml.jackson.databind.JsonDeserializer<Object> _valueDeserializer
protected final com.fasterxml.jackson.databind.jsontype.TypeDeserializer _valueTypeDeserializer
public PairDeserializer(com.fasterxml.jackson.databind.JavaType type,
com.fasterxml.jackson.databind.JsonDeserializer<Object> keyDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer keyTypeDeserializer,
com.fasterxml.jackson.databind.JsonDeserializer<Object> valueDeser,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer valueTypeDeser)
protected PairDeserializer(PairDeserializer src)
protected PairDeserializer(PairDeserializer src, com.fasterxml.jackson.databind.JsonDeserializer<Object> keyDeser, com.fasterxml.jackson.databind.jsontype.TypeDeserializer keyTypeDeserializer, com.fasterxml.jackson.databind.JsonDeserializer<Object> valueDeser, com.fasterxml.jackson.databind.jsontype.TypeDeserializer valueTypeDeser)
protected PairDeserializer withResolved(com.fasterxml.jackson.databind.jsontype.TypeDeserializer keyTypeDeserializer, com.fasterxml.jackson.databind.JsonDeserializer<?> keyDeser, com.fasterxml.jackson.databind.jsontype.TypeDeserializer valueTypeDeser, com.fasterxml.jackson.databind.JsonDeserializer<?> valueDeser)
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 org.apache.commons.lang3.tuple.Pair<Object,Object> deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<org.apache.commons.lang3.tuple.Pair<Object,Object>>IOExceptionpublic org.apache.commons.lang3.tuple.Pair<Object,Object> deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, org.apache.commons.lang3.tuple.Pair<Object,Object> result) throws IOException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<org.apache.commons.lang3.tuple.Pair<Object,Object>>IOExceptionpublic Object deserializeWithType(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
deserializeWithType in class com.fasterxml.jackson.databind.deser.std.StdDeserializer<org.apache.commons.lang3.tuple.Pair<Object,Object>>IOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionpublic com.fasterxml.jackson.databind.JavaType getValueType()
protected void wrapAndThrow(Throwable t, Object ref, String key) throws IOException
IOExceptionCopyright © 2018. All rights reserved.