Class ManagedReferenceProperty
- 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.databind.deser.impl.ManagedReferenceProperty
-
- All Implemented Interfaces:
BeanProperty
,Named
,java.io.Serializable
public final class ManagedReferenceProperty extends SettableBeanProperty.Delegating
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty
SettableBeanProperty.Delegating
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty
BeanProperty.Bogus, BeanProperty.Std
-
-
Field Summary
-
Fields inherited from interface com.fasterxml.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE
-
-
Constructor Summary
Constructors Constructor Description ManagedReferenceProperty(SettableBeanProperty forward, java.lang.String refName, SettableBeanProperty backward, boolean isContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserializeAndSet(JsonParser p, DeserializationContext ctxt, java.lang.Object instance)
Method called to deserialize appropriate value, given parser (and context), and set it using appropriate mechanism.java.lang.Object
deserializeSetAndReturn(JsonParser p, DeserializationContext ctxt, java.lang.Object instance)
Alternative toSettableBeanProperty.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(java.lang.Object instance, java.lang.Object value)
Method called to assign given value to this property, on specified Object.java.lang.Object
setAndReturn(java.lang.Object instance, java.lang.Object value)
Method called to assign given value to this property, on specified Object, and return whatever delegating accessor returned (if anything)-
Methods inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
assignIndex, getAnnotation, getCreatorIndex, getDelegate, getInjectableValueId, getManagedReferenceName, getMember, getObjectIdInfo, getPropertyIndex, getValueDeserializer, getValueTypeDeserializer, hasValueDeserializer, hasValueTypeDeserializer, hasViews, isInjectionOnly, visibleInView, withName, withNullProvider, withValueDeserializer
-
Methods inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty
depositSchemaProperty, deserialize, deserializeWith, getContextAnnotation, getFullName, getName, getNullValueProvider, getType, getWrapperName, isIgnorable, markAsIgnorable, setManagedReferenceName, setObjectIdInfo, setViews, toString, withSimpleName
-
Methods inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
-
-
-
-
Constructor Detail
-
ManagedReferenceProperty
public ManagedReferenceProperty(SettableBeanProperty forward, java.lang.String refName, SettableBeanProperty backward, boolean isContainer)
-
-
Method Detail
-
fixAccess
public void fixAccess(DeserializationConfig config)
Description copied from class:SettableBeanProperty
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.- Overrides:
fixAccess
in classSettableBeanProperty.Delegating
-
deserializeAndSet
public void deserializeAndSet(JsonParser p, DeserializationContext ctxt, java.lang.Object instance) throws java.io.IOException
Description copied from class:SettableBeanProperty
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).- Overrides:
deserializeAndSet
in classSettableBeanProperty.Delegating
- Throws:
java.io.IOException
-
deserializeSetAndReturn
public java.lang.Object deserializeSetAndReturn(JsonParser p, DeserializationContext ctxt, java.lang.Object instance) throws java.io.IOException
Description copied from class:SettableBeanProperty
Alternative toSettableBeanProperty.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.- Overrides:
deserializeSetAndReturn
in classSettableBeanProperty.Delegating
- Throws:
java.io.IOException
-
set
public final void set(java.lang.Object instance, java.lang.Object value) throws java.io.IOException
Description copied from class:SettableBeanProperty
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.
- Overrides:
set
in classSettableBeanProperty.Delegating
- Throws:
java.io.IOException
-
setAndReturn
public java.lang.Object setAndReturn(java.lang.Object instance, java.lang.Object value) throws java.io.IOException
Description copied from class:SettableBeanProperty
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.
- Overrides:
setAndReturn
in classSettableBeanProperty.Delegating
- Throws:
java.io.IOException
-
-