FilterProvider implementation that just stores
direct id-to-filter mapping.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | _cfgFailOnUnknownId
Flag that indicates whether request for an unknown filter id should result an exception (default) or not. |
| protected PropertyFilter | _defaultFilter
This is the filter we return in case no mapping was found for given id; default is 'null' (in which case caller typically reports an error), but can be set to an explicit filter. |
| protected final Map | _filtersById
Mappings from ids to filters. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SimpleFilterProvider(Map<String, PropertyFilter>
Mapping from id to filter; used as is if if possible mapping)
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public SimpleFilterProvider | Returns: This provider instance, for call-chainingThe id to associate the filter with. id, PropertyFilter The filter to add; filter)Adds an instance of |
| public SimpleFilterProvider | Returns: This provider instance, for call-chainingThe id to associate the filter with. id, SimpleBeanPropertyFilter The filter to add; filter)Overloaded variant just to resolve "ties" when using |
| public PropertyFilter | findPropertyFilter(SerializationContext ctxt, Object filterId, Object valueToFilter)
Implements abstract tools. Lookup method used to find |
| public PropertyFilter | |
| public PropertyFilter | |
| public SimpleFilterProvider | |
| public SimpleFilterProvider | setDefaultFilter(SimpleBeanPropertyFilter f)
Overloaded variant just to resolve "ties" when using |
| public SimpleFilterProvider | |
| public SimpleFilterProvider | snapshot()
Implements tools. Method to call to get an instance that may not be modified through any other object, including `this`. |
| public boolean |
| _cfgFailOnUnknownId | back to summary |
|---|---|
| protected boolean _cfgFailOnUnknownId Flag that indicates whether request for an unknown filter id should result an exception (default) or not. Note that this is only relevant if no default filter has been configured. | |
| _defaultFilter | back to summary |
|---|---|
| protected PropertyFilter _defaultFilter This is the filter we return in case no mapping was found for given id; default is 'null' (in which case caller typically reports an error), but can be set to an explicit filter. | |
| _filtersById | back to summary |
|---|---|
| protected final Map<String, PropertyFilter> _filtersById Mappings from ids to filters. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SimpleFilterProvider | back to summary |
|---|---|
| public SimpleFilterProvider() | |
| SimpleFilterProvider | back to summary |
|---|---|
public SimpleFilterProvider(Map<String, PropertyFilter> mapping)
| |
| SimpleFilterProvider | back to summary |
|---|---|
| protected SimpleFilterProvider(SimpleFilterProvider src) | |
| addFilter | back to summary |
|---|---|
| public SimpleFilterProvider addFilter(String id, PropertyFilter filter) Adds an instance of Warning Binding
| |
| addFilter | back to summary |
|---|---|
| public SimpleFilterProvider addFilter(String id, SimpleBeanPropertyFilter filter) Overloaded variant just to resolve "ties" when using
Adds an instance of Warning Binding
| |
| findPropertyFilter | back to summary |
|---|---|
| public PropertyFilter findPropertyFilter(SerializationContext ctxt, Object filterId, Object valueToFilter) Implements abstract tools. Doc from tools. Lookup method used to find
| |
| getDefaultFilter | back to summary |
|---|---|
| public PropertyFilter getDefaultFilter() | |
| removeFilter | back to summary |
|---|---|
| public PropertyFilter removeFilter(String id) | |
| setDefaultFilter | back to summary |
|---|---|
| public SimpleFilterProvider setDefaultFilter(PropertyFilter f) | |
| setDefaultFilter | back to summary |
|---|---|
| public SimpleFilterProvider setDefaultFilter(SimpleBeanPropertyFilter f) Overloaded variant just to resolve "ties" when using | |
| setFailOnUnknownId | back to summary |
|---|---|
| public SimpleFilterProvider setFailOnUnknownId(boolean state) | |
| snapshot | back to summary |
|---|---|
| public SimpleFilterProvider snapshot() Implements tools. Doc from tools. Method to call to get an instance that may not be modified through any other object, including `this`. That instance may be `this` if (and only if) this instance is effectively immutable (unmodifiable) through its API: if this is not the case, a new copy with same configuration must be created and returned.
| |
| willFailOnUnknownId | back to summary |
|---|---|
| public boolean willFailOnUnknownId() | |