public interface NullValueProvider
JsonDeserializer
(as a mix-in
interface), but also by converters used to support more configurable
null replacement.Modifier and Type | Method and Description |
---|---|
AccessPattern |
getNullAccessPattern()
Accessor that may be used to determine if and when provider must be called to
access null replacement value.
|
Object |
getNullValue(DeserializationContext ctxt)
Method called to possibly convert incoming `null` token (read via
underlying streaming input source) into other value of type accessor
supports.
|
Object getNullValue(DeserializationContext ctxt) throws JsonMappingException
NOTE: if getNullAccessPattern()
returns `ALWAYS_NULL` or
`CONSTANT`, this method WILL NOT use provided `ctxt` and it may thus
be passed as `null`.
JsonMappingException
AccessPattern getNullAccessPattern()
Copyright © 2008–2021 FasterXML. All rights reserved.