VirtualBeanPropertyWriter implementation used for
tools.jackson.databind.annotation.JsonAppend ,
to serialize properties backed-by dynamically assignable attribute
values.
| Access | Constructor and Description |
|---|---|
| protected | AttributePropertyWriter(String attrName, BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType)
|
| protected | AttributePropertyWriter(String attrName, BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, JsonInclude.
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static AttributePropertyWriter | construct(String attrName, BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType)
|
| protected Object | value(Object bean, JsonGenerator jgen, SerializationContext prov)
Implements abstract tools. Method called to figure out the value to serialize. |
| public VirtualBeanPropertyWriter | withConfig(MapperConfig<?> config, AnnotatedClass declaringClass, BeanPropertyDefinition propDef, JavaType type)
Implements abstract tools. Since this method should typically not be called on this sub-type,
default implementation simply throws an |
| _attrName | back to summary |
|---|---|
| protected final String _attrName | |
| AttributePropertyWriter | back to summary |
|---|---|
| protected AttributePropertyWriter(String attrName, BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType) | |
| AttributePropertyWriter | back to summary |
|---|---|
| protected AttributePropertyWriter(String attrName, BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, JsonInclude. | |
| AttributePropertyWriter | back to summary |
|---|---|
| protected AttributePropertyWriter(AttributePropertyWriter base) | |
| construct | back to summary |
|---|---|
| public static AttributePropertyWriter construct(String attrName, BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType) | |
| value | back to summary |
|---|---|
| protected Object value(Object bean, JsonGenerator jgen, SerializationContext prov) throws Exception Implements abstract tools. Doc from tools. Method called to figure out the value to serialize. For simple sub-types
(such as
| |
| withConfig | back to summary |
|---|---|
| public VirtualBeanPropertyWriter withConfig(MapperConfig<?> config, AnnotatedClass declaringClass, BeanPropertyDefinition propDef, JavaType type) Implements abstract tools. Since this method should typically not be called on this sub-type,
default implementation simply throws an
| |