Top Description Inners Constructors Methods
com.fasterxml.jackson.databind.ser.impl

public abstract Class FilteredBeanPropertyWriter

extends Object
Class Inheritance
Imports
com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.JsonMappingException, .JsonSerializer, .SerializerProvider, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor, com.fasterxml.jackson.databind.ser.BeanPropertyWriter, com.fasterxml.jackson.databind.util.NameTransformer

Decorated BeanPropertyWriter that will filter out properties that are not to be included in currently active JsonView.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static BeanPropertyWriter
constructViewBased(BeanPropertyWriter base, Class<?>[] viewsToIncludeIn)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FilteredBeanPropertyWriterback to summary
public FilteredBeanPropertyWriter()

Method Detail

constructViewBasedback to summary
public static BeanPropertyWriter constructViewBased(BeanPropertyWriter base, Class<?>[] viewsToIncludeIn)
com.fasterxml.jackson.databind.ser.impl back to summary

private final Class FilteredBeanPropertyWriter.MultiView

extends BeanPropertyWriter
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
protected final BeanPropertyWriter
protected final Class<?>[]
private static final long
Inherited from com.fasterxml.jackson.databind.ser.BeanPropertyWriter:
_accessorMethod_cfgSerializationType_contextAnnotations_declaredType_dynamicSerializers_field_includeInViews_internalSettings_member_name_nonTrivialBaseType_nullSerializer_serializer_suppressableValue_suppressNulls_typeSerializer_wrapperNameMARKER_FOR_EMPTY

Constructor Summary

AccessConstructor and Description
protected
MultiView(BeanPropertyWriter delegate, Class<?>[] views)

Method Summary

Modifier and TypeMethod and Description
private final boolean
_inView(Class<?> activeView)

