SettableBeanProperty
implementations.
| Modifier and Type | Field and Description |
|---|---|
| protected final int | |
| protected BeanPropertyMutator | |
| 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(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(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 com. 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 com. Alternative to |
| public int | |
| public abstract void | set(Object bean, Object value)
Overrides com. Method called to assign given value to this property, on specified Object. |
| public Object | setAndReturn(Object instance, Object value)
Overrides com. 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 com. Method sub-classes must implement, to construct a new instance with given delegate. |
| public abstract SettableBeanProperty | |
| public final SettableBeanProperty | withValueDeserializer(JsonDeserializer<?>
Deserializer to assign to the new property instance deser)Overrides com. Fluent factory method for constructing and returning a new instance with specified value deserializer. |
| _optimizedIndex | back to summary |
|---|---|
| protected final int _optimizedIndex | |
| _propertyMutator | back to summary |
|---|---|
| protected BeanPropertyMutator _propertyMutator | |
| _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 Hides com. | |
| OptimizedSettableBeanProperty | back to summary |
|---|---|
| protected OptimizedSettableBeanProperty(SettableBeanProperty src, BeanPropertyMutator mutator, int index) | |
| _isDefaultDeserializer | back to summary |
|---|---|
| protected boolean _isDefaultDeserializer(JsonDeserializer<?> 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(Object bean, Object value, Throwable e) throws IOException 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 IOException Overrides com. Doc from com. 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 IOException Overrides com. Doc from com. Alternative to
| |
| getOptimizedIndex | back to summary |
|---|---|
| public int getOptimizedIndex() | |
| set | back to summary |
|---|---|
| public abstract void set(Object bean, Object value) throws IOException Overrides com. Doc from com. 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(Object instance, Object value) throws IOException Overrides com. Doc from com. 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 com. Doc from com. Method sub-classes must implement, to construct a new instance with given delegate.
| |
| withMutator | back to summary |
|---|---|
| public abstract SettableBeanProperty withMutator(BeanPropertyMutator mut) | |
| withValueDeserializer | back to summary |
|---|---|
| public final SettableBeanProperty withValueDeserializer(JsonDeserializer<?> deser) Overrides com. Doc from com. 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.
| |