Top Description Fields Constructors Methods
tools.jackson.databind.ser

public Class AnyGetterWriter

extends BeanPropertyWriter
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.util.Map, tools.jackson.core.*, tools.jackson.databind.*, tools.jackson.databind.introspect.AnnotatedMember, tools.jackson.databind.ser.jdk.MapSerializer

Class similar to BeanPropertyWriter, but that will be used for serializing com.fasterxml.jackson.annotation.JsonAnyGetter annotated (Map) properties

Field Summary

Modifier and TypeField and Description
protected final AnnotatedMember
_accessor

Hides tools.jackson.databind.ser.BeanPropertyWriter._accessor.

Method (or Field) that represents the "any getter"
protected MapSerializer
protected final BeanProperty
protected ValueSerializer<Object>
private static final long
Inherited from tools.jackson.databind.ser.BeanPropertyWriter:
_cfgSerializationType_contextAnnotations_declaredType_dynamicSerializers_includeInViews_internalSettings_member_name_nonTrivialBaseType_nullSerializer_suppressableValue_suppressNulls_typeSerializer_wrapperNameMARKER_FOR_EMPTY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
fixAccess(SerializationConfig config)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.fixAccess.

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

public void
public void
public void
public void
serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

Method called to access property that this bean stands for, from within given bean, and to serialize it as a JSON Object field using appropriate serializer.

Inherited from tools.jackson.databind.ser.BeanPropertyWriter:
_depositSchemaProperty_findAndAddDynamic_handleSelfReference_newassignNullSerializerassignSerializerassignTypeSerializerdepositSchemaPropertygetgetAnnotationgetContextAnnotationgetFullNamegetInternalSettinggetMembergetNamegetSerializationTypegetSerializedNamegetSerializergetTypegetTypeSerializergetViewsgetWrapperNamehasNullSerializerhasSerializerisUnwrappingremoveInternalSettingrenameserializeAsElementserializeAsOmittedElementserializeAsOmittedPropertysetInternalSettingsetNonTrivialBaseTypetoStringunwrappingWriterwillSuppressNullswouldConflictWithName

Field Detail

_accessorback to summary
protected final AnnotatedMember _accessor

Hides tools.jackson.databind.ser.BeanPropertyWriter._accessor.

Method (or Field) that represents the "any getter"

_mapSerializerback to summary
protected MapSerializer _mapSerializer
_propertyback to summary
protected final BeanProperty _property
_serializerback to summary
protected ValueSerializer<Object> _serializer

Hides tools.jackson.databind.ser.BeanPropertyWriter._serializer.

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

AnyGetterWriterback to summary
public AnyGetterWriter(BeanPropertyWriter parent, BeanProperty property, AnnotatedMember accessor, ValueSerializer<?> serializer)
Annotations
@SuppressWarnings:unchecked
Since
2.19

Method Detail

fixAccessback to summary
public void fixAccess(SerializationConfig config)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.fixAccess.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.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
getAndFilterback to summary
public void getAndFilter(Object bean, JsonGenerator gen, SerializationContext provider, PropertyFilter filter) throws Exception
getAndSerializeback to summary
public void getAndSerialize(Object bean, JsonGenerator gen, SerializationContext provider) throws Exception
resolveback to summary
public void resolve(SerializationContext provider)
Annotations
@SuppressWarnings:unchecked
serializeAsPropertyback to summary
public void serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov) throws Exception

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

Method called to access property that this bean stands for, from within given bean, and to serialize it as a JSON Object field using appropriate serializer.

Annotations
@Override