public void
assignNullSerializer(JsonSerializer<Object> nullSer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

public void
assignSerializer(JsonSerializer<Object> ser)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

public void
depositSchemaProperty(JsonObjectFormatVisitor
Visitor to used as the callback handler
v
,
SerializerProvider provider)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.depositSchemaProperty.

Implements com.fasterxml.jackson.databind.BeanProperty.depositSchemaProperty.

Traversal method used for things like JSON Schema generation, or POJO introspection.

public FilteredBeanPropertyWriter.MultiView
public void
serializeAsElement(Object bean, JsonGenerator gen, SerializerProvider prov)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsField that is used when a POJO is serialized as JSON Array; the difference is that no field names are written.

public void
serializeAsField(Object bean, JsonGenerator gen, SerializerProvider prov)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

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.

Inherited from com.fasterxml.jackson.databind.ser.BeanPropertyWriter:
_depositSchemaProperty_findAndAddDynamic_handleSelfReference_newassignTypeSerializerdepositSchemaPropertyfixAccessgetgetAnnotationgetContextAnnotationgetFullNamegetGenericPropertyTypegetInternalSettinggetMembergetNamegetPropertyTypegetRawSerializationTypegetSerializationTypegetSerializedNamegetSerializergetTypegetTypeSerializergetViewsgetWrapperNamehasNullSerializerhasSerializerisUnwrappingremoveInternalSettingserializeAsOmittedFieldserializeAsPlaceholdersetInternalSettingsetNonTrivialBaseTypetoStringunwrappingWriterwillSuppressNullswouldConflictWithName

Field Detail

_delegateback to summary
protected final BeanPropertyWriter _delegate
_viewsback to summary
protected final Class<?>[] _views
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serialVersionUID.

Constructor Detail

MultiViewback to summary
protected MultiView(BeanPropertyWriter delegate, Class<?>[] views)

Method Detail

_inViewback to summary
private final boolean _inView(Class<?> activeView)
assignNullSerializerback to summary
public void assignNullSerializer(JsonSerializer<Object> nullSer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

Annotations
@Override
assignSerializerback to summary
public void assignSerializer(JsonSerializer<Object> ser)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

Annotations
@Override
depositSchemaPropertyback to summary
public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.depositSchemaProperty.

Implements com.fasterxml.jackson.databind.BeanProperty.depositSchemaProperty.

Doc from com.fasterxml.jackson.databind.ser.PropertyWriter.depositSchemaProperty.

Traversal method used for things like JSON Schema generation, or POJO introspection.

Parameters
v:JsonObjectFormatVisitor

Doc from com.fasterxml.jackson.databind.BeanProperty.depositSchemaProperty.

Visitor to used as the callback handler

Annotations
@Override
renameback to summary
public FilteredBeanPropertyWriter.MultiView rename(NameTransformer transformer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.rename.

Annotations
@Override
serializeAsElementback to summary
public void serializeAsElement(Object bean, JsonGenerator gen, SerializerProvider prov) throws Exception

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsField that is used when a POJO is serialized as JSON Array; the difference is that no field names are written.

Annotations
@Override
serializeAsFieldback to summary
public void serializeAsField(Object bean, JsonGenerator gen, SerializerProvider prov) throws Exception

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

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.

Annotations
@Override
com.fasterxml.jackson.databind.ser.impl back to summary

private final Class FilteredBeanPropertyWriter.SingleView

extends BeanPropertyWriter
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
protected final BeanPropertyWriter
protected final Class<?>
private static final long
Inherited from com.fasterxml.jackson.databind.ser.BeanPropertyWriter:
_accessorMethod_cfgSerializationType_contextAnnotations_declaredType_dynamicSerializers_field_includeInViews_internalSettings_member_name_nonTrivialBaseType_nullSerializer_serializer_suppressableValue_suppressNulls_typeSerializer_wrapperNameMARKER_FOR_EMPTY

Constructor Summary

AccessConstructor and Description
protected
SingleView(BeanPropertyWriter delegate, Class<?> view)

Method Summary

Modifier and TypeMethod and Description
public void
assignNullSerializer(JsonSerializer<Object> nullSer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

public void
assignSerializer(JsonSerializer<Object> ser)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

public void
depositSchemaProperty(JsonObjectFormatVisitor
Visitor to used as the callback handler
v
,
SerializerProvider provider)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.depositSchemaProperty.

Implements com.fasterxml.jackson.databind.BeanProperty.depositSchemaProperty.

Traversal method used for things like JSON Schema generation, or POJO introspection.

public FilteredBeanPropertyWriter.SingleView
public void
serializeAsElement(Object bean, JsonGenerator gen, SerializerProvider prov)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsField that is used when a POJO is serialized as JSON Array; the difference is that no field names are written.

public void
serializeAsField(Object bean, JsonGenerator gen, SerializerProvider prov)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

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.

Inherited from com.fasterxml.jackson.databind.ser.BeanPropertyWriter:
_depositSchemaProperty_findAndAddDynamic_handleSelfReference_newassignTypeSerializerdepositSchemaPropertyfixAccessgetgetAnnotationgetContextAnnotationgetFullNamegetGenericPropertyTypegetInternalSettinggetMembergetNamegetPropertyTypegetRawSerializationTypegetSerializationTypegetSerializedNamegetSerializergetTypegetTypeSerializergetViewsgetWrapperNamehasNullSerializerhasSerializerisUnwrappingremoveInternalSettingserializeAsOmittedFieldserializeAsPlaceholdersetInternalSettingsetNonTrivialBaseTypetoStringunwrappingWriterwillSuppressNullswouldConflictWithName

Field Detail

_delegateback to summary
protected final BeanPropertyWriter _delegate
_viewback to summary
protected final Class<?> _view
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serialVersionUID.

Constructor Detail

SingleViewback to summary
protected SingleView(BeanPropertyWriter delegate, Class<?> view)

Method Detail

assignNullSerializerback to summary
public void assignNullSerializer(JsonSerializer<Object> nullSer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

Annotations
@Override
assignSerializerback to summary
public void assignSerializer(JsonSerializer<Object> ser)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

Annotations
@Override
depositSchemaPropertyback to summary
public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.depositSchemaProperty.

Implements com.fasterxml.jackson.databind.BeanProperty.depositSchemaProperty.

Doc from com.fasterxml.jackson.databind.ser.PropertyWriter.depositSchemaProperty.

Traversal method used for things like JSON Schema generation, or POJO introspection.

Parameters
v:JsonObjectFormatVisitor

Doc from com.fasterxml.jackson.databind.BeanProperty.depositSchemaProperty.

Visitor to used as the callback handler

Annotations
@Override
renameback to summary
public FilteredBeanPropertyWriter.SingleView rename(NameTransformer transformer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.rename.

Annotations
@Override
serializeAsElementback to summary
public void serializeAsElement(Object bean, JsonGenerator gen, SerializerProvider prov) throws Exception

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsField that is used when a POJO is serialized as JSON Array; the difference is that no field names are written.

Annotations
@Override
serializeAsFieldback to summary
public void serializeAsField(Object bean, JsonGenerator gen, SerializerProvider prov) throws Exception

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

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.

Annotations
@Override