Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.deser.impl

public Class NullsFailProvider

extends Object
implements NullValueProvider, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, com.fasterxml.jackson.databind.deser.NullValueProvider
Imports
com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.NullValueProvider, com.fasterxml.jackson.databind.exc.InvalidNullException, com.fasterxml.jackson.databind.util.AccessPattern

Simple NullValueProvider that will always throw a InvalidNullException when a null is encountered.

Field Summary

Modifier and TypeField and Description
protected final PropertyName
protected final JavaType
private static final long

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static NullsFailProvider
public static NullsFailProvider
public static NullsFailProvider
public AccessPattern
getNullAccessPattern()

Implements com.fasterxml.jackson.databind.deser.NullValueProvider.getNullAccessPattern.

Accessor that may be used to determine if and when provider must be called to access null replacement value.

public Object
getNullValue(DeserializationContext ctxt)

Implements com.fasterxml.jackson.databind.deser.NullValueProvider.getNullValue.

Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_nameback to summary
protected final PropertyName _name
_typeback to summary
protected final JavaType _type
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

NullsFailProviderback to summary
protected NullsFailProvider(PropertyName name, JavaType type)

Method Detail

constructForPropertyback to summary
public static NullsFailProvider constructForProperty(BeanProperty prop)
constructForPropertyback to summary
public static NullsFailProvider constructForProperty(BeanProperty prop, JavaType type)
constructForRootValueback to summary
public static NullsFailProvider constructForRootValue(JavaType t)
getNullAccessPatternback to summary
public AccessPattern getNullAccessPattern()

Implements com.fasterxml.jackson.databind.deser.NullValueProvider.getNullAccessPattern.

Doc from com.fasterxml.jackson.databind.deser.NullValueProvider.getNullAccessPattern.

Accessor that may be used to determine if and when provider must be called to access null replacement value.

Annotations
@Override
getNullValueback to summary
public Object getNullValue(DeserializationContext ctxt) throws JsonMappingException

Implements com.fasterxml.jackson.databind.deser.NullValueProvider.getNullValue.

Doc from com.fasterxml.jackson.databind.deser.NullValueProvider.getNullValue.

Method 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 getNullAccessPattern() returns `ALWAYS_NULL` or `CONSTANT`, this method WILL NOT use provided `ctxt` and it may thus be passed as `null`.

Annotations
@Override