Class AlternativesStringFilter


  • public class AlternativesStringFilter
    extends java.lang.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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean passes​(java.lang.String value)
      Returns true, 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlternativesStringFilter

        public AlternativesStringFilter()
    • 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)
        Returns true, if the given value passes this filter.