BeanProperty
, Named
, Serializable
public final class ManagedReferenceProperty extends SettableBeanProperty.Delegating
BeanProperty.Bogus, BeanProperty.Std
SettableBeanProperty.Delegating
Modifier and Type | Field | Description |
---|---|---|
protected SettableBeanProperty |
_backProperty |
|
protected boolean |
_isContainer |
Flag that indicates whether property to handle is a container type
(array, Collection, Map) or not.
|
protected String |
_referenceName |
EMPTY_FORMAT, EMPTY_INCLUDE
_aliases, _metadata, _propertyFormat
_contextAnnotations, _managedReferenceName, _nullProvider, _objectIdInfo, _propertyIndex, _propName, _type, _valueDeserializer, _valueTypeDeserializer, _viewMatcher, _wrapperName, MISSING_VALUE_DESERIALIZER
delegate
Constructor | Description |
---|---|
ManagedReferenceProperty(SettableBeanProperty forward,
String refName,
SettableBeanProperty backward,
boolean isContainer) |
Modifier and Type | Method | Description |
---|---|---|
void |
deserializeAndSet(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
Object instance) |
Method called to deserialize appropriate value, given parser (and
context), and set it using appropriate mechanism.
|
Object |
deserializeSetAndReturn(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
Object instance) |
Alternative to
SettableBeanProperty.deserializeAndSet(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext, java.lang.Object) that returns
either return value of setter method called (if one is),
or null to indicate that no return value is available. |
void |
fixAccess(DeserializationConfig config) |
Method called to ensure that the mutator has proper access rights to
be called, as per configuration.
|
void |
set(Object instance,
Object value) |
Method called to assign given value to this property, on
specified Object.
|
Object |
setAndReturn(Object instance,
Object value) |
Method called to assign given value to this property, on
specified Object, and return whatever delegating accessor
returned (if anything)
|
protected SettableBeanProperty |
withDelegate(SettableBeanProperty d) |
Method sub-classes must implement, to construct a new instance
with given delegate.
|
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_throwAsIOE, _throwAsIOE, _throwAsIOE, _throwAsIOE, depositSchemaProperty, deserialize, deserializeWith, getContextAnnotation, getFullName, getName, getNullValueProvider, getType, getWrapperName, isIgnorable, markAsIgnorable, setManagedReferenceName, setObjectIdInfo, setViews, toString, withSimpleName
_with, assignIndex, getAnnotation, getCreatorIndex, getDeclaringClass, getDelegate, getInjectableValueId, getManagedReferenceName, getMember, getObjectIdInfo, getPropertyIndex, getValueDeserializer, getValueTypeDeserializer, hasValueDeserializer, hasValueTypeDeserializer, hasViews, visibleInView, withName, withNullProvider, withValueDeserializer
protected final String _referenceName
protected final boolean _isContainer
protected final SettableBeanProperty _backProperty
public ManagedReferenceProperty(SettableBeanProperty forward, String refName, SettableBeanProperty backward, boolean isContainer)
protected SettableBeanProperty withDelegate(SettableBeanProperty d)
SettableBeanProperty.Delegating
withDelegate
in class SettableBeanProperty.Delegating
public void fixAccess(DeserializationConfig config)
SettableBeanProperty
fixAccess
in class SettableBeanProperty.Delegating
public void deserializeAndSet(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, Object instance) throws IOException
SettableBeanProperty
deserializeAndSet
in class SettableBeanProperty.Delegating
IOException
public Object deserializeSetAndReturn(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, Object instance) throws IOException
SettableBeanProperty
SettableBeanProperty.deserializeAndSet(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext, java.lang.Object)
that returns
either return value of setter method called (if one is),
or null to indicate that no return value is available.
Mostly used to support Builder style deserialization.deserializeSetAndReturn
in class SettableBeanProperty.Delegating
IOException
public final void set(Object instance, Object value) throws IOException
SettableBeanProperty
Note: this is an optional operation, not supported by all implementations, creator-backed properties for example do not support this method.
set
in class SettableBeanProperty.Delegating
IOException
public Object setAndReturn(Object instance, Object value) throws IOException
SettableBeanProperty
Note: this is an optional operation, not supported by all implementations, creator-backed properties for example do not support this method.
setAndReturn
in class SettableBeanProperty.Delegating
IOException
Copyright © 2008–2018. All rights reserved.