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, _metadata
EMPTY_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, wouldConflictWithName
findAnnotation
findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
private 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 BeanPropertyWriter
public void assignSerializer(JsonSerializer<java.lang.Object> ser)
BeanPropertyWriter
assignSerializer
in class BeanPropertyWriter
public void assignNullSerializer(JsonSerializer<java.lang.Object> nullSer)
BeanPropertyWriter
assignNullSerializer
in class BeanPropertyWriter
public void serializeAsField(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, SerializerProvider prov) throws java.lang.Exception
BeanPropertyWriter
serializeAsField
in class BeanPropertyWriter
java.lang.Exception
public void serializeAsElement(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, SerializerProvider prov) throws java.lang.Exception
BeanPropertyWriter
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.serializeAsElement
in class BeanPropertyWriter
java.lang.Exception
public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException
PropertyWriter
depositSchemaProperty
in interface BeanProperty
depositSchemaProperty
in class BeanPropertyWriter
v
- Visitor to used as the callback handlerJsonMappingException