Top Description Inners Constructors Methods
tools.jackson.databind.ser.impl

public abstract Class FilteredBeanPropertyWriter

extends Object
Class Inheritance
Imports
tools.jackson.core.JsonGenerator, tools.jackson.databind.SerializationContext, .ValueSerializer, tools.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor, tools.jackson.databind.ser.BeanPropertyWriter, tools.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)
tools.jackson.databind.ser.impl back to summary

private final Class FilteredBeanPropertyWriter.MultiView

extends BeanPropertyWriter
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected final BeanPropertyWriter
protected final Class<?>[]
Inherited from tools.jackson.databind.ser.BeanPropertyWriter:
_accessor_cfgSerializationType_contextAnnotations_declaredType_dynamicSerializers_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(ValueSerializer<Object> nullSer)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

public void
assignSerializer(ValueSerializer<Object> ser)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsProperty that is used when a POJO is serialized as JSON Array (usually when "Shape" is forced as 'Array'): the difference is that no property names are written.

public void
serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

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 tools.jackson.databind.ser.BeanPropertyWriter:
_depositSchemaProperty_findAndAddDynamic_handleSelfReference_newassignTypeSerializerfixAccessgetgetAnnotationgetContextAnnotationgetFullNamegetInternalSettinggetMembergetNamegetSerializationTypegetSerializedNamegetSerializergetTypegetTypeSerializergetViewsgetWrapperNamehasNullSerializerhasSerializerisUnwrappingremoveInternalSettingserializeAsOmittedElementserializeAsOmittedPropertysetInternalSettingsetNonTrivialBaseTypetoStringunwrappingWriterwillSuppressNullswouldConflictWithName

Field Detail

_delegateback to summary
protected final BeanPropertyWriter _delegate
_viewsback to summary
protected final Class<?>[] _views

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(ValueSerializer<Object> nullSer)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

Annotations
@Override
depositSchemaPropertyback to summary
public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializationContext provider)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.depositSchemaProperty.

Implements tools.jackson.databind.BeanProperty.depositSchemaProperty.

Doc from tools.jackson.databind.ser.PropertyWriter.depositSchemaProperty.

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

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.rename.

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsProperty that is used when a POJO is serialized as JSON Array (usually when "Shape" is forced as 'Array'): the difference is that no property names are written.

Annotations
@Override
serializeAsPropertyback to summary
public void serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov) throws Exception

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

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
tools.jackson.databind.ser.impl back to summary

private final Class FilteredBeanPropertyWriter.SingleView

extends BeanPropertyWriter
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected final BeanPropertyWriter
protected final Class<?>
Inherited from tools.jackson.databind.ser.BeanPropertyWriter:
_accessor_cfgSerializationType_contextAnnotations_declaredType_dynamicSerializers_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(ValueSerializer<Object> nullSer)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

public void
assignSerializer(ValueSerializer<Object> ser)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsProperty that is used when a POJO is serialized as JSON Array (usually when "Shape" is forced as 'Array'): the difference is that no property names are written.

public void
serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

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 tools.jackson.databind.ser.BeanPropertyWriter:
_depositSchemaProperty_findAndAddDynamic_handleSelfReference_newassignTypeSerializerfixAccessgetgetAnnotationgetContextAnnotationgetFullNamegetInternalSettinggetMembergetNamegetSerializationTypegetSerializedNamegetSerializergetTypegetTypeSerializergetViewsgetWrapperNamehasNullSerializerhasSerializerisUnwrappingremoveInternalSettingserializeAsOmittedElementserializeAsOmittedPropertysetInternalSettingsetNonTrivialBaseTypetoStringunwrappingWriterwillSuppressNullswouldConflictWithName

Field Detail

_delegateback to summary
protected final BeanPropertyWriter _delegate
_viewback to summary
protected final Class<?> _view

Constructor Detail

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

Method Detail

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

Annotations
@Override
depositSchemaPropertyback to summary
public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializationContext provider)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.depositSchemaProperty.

Implements tools.jackson.databind.BeanProperty.depositSchemaProperty.

Doc from tools.jackson.databind.ser.PropertyWriter.depositSchemaProperty.

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

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.rename.

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsProperty that is used when a POJO is serialized as JSON Array (usually when "Shape" is forced as 'Array'): the difference is that no property names are written.

Annotations
@Override
serializeAsPropertyback to summary
public void serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov) throws Exception

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

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