Class OrFilter

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Serializable

    public class OrFilter
    extends AbstractMultiFilter
    Combines the filter results using a boolean OR.

    Valid options are:

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -filter <adams.flow.standalone.logevent.AbstractLogRecordFilter> [-filter ...] (property: filters)
        The filters to combine using OR.
        default: adams.flow.standalone.logevent.AcceptAllFilter
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • OrFilter

        public OrFilter()
    • Method Detail

      • filtersTipText

        public String filtersTipText()
        Returns the tip text for this property.
        Specified by:
        filtersTipText in class AbstractMultiFilter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • acceptRecord

        public boolean acceptRecord​(LogRecord record)
        Returns whether the log record is accepted or not for further processing.
        Specified by:
        acceptRecord in class AbstractLogRecordFilter
        Parameters:
        record - the record to check
        Returns:
        true if accepted