private static final class FilteredBeanPropertyWriter.MultiView extends BeanPropertyWriter implements java.io.Serializable
BeanProperty.Bogus, BeanProperty.Std
Modifier and Type | Field and Description |
---|---|
protected BeanPropertyWriter |
_delegate |
protected java.lang.Class<?>[] |
_views |
private static long |
serialVersionUID |
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTY
_aliases, _metadata, _propertyFormat
EMPTY_FORMAT, EMPTY_INCLUDE
Modifier | Constructor and Description |
---|---|
protected |
MultiView(BeanPropertyWriter delegate,
java.lang.Class<?>[] views) |
Modifier and Type | Method and Description |
---|---|
private boolean |
_inView(java.lang.Class<?> activeView) |
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.MultiView |
rename(NameTransformer transformer) |
void |
serializeAsElement(java.lang.Object bean,
com.fasterxml.jackson.core.JsonGenerator gen,
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 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.
|
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, _new, assignTypeSerializer, depositSchemaProperty, fixAccess, 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
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
private static final long serialVersionUID
protected final BeanPropertyWriter _delegate
protected final java.lang.Class<?>[] _views
protected MultiView(BeanPropertyWriter delegate, java.lang.Class<?>[] views)
public FilteredBeanPropertyWriter.MultiView 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 gen, 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 gen, 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
private final boolean _inView(java.lang.Class<?> activeView)