java.lang.Object
tools.jackson.databind.introspect.ConcreteBeanPropertyBase
tools.jackson.databind.ser.PropertyWriter
tools.jackson.databind.ser.BeanPropertyWriter
tools.jackson.databind.ser.AnyGetterWriter
- All Implemented Interfaces:
Serializable,Named,BeanProperty,FullyNamed
Class similar to
BeanPropertyWriter, but that will be used
for serializing JsonAnyGetter annotated
(Map) properties- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.jackson.databind.BeanProperty
BeanProperty.Bogus, BeanProperty.StdNested classes/interfaces inherited from interface tools.jackson.core.util.Named
Named.StringAsNamed -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnnotatedMemberMethod (or Field) that represents the "any getter"protected MapSerializerprotected final BeanPropertyprotected ValueSerializer<Object>Fields inherited from class tools.jackson.databind.ser.BeanPropertyWriter
_cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTYFields inherited from class tools.jackson.databind.introspect.ConcreteBeanPropertyBase
_aliases, _metadataFields inherited from interface tools.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE -
Constructor Summary
ConstructorsConstructorDescriptionAnyGetterWriter(BeanPropertyWriter parent, BeanProperty property, AnnotatedMember accessor, ValueSerializer<?> serializer) -
Method Summary
Modifier and TypeMethodDescriptionvoidTraversal method used for things like JSON Schema generation, or POJO introspection.voidfixAccess(SerializationConfig config) Method called to ensure that the mutator has proper access rights to be called, as per configuration.voidgetAndFilter(Object bean, JsonGenerator gen, SerializationContext provider, PropertyFilter filter) voidgetAndSerialize(Object bean, JsonGenerator gen, SerializationContext provider) voidresolve(SerializationContext provider) voidserializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov) 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.Methods inherited from class tools.jackson.databind.ser.BeanPropertyWriter
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, _new, assignNullSerializer, assignSerializer, assignTypeSerializer, get, getAnnotation, getContextAnnotation, getFullName, getInternalSetting, getMember, getName, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, rename, serializeAsElement, serializeAsOmittedElement, serializeAsOmittedProperty, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls, wouldConflictWithNameMethods inherited from class tools.jackson.databind.ser.PropertyWriter
findAnnotationMethods inherited from class tools.jackson.databind.introspect.ConcreteBeanPropertyBase
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtualMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.jackson.databind.util.FullyNamed
hasName
-
Field Details
-
_property
-
_accessor
Method (or Field) that represents the "any getter" -
_serializer
-
_mapSerializer
-
-
Constructor Details
-
AnyGetterWriter
public AnyGetterWriter(BeanPropertyWriter parent, BeanProperty property, AnnotatedMember accessor, ValueSerializer<?> serializer) - Since:
- 2.19
-
-
Method Details
-
fixAccess
Description copied from class:BeanPropertyWriterMethod 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:
fixAccessin classBeanPropertyWriter
-
resolve
-
getAndSerialize
public void getAndSerialize(Object bean, JsonGenerator gen, SerializationContext provider) throws Exception - Throws:
Exception
-
serializeAsProperty
public void serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov) throws Exception Description copied from class:BeanPropertyWriterMethod 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.- Overrides:
serializeAsPropertyin classBeanPropertyWriter- Throws:
Exception
-
getAndFilter
public void getAndFilter(Object bean, JsonGenerator gen, SerializationContext provider, PropertyFilter filter) throws Exception - Throws:
Exception
-
depositSchemaProperty
Description copied from class:PropertyWriterTraversal method used for things like JSON Schema generation, or POJO introspection.- Specified by:
depositSchemaPropertyin interfaceBeanProperty- Overrides:
depositSchemaPropertyin classBeanPropertyWriter- Parameters:
v- Visitor to used as the callback handler
-