public static class SimpleBeanPropertyFilter.SerializeExceptFilter extends SimpleBeanPropertyFilter
SimpleBeanPropertyFilter.FilterExceptFilter, SimpleBeanPropertyFilter.SerializeExceptFilter| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
_propertiesToExclude
Set of property names to filter out.
|
| Constructor and Description |
|---|
SimpleBeanPropertyFilter.SerializeExceptFilter(Set<String> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer)
Method called by
BeanSerializer to let filter decide what to do with
given bean property value: the usual choices are to either filter out (i.e. |
filterOutAllExcept, filterOutAllExcept, serializeAllExcept, serializeAllExceptpublic void serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider provider, BeanPropertyWriter writer) throws Exception
BeanPropertyFilterBeanSerializer 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 given BeanPropertyWriter, although filters
can choose other to do something different altogether.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 useException