Uses of Interface
com.fasterxml.jackson.databind.ser.PropertyFilter
Packages that use PropertyFilter
Package
Description
Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
-
Uses of PropertyFilter in com.fasterxml.jackson.databind.ser
Methods in com.fasterxml.jackson.databind.ser that return PropertyFilterModifier and TypeMethodDescriptionFilterProvider.findPropertyFilter
(Object filterId, Object valueToFilter) Lookup method used to findPropertyFilter
that has specified id.Methods in com.fasterxml.jackson.databind.ser with parameters of type PropertyFilterModifier and TypeMethodDescriptionvoid
AnyGetterWriter.getAndFilter
(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, PropertyFilter filter) -
Uses of PropertyFilter in com.fasterxml.jackson.databind.ser.impl
Classes in com.fasterxml.jackson.databind.ser.impl that implement PropertyFilterModifier and TypeClassDescriptionclass
SimplePropertyFilter
implementation that only uses property name to determine whether to serialize property as is, or to filter it out.static class
Filter implementation which defaults to filtering out unknown properties and only serializes ones explicitly listed.static class
Filter implementation which defaults to serializing all properties, except for ones explicitly listed to be filtered out.Fields in com.fasterxml.jackson.databind.ser.impl declared as PropertyFilterModifier and TypeFieldDescriptionprotected PropertyFilter
SimpleFilterProvider._defaultFilter
This is the filter we return in case no mapping was found for given id; default isnull
(in which case caller typically reports an error), but can be set to an explicit filter.Fields in com.fasterxml.jackson.databind.ser.impl with type parameters of type PropertyFilterModifier and TypeFieldDescriptionprotected final Map
<String, PropertyFilter> SimpleFilterProvider._filtersById
Mappings from ids to filters.Methods in com.fasterxml.jackson.databind.ser.impl that return PropertyFilterModifier and TypeMethodDescriptionSimpleFilterProvider.findPropertyFilter
(Object filterId, Object valueToFilter) static PropertyFilter
SimpleBeanPropertyFilter.from
(BeanPropertyFilter src) Helper method to ease transition fromBeanPropertyWriter
intoPropertyWriter
SimpleFilterProvider.getDefaultFilter()
SimpleFilterProvider.removeFilter
(String id) Methods in com.fasterxml.jackson.databind.ser.impl with parameters of type PropertyFilterModifier and TypeMethodDescriptionSimpleFilterProvider.addFilter
(String id, PropertyFilter filter) Adds an instance ofPropertyFilter
associated with the givenid
parameter.SimpleFilterProvider.setDefaultFilter
(PropertyFilter f) Method for defining "default filter" to use, if any (null
if none), to return in case no registered instance matches passed filter id. -
Uses of PropertyFilter in com.fasterxml.jackson.databind.ser.std
Methods in com.fasterxml.jackson.databind.ser.std that return PropertyFilterModifier and TypeMethodDescriptionprotected PropertyFilter
StdSerializer.findPropertyFilter
(SerializerProvider provider, Object filterId, Object valueToFilter) Helper method used to locate filter that is needed, based on filter id this serializer was constructed with.Methods in com.fasterxml.jackson.databind.ser.std with parameters of type PropertyFilterModifier and TypeMethodDescriptionvoid
MapSerializer.serializeFilteredAnyProperties
(SerializerProvider provider, com.fasterxml.jackson.core.JsonGenerator gen, Object bean, Map<?, ?> value, PropertyFilter filter, Object suppressableValue) Helper method used when we have a JSON Filter to use AND contents are "any properties" of a POJO.void
MapSerializer.serializeFilteredFields
(Map<?, ?> value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, PropertyFilter filter, Object suppressableValue) Helper method used when we have a JSON Filter to use for potentially filtering out Map entries.