private static final class FilteredBeanPropertyWriter.SingleView extends BeanPropertyWriter implements java.io.Serializable
BeanProperty.Std| Modifier and Type | Field and Description |
|---|---|
protected BeanPropertyWriter |
_delegate |
protected java.lang.Class<?> |
_view |
private static long |
serialVersionUID |
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTY_format, _metadataEMPTY_FORMAT, EMPTY_INCLUDE| Modifier | Constructor and Description |
|---|---|
protected |
SingleView(BeanPropertyWriter delegate,
java.lang.Class<?> view) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignNullSerializer(JsonSerializer<java.lang.Object> nullSer)
Method called to assign null value serializer for property
|
void |
assignSerializer(JsonSerializer<java.lang.Object> ser)
Method called to assign value serializer for property
|
void |
depositSchemaProperty(JsonObjectFormatVisitor v,
SerializerProvider provider)
Traversal method used for things like JSON Schema generation, or
POJO introspection.
|
FilteredBeanPropertyWriter.SingleView |
rename(NameTransformer transformer) |
void |
serializeAsElement(java.lang.Object bean,
com.fasterxml.jackson.core.JsonGenerator jgen,
SerializerProvider prov)
Alternative to
BeanPropertyWriter.serializeAsField(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider) that is used when a POJO
is serialized as JSON Array; the difference is that no field names
are written. |
void |
serializeAsField(java.lang.Object bean,
com.fasterxml.jackson.core.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.
|
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, _new, assignTypeSerializer, depositSchemaProperty, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls, wouldConflictWithNamefindAnnotationfindFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtualprivate static final long serialVersionUID
protected final BeanPropertyWriter _delegate
protected final java.lang.Class<?> _view
protected SingleView(BeanPropertyWriter delegate, java.lang.Class<?> view)
public FilteredBeanPropertyWriter.SingleView rename(NameTransformer transformer)
rename in class BeanPropertyWriterpublic void assignSerializer(JsonSerializer<java.lang.Object> ser)
BeanPropertyWriterassignSerializer in class BeanPropertyWriterpublic void assignNullSerializer(JsonSerializer<java.lang.Object> nullSer)
BeanPropertyWriterassignNullSerializer in class BeanPropertyWriterpublic void serializeAsField(java.lang.Object bean,
com.fasterxml.jackson.core.JsonGenerator jgen,
SerializerProvider prov)
throws java.lang.Exception
BeanPropertyWriterserializeAsField in class BeanPropertyWriterjava.lang.Exceptionpublic void serializeAsElement(java.lang.Object bean,
com.fasterxml.jackson.core.JsonGenerator jgen,
SerializerProvider prov)
throws java.lang.Exception
BeanPropertyWriterBeanPropertyWriter.serializeAsField(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider) that is used when a POJO
is serialized as JSON Array; the difference is that no field names
are written.serializeAsElement in class BeanPropertyWriterjava.lang.Exceptionpublic void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException
PropertyWriterdepositSchemaProperty in interface BeanPropertydepositSchemaProperty in class BeanPropertyWriterv - Visitor to used as the callback handlerJsonMappingException