public abstract class StdScalarDeserializer<T> extends StdDeserializer<T>
JsonDeserializer.None
Modifier and Type | Method and Description |
---|---|
T |
deserialize(JsonParser p,
DeserializationContext ctxt,
T intoValue)
Overridden to simply call
deserialize() method that does not take value
to update, since scalar values are usually non-mergeable. |
java.lang.Object |
deserializeWithType(JsonParser p,
DeserializationContext ctxt,
TypeDeserializer typeDeserializer)
Base implementation that does not assume specific type
inclusion mechanism.
|
AccessPattern |
getEmptyAccessPattern()
This method may be called in conjunction with calls to
JsonDeserializer.getEmptyValue(DeserializationContext) , to check whether it needs
to be called just once (static values), or each time empty value is
needed. |
AccessPattern |
getNullAccessPattern()
This method may be called in conjunction with calls to
JsonDeserializer.getNullValue(DeserializationContext) , to check whether it needs
to be called just once (static values), or each time empty value is
needed. |
java.lang.Boolean |
supportsUpdate(DeserializationConfig config)
By default assumption is that scalar types cannot be updated: many are immutable
values (such as primitives and wrappers)
|
getValueClass, getValueType, getValueType, handledType
deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer
public java.lang.Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws java.io.IOException
StdDeserializer
deserializeWithType
in class StdDeserializer<T>
typeDeserializer
- Deserializer to use for handling type informationjava.io.IOException
public T deserialize(JsonParser p, DeserializationContext ctxt, T intoValue) throws java.io.IOException
deserialize()
method that does not take value
to update, since scalar values are usually non-mergeable.deserialize
in class JsonDeserializer<T>
java.io.IOException
public java.lang.Boolean supportsUpdate(DeserializationConfig config)
supportsUpdate
in class JsonDeserializer<T>
public AccessPattern getNullAccessPattern()
JsonDeserializer
JsonDeserializer.getNullValue(DeserializationContext)
, to check whether it needs
to be called just once (static values), or each time empty value is
needed.
Default implementation indicates that "null value" to use for input null is simply Java `null` for all deserializers, unless overridden by sub-classes. This information may be used as optimization.
getNullAccessPattern
in interface NullValueProvider
getNullAccessPattern
in class JsonDeserializer<T>
public AccessPattern getEmptyAccessPattern()
JsonDeserializer
JsonDeserializer.getEmptyValue(DeserializationContext)
, to check whether it needs
to be called just once (static values), or each time empty value is
needed.getEmptyAccessPattern
in class JsonDeserializer<T>
Copyright © 2010 - 2020 Adobe. All Rights Reserved