Package org.openbravo.base.filter
Class RegexFilter
- java.lang.Object
-
- org.openbravo.base.filter.RegexFilter
-
- All Implemented Interfaces:
RequestFilter
- Direct Known Subclasses:
IsIDFilter
,IsPositiveIntFilter
public class RegexFilter extends Object implements RequestFilter
Filter to check, if the input value matches a regular expression.- Author:
- huehner
-
-
Constructor Summary
Constructors Constructor Description RegexFilter(String strPattern)
-
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
-
RegexFilter
public RegexFilter(String strPattern)
-
-
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
-
-