java.lang.Object
tools.jackson.databind.introspect.ConcreteBeanPropertyBase
tools.jackson.databind.deser.SettableBeanProperty
tools.jackson.databind.deser.SettableBeanProperty.Delegating
tools.jackson.databind.deser.impl.InnerClassProperty
- All Implemented Interfaces:
Serializable
,tools.jackson.core.util.Named
,BeanProperty
,FullyNamed
This sub-class is used to handle special case of value being a
non-static inner class. If so, we will have to use a special
alternative for default constructor; but otherwise can delegate
to regular implementation.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.deser.SettableBeanProperty
SettableBeanProperty.Delegating
Nested classes/interfaces inherited from interface tools.jackson.databind.BeanProperty
BeanProperty.Bogus, BeanProperty.Std
Nested classes/interfaces inherited from interface tools.jackson.core.util.Named
tools.jackson.core.util.Named.StringAsNamed
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnnotatedConstructor
Serializable version of single-arg constructor we use for value instantiation.protected final Constructor<?>
Constructor used when deserializing this property.Fields inherited from class tools.jackson.databind.deser.SettableBeanProperty.Delegating
delegate
Fields inherited from class tools.jackson.databind.deser.SettableBeanProperty
_contextAnnotations, _managedReferenceName, _nullProvider, _objectIdInfo, _propertyIndex, _propName, _type, _valueDeserializer, _valueTypeDeserializer, _viewMatcher, _wrapperName, MISSING_VALUE_DESERIALIZER
Fields inherited from class tools.jackson.databind.introspect.ConcreteBeanPropertyBase
_aliases, _metadata
Fields inherited from interface tools.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInnerClassProperty
(SettableBeanProperty delegate, Constructor<?> ctor) protected
Constructor used with JDK Serialization; needed to handle transient Constructor, wrap/unwrap in/out-of Annotated variant. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deserializeAndSet
(tools.jackson.core.JsonParser p, DeserializationContext ctxt, Object bean) Method called to deserialize appropriate value, given parser (and context), and set it using appropriate mechanism.deserializeSetAndReturn
(tools.jackson.core.JsonParser p, DeserializationContext ctxt, Object instance) Alternative toSettableBeanProperty.deserializeAndSet(tools.jackson.core.JsonParser, tools.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.protected SettableBeanProperty
Method sub-classes must implement, to construct a new instance with given delegate.Methods inherited from class tools.jackson.databind.deser.SettableBeanProperty.Delegating
_with, assignIndex, fixAccess, getAnnotation, getCreatorIndex, getDeclaringClass, getDelegate, getInjectableValueId, getManagedReferenceName, getMember, getObjectIdInfo, getPropertyIndex, getValueDeserializer, getValueTypeDeserializer, hasValueDeserializer, hasValueTypeDeserializer, hasViews, isInjectionOnly, set, setAndReturn, visibleInView, withName, withNullProvider, withValueDeserializer
Methods inherited from class tools.jackson.databind.deser.SettableBeanProperty
_throwAsJacksonE, _throwAsJacksonE, _throwAsJacksonE, depositSchemaProperty, deserialize, deserializeWith, getContextAnnotation, getFullName, getName, getNullValueProvider, getType, getWrapperName, isIgnorable, markAsIgnorable, setManagedReferenceName, setObjectIdInfo, setViews, toString, unwrapped, withSimpleName
Methods inherited from class tools.jackson.databind.introspect.ConcreteBeanPropertyBase
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface tools.jackson.databind.util.FullyNamed
hasName
-
Field Details
-
_creator
Constructor used when deserializing this property. Transient since there is no need to persist; only needed during construction of objects. -
_annotated
Serializable version of single-arg constructor we use for value instantiation.
-
-
Constructor Details
-
InnerClassProperty
-
InnerClassProperty
Constructor used with JDK Serialization; needed to handle transient Constructor, wrap/unwrap in/out-of Annotated variant.
-
-
Method Details
-
withDelegate
Description copied from class:SettableBeanProperty.Delegating
Method sub-classes must implement, to construct a new instance with given delegate.- Specified by:
withDelegate
in classSettableBeanProperty.Delegating
-
deserializeAndSet
public void deserializeAndSet(tools.jackson.core.JsonParser p, DeserializationContext ctxt, Object bean) throws tools.jackson.core.JacksonException 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:
tools.jackson.core.JacksonException
-
deserializeSetAndReturn
public Object deserializeSetAndReturn(tools.jackson.core.JsonParser p, DeserializationContext ctxt, Object instance) throws tools.jackson.core.JacksonException Description copied from class:SettableBeanProperty
Alternative toSettableBeanProperty.deserializeAndSet(tools.jackson.core.JsonParser, tools.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:
tools.jackson.core.JacksonException
-