Class NullsFailProvider
java.lang.Object
com.fasterxml.jackson.databind.deser.impl.NullsFailProvider
- All Implemented Interfaces:
NullValueProvider,Serializable
Simple
NullValueProvider that will always throw a
InvalidNullException when a null is encountered.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic NullsFailProviderstatic NullsFailProviderconstructForProperty(BeanProperty prop, JavaType type) static NullsFailProviderAccessor that may be used to determine if and when provider must be called to access null replacement value.Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.fasterxml.jackson.databind.deser.NullValueProvider
getAbsentValue
-
Method Details
-
constructForProperty
-
constructForProperty
-
constructForRootValue
-
getNullAccessPattern
Description copied from interface:NullValueProviderAccessor that may be used to determine if and when provider must be called to access null replacement value.- Specified by:
getNullAccessPatternin interfaceNullValueProvider
-
getNullValue
Description copied from interface:NullValueProviderMethod called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports. May return `null`, or value compatible with type binding.NOTE: if
NullValueProvider.getNullAccessPattern()returns `ALWAYS_NULL` or `CONSTANT`, this method WILL NOT use provided `ctxt` and it may thus be passed as `null`.- Specified by:
getNullValuein interfaceNullValueProvider- Throws:
JsonMappingException
-