Class FieldFilter

  • All Implemented Interfaces:
    Serializable

    public class FieldFilter
    extends Object
    implements Serializable
    A field filter. Consists of a field name and a list of one or more alternative value ranges.
    See Also:
    Serialized Form
    • Constructor Detail

      • FieldFilter

        public FieldFilter​(String fieldName,
                           FieldFilterRange filterRange)
        A field filter.
        Parameters:
        fieldName - the field name
        filterRange - the filter range
      • FieldFilter

        public FieldFilter​(String fieldName,
                           FieldFilterRange[] filterRanges)
        A field filter that checks only a prefix of of the field.
        Parameters:
        fieldName - the name of a field, can be a compound name.
        filterRanges - the list of alternative values
      • FieldFilter

        public FieldFilter​(String fieldName)
        A wild card field filter.
        Parameters:
        fieldName - the field name
    • Method Detail

      • appendFilterRange

        public FieldFilter appendFilterRange​(FieldFilterRange range)
        Appends a filter clause to the current filter Applied to current target field Each clause if OR'ed.
        Parameters:
        range - the fieldfilter range to append (OR)
        Returns:
        the field filter
      • getFieldName

        public String getFieldName()
        the field name.
        Returns:
        the field name
      • getRangeCount

        public int getRangeCount()
        The number of ranges used in this filter.
        Returns:
        the range count
      • toString

        public String toString​(boolean outputfieldexpression)
        To string.
        Parameters:
        outputfieldexpression - the outputfieldexpression
        Returns:
        the string