Class SettableBeanPropertyDelegating
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
-
- com.fasterxml.jackson.databind.deser.SettableBeanProperty
-
- com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
-
- io.fabric8.kubernetes.model.jackson.SettableBeanPropertyDelegating
-
- All Implemented Interfaces:
BeanProperty,Named,Serializable
public class SettableBeanPropertyDelegating extends SettableBeanProperty.Delegating
This concrete subclass encapsulates aSettableBeanPropertydelegate that is always tried first.A fall-back mechanism is implemented in the deserializeAndSet methods to allow field values that don't match the target type to be preserved in the anySetter method if exists.
- 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 class com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating
delegate
-
Fields inherited from class com.fasterxml.jackson.databind.deser.SettableBeanProperty
_contextAnnotations, _managedReferenceName, _nullProvider, _objectIdInfo, _propertyIndex, _propName, _type, _valueDeserializer, _valueTypeDeserializer, _viewMatcher, _wrapperName, MISSING_VALUE_DESERIALIZER
-
Fields inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
_aliases, _metadata
-
Fields inherited from interface com.fasterxml.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE
-
-
Method Summary
-
Methods inherited from class com.fasterxml.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 com.fasterxml.jackson.databind.deser.SettableBeanProperty
_throwAsIOE, _throwAsIOE, _throwAsIOE, _throwAsIOE, deserialize, deserializeWith, getName
-
Methods inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
-
-
-
-
Method Detail
-
withDelegate
protected SettableBeanProperty withDelegate(SettableBeanProperty d)
- Specified by:
withDelegatein classSettableBeanProperty.Delegating
-
markAsIgnorable
public void markAsIgnorable()
- Overrides:
markAsIgnorablein classSettableBeanProperty
-
isMerging
public boolean isMerging()
- Overrides:
isMergingin classSettableBeanProperty
-
getInjectionDefinition
public com.fasterxml.jackson.annotation.JacksonInject.Value getInjectionDefinition()
- Overrides:
getInjectionDefinitionin classSettableBeanProperty
-
isIgnorable
public boolean isIgnorable()
- Overrides:
isIgnorablein classSettableBeanProperty
-
setViews
public void setViews(Class<?>[] views)
- Overrides:
setViewsin classSettableBeanProperty
-
getContextAnnotation
public <A extends Annotation> A getContextAnnotation(Class<A> acls)
- Specified by:
getContextAnnotationin interfaceBeanProperty- Overrides:
getContextAnnotationin classSettableBeanProperty
-
getWrapperName
public PropertyName getWrapperName()
- Specified by:
getWrapperNamein interfaceBeanProperty- Overrides:
getWrapperNamein classSettableBeanProperty
-
getNullValueProvider
public NullValueProvider getNullValueProvider()
- Overrides:
getNullValueProviderin classSettableBeanProperty
-
depositSchemaProperty
public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider) throws JsonMappingException
- Specified by:
depositSchemaPropertyin interfaceBeanProperty- Overrides:
depositSchemaPropertyin classSettableBeanProperty- Throws:
JsonMappingException
-
getType
public JavaType getType()
- Specified by:
getTypein interfaceBeanProperty- Overrides:
getTypein classSettableBeanProperty
-
getFullName
public PropertyName getFullName()
- Specified by:
getFullNamein interfaceBeanProperty- Overrides:
getFullNamein classSettableBeanProperty
-
setManagedReferenceName
public void setManagedReferenceName(String n)
- Overrides:
setManagedReferenceNamein classSettableBeanProperty
-
withSimpleName
public SettableBeanProperty withSimpleName(String simpleName)
- Overrides:
withSimpleNamein classSettableBeanProperty
-
unwrapped
public SettableBeanProperty unwrapped(NameTransformer unwrapper)
- Overrides:
unwrappedin classSettableBeanProperty
-
setObjectIdInfo
public void setObjectIdInfo(ObjectIdInfo objectIdInfo)
- Overrides:
setObjectIdInfoin classSettableBeanProperty
-
toString
public String toString()
- Overrides:
toStringin classSettableBeanProperty
-
deserializeAndSet
public void deserializeAndSet(JsonParser p, DeserializationContext ctxt, Object instance) throws IOException
Method called to deserialize appropriate value, given parser (and context), and set it using appropriate mechanism.Deserialization is first tried through the delegate. In case a
MismatchedInputExceptionis caught, the field is stored in the bean'sSettableAnyPropertyanySetter field if it exists.This allows deserialization processes propagate values that initially don't match the target bean type for the applicable field.
An example use-case is the use of placeholders (e.g.
${aValue}) in a field.- Overrides:
deserializeAndSetin classSettableBeanProperty.Delegating- Throws:
IOException
-
deserializeSetAndReturn
public Object deserializeSetAndReturn(JsonParser p, DeserializationContext ctxt, Object instance) throws IOException
- Overrides:
deserializeSetAndReturnin classSettableBeanProperty.Delegating- Throws:
IOException
-
-