Class NullsFailProvider
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.impl.NullsFailProvider
-
- All Implemented Interfaces:
NullValueProvider,Serializable
public class NullsFailProvider extends Object implements NullValueProvider, Serializable
SimpleNullValueProviderthat will always throw aInvalidNullExceptionwhen a null is encountered.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertyName_nameprotected JavaType_type
-
Constructor Summary
Constructors Modifier Constructor Description protectedNullsFailProvider(PropertyName name, JavaType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NullsFailProviderconstructForProperty(BeanProperty prop)static NullsFailProviderconstructForProperty(BeanProperty prop, JavaType type)static NullsFailProviderconstructForRootValue(JavaType t)AccessPatterngetNullAccessPattern()Accessor that may be used to determine if and when provider must be called to access null replacement value.ObjectgetNullValue(DeserializationContext ctxt)Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports.
-
-
-
Field Detail
-
_name
protected final PropertyName _name
-
_type
protected final JavaType _type
-
-
Constructor Detail
-
NullsFailProvider
protected NullsFailProvider(PropertyName name, JavaType type)
-
-
Method Detail
-
constructForProperty
public static NullsFailProvider constructForProperty(BeanProperty prop)
-
constructForProperty
public static NullsFailProvider constructForProperty(BeanProperty prop, JavaType type)
-
constructForRootValue
public static NullsFailProvider constructForRootValue(JavaType t)
-
getNullAccessPattern
public AccessPattern 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
public Object getNullValue(DeserializationContext ctxt) throws JsonMappingException
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
-
-