public class UnwrappingBeanPropertyWriter extends BeanPropertyWriter
BeanPropertyWriter
which will handle unwrapping
of JSON Object (including of properties of Object within surrounding
JSON object, and not as sub-object).BeanProperty.Std
Modifier and Type | Field and Description |
---|---|
protected NameTransformer |
_nameTransformer
Transformer used to add prefix and/or suffix for properties
of unwrapped POJO.
|
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _isRequired, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTY
Constructor and Description |
---|
UnwrappingBeanPropertyWriter(BeanPropertyWriter base,
NameTransformer unwrapper) |
Modifier and Type | Method and Description |
---|---|
protected JsonSerializer<Object> |
_findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
void |
assignSerializer(JsonSerializer<Object> ser)
Method called to assign value serializer for property
|
UnwrappingBeanPropertyWriter |
rename(NameTransformer transformer) |
void |
serializeAsField(Object bean,
JsonGenerator jgen,
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.
|
_handleSelfReference, assignNullSerializer, depositSchemaProperty, depositSchemaProperty, get, getAnnotation, getContextAnnotation, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getViews, getWrapperName, hasNullSerializer, hasSerializer, isRequired, isRequired, removeInternalSetting, serializeAsColumn, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls
protected final NameTransformer _nameTransformer
public UnwrappingBeanPropertyWriter(BeanPropertyWriter base, NameTransformer unwrapper)
public UnwrappingBeanPropertyWriter rename(NameTransformer transformer)
rename
in class BeanPropertyWriter
public void serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider prov) throws Exception
BeanPropertyWriter
serializeAsField
in class BeanPropertyWriter
Exception
public void assignSerializer(JsonSerializer<Object> ser)
BeanPropertyWriter
assignSerializer
in class BeanPropertyWriter
protected JsonSerializer<Object> _findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializerProvider provider) throws JsonMappingException
_findAndAddDynamic
in class BeanPropertyWriter
JsonMappingException
Copyright © 2012-2013 FasterXML. All Rights Reserved.