Class AlternativesStringFilter
- java.lang.Object
-
- ch.systemsx.cisd.common.shared.basic.string.AlternativesStringFilter
-
public class AlternativesStringFilter extends java.lang.Object
A filter forString
values. It supports:- Alternatives (by ' ')
- Conjunction (by ' & ')
- Negation (by '!')
- Binding to start of value (by '^')
- Binding to end of value (by '$')
- Quoting by single ("'") and double ('"') quotes
- Escaping of special characters (by '\')
- Numerical comparisons (by '<', '>', '<=', '>=', '=')
Can be used from GWT code.
-
-
Constructor Summary
Constructors Constructor Description AlternativesStringFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
passes(java.lang.String value)
Returnstrue
, if the given value passes this filter.void
setDateFilterValue(java.lang.String value)
void
setFilterValue(java.lang.String value)
Sets a new filter value.void
setFilterValue(java.lang.String value, ch.systemsx.cisd.common.shared.basic.string.AlternativesStringFilter.IMatcherFactory factory)
-
-
-
Method Detail
-
setFilterValue
public void setFilterValue(java.lang.String value)
Sets a new filter value.
-
setFilterValue
public void setFilterValue(java.lang.String value, ch.systemsx.cisd.common.shared.basic.string.AlternativesStringFilter.IMatcherFactory factory)
-
setDateFilterValue
public void setDateFilterValue(java.lang.String value)
-
passes
public boolean passes(java.lang.String value)
Returnstrue
, if the given value passes this filter.
-
-