Class SimpleBeanPropertyFilter.SerializeExceptFilter
- java.lang.Object
-
- org.codehaus.jackson.map.ser.impl.SimpleBeanPropertyFilter
-
- org.codehaus.jackson.map.ser.impl.SimpleBeanPropertyFilter.SerializeExceptFilter
-
- All Implemented Interfaces:
BeanPropertyFilter
- Enclosing class:
- SimpleBeanPropertyFilter
public static class SimpleBeanPropertyFilter.SerializeExceptFilter extends SimpleBeanPropertyFilter
Filter implementation which defaults to serializing all properties, except for ones explicitly listed to be filtered out.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.jackson.map.ser.impl.SimpleBeanPropertyFilter
SimpleBeanPropertyFilter.FilterExceptFilter, SimpleBeanPropertyFilter.SerializeExceptFilter
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
_propertiesToExclude
Set of property names to filter out.
-
Constructor Summary
Constructors Constructor Description SerializeExceptFilter(Set<String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider provider, BeanPropertyWriter writer)
Method called byBeanSerializer
to let filter decide what to do with given bean property value: the usual choices are to either filter out (i.e.-
Methods inherited from class org.codehaus.jackson.map.ser.impl.SimpleBeanPropertyFilter
filterOutAllExcept, filterOutAllExcept, serializeAllExcept, serializeAllExcept
-
-
-
-
Method Detail
-
serializeAsField
public void serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider provider, BeanPropertyWriter writer) throws Exception
Description copied from interface:BeanPropertyFilter
Method called byBeanSerializer
to let filter decide what to do with given bean property value: the usual choices are to either filter out (i.e. do nothing) or write using givenBeanPropertyWriter
, although filters can choose other to do something different altogether.- Parameters:
bean
- Bean of which property value to serializejgen
- Generator use for serializing valueprovider
- Provider that can be used for accessing dynamic aspects of serialization processingwriter
- Default bean property serializer to use- Throws:
Exception
-
-