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.
|
java.lang.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.
|
java.lang.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 © 2010 - 2020 Adobe. All Rights Reserved