Package org.openbravo.base.filter
Class ValueListFilter
- java.lang.Object
-
- org.openbravo.base.filter.ValueListFilter
-
- All Implemented Interfaces:
RequestFilter
public class ValueListFilter extends Object implements RequestFilter
Request filter which checks if the input is contained in a fixed list of allowed input. The comparison is made case in-sensitively.- Author:
- huehner
-
-
Constructor Summary
Constructors Constructor Description ValueListFilter(String... allowedValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(String value)
Function to check, if an input value is accepted by a filter.
-
-
-
Constructor Detail
-
ValueListFilter
public ValueListFilter(String... allowedValues)
-
-
Method Detail
-
accept
public boolean accept(String value)
Description copied from interface:RequestFilter
Function to check, if an input value is accepted by a filter.- Specified by:
accept
in interfaceRequestFilter
- Parameters:
value
- input value which should be checked- Returns:
- true, if the filter does accept the value
-
-