BeanPropertyFilterpublic static class SimpleBeanPropertyFilter.FilterExceptFilter extends SimpleBeanPropertyFilter
SimpleBeanPropertyFilter.FilterExceptFilter, SimpleBeanPropertyFilter.SerializeExceptFilter| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.Set<java.lang.String> |
_propertiesToInclude |
Set of property names to serialize.
|
| Constructor | Description |
|---|---|
FilterExceptFilter(java.util.Set<java.lang.String> properties) |
| Modifier and Type | Method | 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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterOutAllExcept, filterOutAllExcept, serializeAllExcept, serializeAllExceptprotected 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
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 usejava.lang.Exception