Class OptimizedSettableBeanProperty<T extends OptimizedSettableBeanProperty<T>>
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
-
- com.fasterxml.jackson.databind.deser.SettableBeanProperty
-
- com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
-
- com.fasterxml.jackson.module.blackbird.deser.OptimizedSettableBeanProperty<T>
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.BeanProperty
,com.fasterxml.jackson.databind.util.Named
,java.io.Serializable
- Direct Known Subclasses:
SettableBooleanProperty
,SettableIntProperty
,SettableLongProperty
,SettableObjectProperty
,SettableStringProperty
abstract class OptimizedSettableBeanProperty<T extends OptimizedSettableBeanProperty<T>> extends com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
Base class for concrete type-specificSettableBeanProperty
implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
_skipNulls
private boolean
broken
Marker that we set if mutator turns out to be broken in a systematic way that we can handle by redirecting it back to standard one.private static long
serialVersionUID
-
Fields inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
delegate
-
Fields inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty
_contextAnnotations, _managedReferenceName, _nullProvider, _objectIdInfo, _propertyIndex, _propName, _type, _valueDeserializer, _valueTypeDeserializer, _viewMatcher, _wrapperName, MISSING_VALUE_DESERIALIZER
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OptimizedSettableBeanProperty(com.fasterxml.jackson.databind.deser.SettableBeanProperty src)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
_isDefaultDeserializer(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)
Helper method used to check whether given deserializer is the default deserializer implementation: this is necessary to avoid overriding custom deserializers.protected void
_reportProblem(java.lang.Object bean, java.lang.Object value, java.lang.Throwable e)
Helper method called when an exception is throw from mutator, to figure out what to do.abstract void
deserializeAndSet(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt, java.lang.Object arg2)
abstract java.lang.Object
deserializeSetAndReturn(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt, java.lang.Object instance)
abstract void
set(java.lang.Object bean, java.lang.Object value)
java.lang.Object
setAndReturn(java.lang.Object instance, java.lang.Object value)
protected abstract com.fasterxml.jackson.databind.deser.SettableBeanProperty
withDelegate(com.fasterxml.jackson.databind.deser.SettableBeanProperty d)
com.fasterxml.jackson.databind.deser.SettableBeanProperty
withValueDeserializer(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)
-
Methods inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
_with, assignIndex, fixAccess, getAnnotation, getCreatorIndex, getDeclaringClass, getDelegate, getInjectableValueId, getManagedReferenceName, getMember, getObjectIdInfo, getPropertyIndex, getValueDeserializer, getValueTypeDeserializer, hasValueDeserializer, hasValueTypeDeserializer, hasViews, isInjectionOnly, visibleInView, withName, withNullProvider
-
Methods inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty
_throwAsIOE, _throwAsIOE, _throwAsIOE, _throwAsIOE, depositSchemaProperty, deserialize, deserializeWith, getContextAnnotation, getFullName, getName, getNullValueProvider, getType, getWrapperName, isIgnorable, markAsIgnorable, setManagedReferenceName, setObjectIdInfo, setViews, toString, withSimpleName
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
_skipNulls
protected final boolean _skipNulls
- Since:
- 2.9
-
broken
private volatile boolean broken
Marker that we set if mutator turns out to be broken in a systematic way that we can handle by redirecting it back to standard one.
-
-
Method Detail
-
withValueDeserializer
public final com.fasterxml.jackson.databind.deser.SettableBeanProperty withValueDeserializer(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)
- Overrides:
withValueDeserializer
in classcom.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
-
withDelegate
protected abstract com.fasterxml.jackson.databind.deser.SettableBeanProperty withDelegate(com.fasterxml.jackson.databind.deser.SettableBeanProperty d)
- Specified by:
withDelegate
in classcom.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
-
deserializeAndSet
public abstract void deserializeAndSet(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt, java.lang.Object arg2) throws java.io.IOException
- Overrides:
deserializeAndSet
in classcom.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
- Throws:
java.io.IOException
-
set
public abstract void set(java.lang.Object bean, java.lang.Object value) throws java.io.IOException
- Overrides:
set
in classcom.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
- Throws:
java.io.IOException
-
deserializeSetAndReturn
public abstract java.lang.Object deserializeSetAndReturn(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt, java.lang.Object instance) throws java.io.IOException
- Overrides:
deserializeSetAndReturn
in classcom.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
- Throws:
java.io.IOException
-
setAndReturn
public java.lang.Object setAndReturn(java.lang.Object instance, java.lang.Object value) throws java.io.IOException
- Overrides:
setAndReturn
in classcom.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
- Throws:
java.io.IOException
-
_reportProblem
protected void _reportProblem(java.lang.Object bean, java.lang.Object value, java.lang.Throwable e) throws java.io.IOException
Helper method called when an exception is throw from mutator, to figure out what to do.- Throws:
java.io.IOException
- Since:
- 2.9
-
_isDefaultDeserializer
protected boolean _isDefaultDeserializer(com.fasterxml.jackson.databind.JsonDeserializer<?> deser)
Helper method used to check whether given deserializer is the default deserializer implementation: this is necessary to avoid overriding custom deserializers.
-
-