Top Description Fields Constructors Methods
tools.jackson.databind.deser.impl

public final Class ManagedReferenceProperty

extends Delegating
Class Inheritance
Imports
java.util.Collection, .Map, tools.jackson.core.JacksonException, .JsonParser, tools.jackson.databind.*, tools.jackson.databind.deser.SettableBeanProperty

Wrapper property that is used to handle managed (forward) properties Basically just needs to delegate first to actual forward property, and then to back property.

Field Summary

Modifier and TypeField and Description
protected final SettableBeanProperty
protected final boolean
_isContainer

Flag that indicates whether property to handle is a container type (array, Collection, Map) or not.

protected final String
Inherited from tools.jackson.databind.deser.SettableBeanProperty.Delegating:
delegate

Constructor Summary

AccessConstructor and Description
public
ManagedReferenceProperty(SettableBeanProperty forward, String refName, SettableBeanProperty backward, boolean isContainer)

Method Summary

Modifier and TypeMethod and Description
public void
deserializeAndSet(JsonParser p, DeserializationContext ctxt, Object instance)

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeAndSet.

Method called to deserialize appropriate value, given parser (and context), and set it using appropriate mechanism.

public Object
deserializeSetAndReturn(JsonParser p, DeserializationContext ctxt, Object instance)

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeSetAndReturn.

Alternative to deserializeAndSet that returns either return value of setter method called (if one is), or null to indicate that no return value is available.

public void
fixAccess(DeserializationConfig config)

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.fixAccess.

Method called to ensure that the mutator has proper access rights to be called, as per configuration.

public final void
set(DeserializationContext ctxt, Object instance, Object value)

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.set.

Method called to assign given value to this property, on specified Object.

public Object
setAndReturn(DeserializationContext ctxt, Object instance, Object value)

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.setAndReturn.

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 SettableBeanProperty
withDelegate(SettableBeanProperty d)

Implements abstract tools.jackson.databind.deser.SettableBeanProperty.Delegating.withDelegate.

Method sub-classes must implement, to construct a new instance with given delegate.

Inherited from tools.jackson.databind.deser.SettableBeanProperty.Delegating:
_withassignIndexgetAnnotationgetCreatorIndexgetDeclaringClassgetDelegategetInjectableValueIdgetManagedReferenceNamegetMembergetObjectIdInfogetPropertyIndexgetValueDeserializergetValueTypeDeserializerhasValueDeserializerhasValueTypeDeserializerhasViewsisInjectionOnlyvisibleInViewwithNamewithNullProviderwithValueDeserializer

Field Detail

_backPropertyback to summary
protected final SettableBeanProperty _backProperty
_isContainerback to summary
protected final boolean _isContainer

Flag that indicates whether property to handle is a container type (array, Collection, Map) or not.

_referenceNameback to summary
protected final String _referenceName

Constructor Detail

ManagedReferencePropertyback to summary
public ManagedReferenceProperty(SettableBeanProperty forward, String refName, SettableBeanProperty backward, boolean isContainer)

Method Detail

deserializeAndSetback to summary
public void deserializeAndSet(JsonParser p, DeserializationContext ctxt, Object instance) throws JacksonException

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeAndSet.

Doc from tools.jackson.databind.deser.SettableBeanProperty.deserializeAndSet.

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).

Annotations
@Override
deserializeSetAndReturnback to summary
public Object deserializeSetAndReturn(JsonParser p, DeserializationContext ctxt, Object instance) throws JacksonException

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeSetAndReturn.

Doc from tools.jackson.databind.deser.SettableBeanProperty.deserializeSetAndReturn.

Alternative to deserializeAndSet 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.

Annotations
@Override
fixAccessback to summary
public void fixAccess(DeserializationConfig config)

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.fixAccess.

Doc from tools.jackson.databind.deser.SettableBeanProperty.fixAccess.

Method called to ensure that the mutator has proper access rights to be called, as per configuration. Overridden by implementations that have mutators that require access, fields and setters.

Annotations
@Override
setback to summary
public final void set(DeserializationContext ctxt, Object instance, Object value)

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.set.

Doc from tools.jackson.databind.deser.SettableBeanProperty.set.

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.

Annotations
@Override
setAndReturnback to summary
public Object setAndReturn(DeserializationContext ctxt, Object instance, Object value)

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.setAndReturn.

Doc from tools.jackson.databind.deser.SettableBeanProperty.setAndReturn.

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.

Annotations
@Override
withDelegateback to summary
protected SettableBeanProperty withDelegate(SettableBeanProperty d)

Implements abstract tools.jackson.databind.deser.SettableBeanProperty.Delegating.withDelegate.

Doc from tools.jackson.databind.deser.SettableBeanProperty.Delegating.withDelegate.

Method sub-classes must implement, to construct a new instance with given delegate.

Annotations
@Override