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. |
LogicalType |
logicalType()
Method for accessing logical type of values this deserializer produces.
|
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, getValueInstantiator, getValueType, getValueType, handledTypedeserialize, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializerpublic LogicalType logicalType()
JsonDeserializerlogicalType in class JsonDeserializer<T>null if notpublic java.lang.Boolean supportsUpdate(DeserializationConfig config)
supportsUpdate in class JsonDeserializer<T>public AccessPattern getNullAccessPattern()
JsonDeserializerJsonDeserializer.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 the "null value" to use for input null
does not vary across uses so that JsonDeserializer.getNullValue(DeserializationContext)
need not be called more than once per deserializer instance.
This information may be used as optimization.
getNullAccessPattern in interface NullValueProvidergetNullAccessPattern in class JsonDeserializer<T>public AccessPattern getEmptyAccessPattern()
JsonDeserializerJsonDeserializer.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>public java.lang.Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws java.io.IOException
StdDeserializerdeserializeWithType in class StdDeserializer<T>typeDeserializer - Deserializer to use for handling type informationjava.io.IOExceptionpublic 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.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved