public class BeanPropertyWriterDelegate
extends com.fasterxml.jackson.databind.ser.BeanPropertyWriter
BeanPropertyWriter which prevents property values present in the AnnotatedMember anyGetter
to be serialized twice.
Any property that's present in the anyGetter is ignored upon serialization. The values present in the anyGetter take precedence over those stored in the Bean's fields.
This BeanPropertyWriter implementation is intended to be used in combination with
the SettableBeanPropertyDelegate to allow the propagation of deserialized properties that don't match the
target field types.
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTY| Modifier and Type | Method and Description |
|---|---|
void |
assignNullSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> nullSer) |
void |
assignSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> ser) |
void |
assignTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
void |
serializeAsField(Object bean,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider prov) |
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, _new, depositSchemaProperty, depositSchemaProperty, fixAccess, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, rename, serializeAsElement, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls, wouldConflictWithNamepublic void serializeAsField(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov) throws Exception
serializeAsField in class com.fasterxml.jackson.databind.ser.BeanPropertyWriterExceptionpublic void assignNullSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> nullSer)
assignNullSerializer in class com.fasterxml.jackson.databind.ser.BeanPropertyWriterpublic void assignSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> ser)
assignSerializer in class com.fasterxml.jackson.databind.ser.BeanPropertyWriterpublic void assignTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
assignTypeSerializer in class com.fasterxml.jackson.databind.ser.BeanPropertyWriterCopyright © 2015–2023 Red Hat. All rights reserved.