public static class SimpleBeanPropertyFilter.FilterExceptFilter extends SimpleBeanPropertyFilter
SimpleBeanPropertyFilter.FilterExceptFilter, SimpleBeanPropertyFilter.SerializeExceptFilter
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.String> |
_propertiesToInclude
Set of property names to serialize.
|
Constructor and Description |
---|
FilterExceptFilter(java.util.Set<java.lang.String> properties) |
Modifier and Type | Method and Description |
---|---|
void |
serializeAsField(java.lang.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, serializeAllExcept
protected final java.util.Set<java.lang.String> _propertiesToInclude
public FilterExceptFilter(java.util.Set<java.lang.String> properties)
public void serializeAsField(java.lang.Object bean, JsonGenerator jgen, SerializerProvider provider, BeanPropertyWriter writer) throws java.lang.Exception
BeanPropertyFilter
BeanSerializer
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 usejava.lang.Exception