public class NullsAsEmptyProvider extends java.lang.Object implements NullValueProvider, java.io.Serializable
NullValueProvider that will always throw a
InvalidNullException when a null is encountered.| Constructor and Description |
|---|
NullsAsEmptyProvider(JsonDeserializer<?> deser) |
| 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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAbsentValuepublic NullsAsEmptyProvider(JsonDeserializer<?> deser)
public AccessPattern getNullAccessPattern()
NullValueProvidergetNullAccessPattern in interface NullValueProviderpublic java.lang.Object getNullValue(DeserializationContext ctxt) throws JsonMappingException
NullValueProvider
NOTE: if NullValueProvider.getNullAccessPattern() returns `ALWAYS_NULL` or
`CONSTANT`, this method WILL NOT use provided `ctxt` and it may thus
be passed as `null`.
getNullValue in interface NullValueProviderJsonMappingExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved