Class AnyGetterWriter
java.lang.Object
com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
com.fasterxml.jackson.databind.ser.PropertyWriter
com.fasterxml.jackson.databind.ser.BeanPropertyWriter
com.fasterxml.jackson.databind.ser.AnyGetterWriter
- All Implemented Interfaces:
BeanProperty,Named,Serializable
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 com.fasterxml.jackson.databind.BeanProperty
BeanProperty.Bogus, BeanProperty.Std -
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
MARKER_FOR_EMPTYFields inherited from interface com.fasterxml.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE -
Constructor Summary
ConstructorsConstructorDescriptionAnyGetterWriter(BeanProperty property, AnnotatedMember accessor, JsonSerializer<?> serializer) Deprecated.AnyGetterWriter(BeanPropertyWriter parent, BeanProperty property, AnnotatedMember accessor, JsonSerializer<?> serializer) -
Method Summary
Modifier and TypeMethodDescriptionvoidfixAccess(SerializationConfig config) Method called to ensure that the mutator has proper access rights to be called, as per configuration.voidgetAndFilter(Object bean, JsonGenerator gen, SerializerProvider provider, PropertyFilter filter) voidgetAndSerialize(Object bean, JsonGenerator gen, SerializerProvider provider) voidresolve(SerializerProvider provider) voidserializeAsField(Object bean, JsonGenerator gen, SerializerProvider 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 com.fasterxml.jackson.databind.ser.BeanPropertyWriter
assignNullSerializer, assignSerializer, assignTypeSerializer, depositSchemaProperty, depositSchemaProperty, 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, wouldConflictWithNameMethods inherited from class com.fasterxml.jackson.databind.ser.PropertyWriter
findAnnotationMethods inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
-
Constructor Details
-
AnyGetterWriter
public AnyGetterWriter(BeanPropertyWriter parent, BeanProperty property, AnnotatedMember accessor, JsonSerializer<?> serializer) - Since:
- 2.19
-
AnyGetterWriter
@Deprecated public AnyGetterWriter(BeanProperty property, AnnotatedMember accessor, JsonSerializer<?> serializer) Deprecated.Since 2.19, use one that takesBeanPropertyWriterinstead.
-
-
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- Since:
- 2.8.3
-
getAndSerialize
public void getAndSerialize(Object bean, JsonGenerator gen, SerializerProvider provider) throws Exception - Throws:
Exception
-
serializeAsField
public void serializeAsField(Object bean, JsonGenerator gen, SerializerProvider 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:
serializeAsFieldin classBeanPropertyWriter- Throws:
Exception
-
getAndFilter
public void getAndFilter(Object bean, JsonGenerator gen, SerializerProvider provider, PropertyFilter filter) throws Exception - Throws:
Exception- Since:
- 2.3
-
resolve
- Throws:
JsonMappingException
-
BeanPropertyWriterinstead.