Class FieldFilter

  • All Implemented Interfaces:
    DatasetFilter

    public class FieldFilter
    extends Object
    implements DatasetFilter
    A dataset filter that matches String values based on substrings.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Constructor Detail

      • FieldFilter

        public FieldFilter()
      • FieldFilter

        public FieldFilter​(String field,
                           String filterValueStart,
                           String filterValueEnd,
                           String filterType,
                           String filterTypeOperator)
        Creates a field filter.
    • Method Detail

      • getFilterLocale

        protected Locale getFilterLocale()
      • getFilterTimeZone

        protected TimeZone getFilterTimeZone()
      • matches

        public boolean matches​(EvaluationType evaluation)
        Description copied from interface: DatasetFilter
        Determines whether the current row matches the filter criteria. Matching rows are included in the report, while non-matching rows are skipped.
        Specified by:
        matches in interface DatasetFilter
        Parameters:
        evaluation - the evaluation type. Currently only EvaluationType.ESTIMATED is used.
        Returns:
        true if the row is to be included in the report.
      • getField

        public String getField()
      • getFilterValueStart

        public String getFilterValueStart()
      • setFilterValueStart

        public void setFilterValueStart​(String filterValueStart)
      • getFilterValueEnd

        public String getFilterValueEnd()
      • setFilterValueEnd

        public void setFilterValueEnd​(String filterValueEnd)
      • getFilterType

        public String getFilterType()
      • getFilterTypeOperator

        public String getFilterTypeOperator()
      • setFilterTypeOperator

        public void setFilterTypeOperator​(String filterTypeOperator)
      • getIsValid

        public Boolean getIsValid()
      • setIsValid

        public void setIsValid​(Boolean isValid)
      • getIsField

        public Boolean getIsField()
      • setIsField

        public void setIsField​(Boolean isField)
      • getFilterPattern

        public String getFilterPattern()
      • setFilterPattern

        public void setFilterPattern​(String filterPattern)
      • getLocaleCode

        public String getLocaleCode()
      • setLocaleCode

        public void setLocaleCode​(String localeCode)
      • getTimeZoneId

        public String getTimeZoneId()
      • setTimeZoneId

        public void setTimeZoneId​(String timeZoneId)