Class AlternativesStringFilter

java.lang.Object
ch.systemsx.cisd.common.shared.basic.string.AlternativesStringFilter

public class AlternativesStringFilter extends Object
A filter for String 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 Details

    • AlternativesStringFilter

      public AlternativesStringFilter()
  • Method Details

    • setFilterValue

      public void setFilterValue(String value)
      Sets a new filter value.
    • setFilterValue

      public void setFilterValue(String value, ch.systemsx.cisd.common.shared.basic.string.AlternativesStringFilter.IMatcherFactory factory)
    • setDateFilterValue

      public void setDateFilterValue(String value)
    • passes

      public boolean passes(String value)
      Returns true, if the given value passes this filter.