Class SimpleBeanPropertyFilter.FilterExceptFilter
java.lang.Object
org.codehaus.jackson.map.ser.impl.SimpleBeanPropertyFilter
org.codehaus.jackson.map.ser.impl.SimpleBeanPropertyFilter.FilterExceptFilter
- All Implemented Interfaces:
BeanPropertyFilter
- Enclosing class:
SimpleBeanPropertyFilter
Filter implementation which defaults to filtering out unknown
properties and only serializes ones explicitly listed.
- Since:
- 1.7
-
Nested Class Summary
Nested classes/interfaces inherited from class SimpleBeanPropertyFilter
SimpleBeanPropertyFilter.FilterExceptFilter, SimpleBeanPropertyFilter.SerializeExceptFilter -
Field Summary
FieldsModifier and TypeFieldDescriptionSet of property names to serialize. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserializeAsField(Object bean, JsonGenerator jgen, SerializerProvider provider, BeanPropertyWriter writer) Method called byBeanSerializerto 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 SimpleBeanPropertyFilter
filterOutAllExcept, filterOutAllExcept, serializeAllExcept, serializeAllExcept
-
Field Details
-
_propertiesToInclude
-
-
Constructor Details
-
FilterExceptFilter
-
-
Method Details
-
serializeAsField
public void serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider provider, BeanPropertyWriter writer) throws Exception Description copied from interface:BeanPropertyFilterMethod called byBeanSerializerto 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
-