SettableBeanProperty
implementations.
| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | |
| 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. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | _isDefaultDeserializer(ValueDeserializer<?> 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(DeserializationContext ctxt, Object bean, Object value, Throwable e)
Helper method called when an exception is throw from mutator, to figure out what to do. |
| public abstract void | deserializeAndSet(JsonParser p, DeserializationContext ctxt, Object arg2)
Overrides tools. Method called to deserialize appropriate value, given parser (and context), and set it using appropriate mechanism. |
| public abstract Object | deserializeSetAndReturn(JsonParser p, DeserializationContext ctxt, Object instance)
Overrides tools. Alternative to |
| public abstract void | set(DeserializationContext ctxt, Object bean, Object value)
Overrides tools. Method called to assign given value to this property, on specified Object. |
| public Object | setAndReturn(DeserializationContext ctxt, Object instance, Object value)
Overrides tools. Method called to assign given value to this property, on specified Object, and return whatever delegating accessor returned (if anything) Note this is an optional operation, not supported by all implementations, creator-backed properties for example do not support this method. |
| protected abstract SettableBeanProperty | withDelegate(SettableBeanProperty d)
Implements abstract tools. Method sub-classes must implement, to construct a new instance with given delegate. |
| public final SettableBeanProperty | withValueDeserializer(ValueDeserializer<?> deser)
Overrides tools. Fluent factory method for constructing and returning a new instance with specified value deserializer. |
| _skipNulls | back to summary |
|---|---|
protected final boolean _skipNulls
| |
| broken | back to summary |
|---|---|
| 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. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| OptimizedSettableBeanProperty | back to summary |
|---|---|
| protected OptimizedSettableBeanProperty(SettableBeanProperty src) | |
| _isDefaultDeserializer | back to summary |
|---|---|
| protected boolean _isDefaultDeserializer(ValueDeserializer<?> deser) Helper method used to check whether given deserializer is the default deserializer implementation: this is necessary to avoid overriding custom deserializers. | |
| _reportProblem | back to summary |
|---|---|
| protected void _reportProblem(DeserializationContext ctxt, Object bean, Object value, Throwable e) throws JacksonException Helper method called when an exception is throw from mutator, to figure out what to do. | |
| deserializeAndSet | back to summary |
|---|---|
| public abstract void deserializeAndSet(JsonParser p, DeserializationContext ctxt, Object arg2) throws JacksonException Overrides tools. Doc from tools. Method called to deserialize appropriate value, given parser (and context), and set it using appropriate mechanism. Pre-condition is that passed parser must point to the first token that should be consumed to produce the value (the only value for scalars, multiple for Objects and Arrays).
| |
| deserializeSetAndReturn | back to summary |
|---|---|
| public abstract Object deserializeSetAndReturn(JsonParser p, DeserializationContext ctxt, Object instance) throws JacksonException Overrides tools. Doc from tools. Alternative to
| |
| set | back to summary |
|---|---|
| public abstract void set(DeserializationContext ctxt, Object bean, Object value) Overrides tools. Doc from tools. Method called to assign given value to this property, on specified Object. Note this is an optional operation, not supported by all implementations, creator-backed properties for example do not support this method.
| |
| setAndReturn | back to summary |
|---|---|
| public Object setAndReturn(DeserializationContext ctxt, Object instance, Object value) Overrides tools. Doc from tools. Method called to assign given value to this property, on specified Object, and return whatever delegating accessor returned (if anything) Note this is an optional operation, not supported by all implementations, creator-backed properties for example do not support this method.
| |
| withDelegate | back to summary |
|---|---|
| protected abstract SettableBeanProperty withDelegate(SettableBeanProperty d) Implements abstract tools. Doc from tools. Method sub-classes must implement, to construct a new instance with given delegate.
| |
| withValueDeserializer | back to summary |
|---|---|
| public final SettableBeanProperty withValueDeserializer(ValueDeserializer<?> deser) Overrides tools. Doc from tools. Fluent factory method for constructing and returning a new instance with specified value deserializer. Note that this method should NOT change configuration of this instance.
| |