Class NotFilter

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

    public class NotFilter
    extends AbstractLogRecordFilter
    Inverts the filtering result of the base filter.

    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> (property: filter)
        The filter which filter outcome gets inverted.
        default: adams.flow.standalone.logevent.AcceptAllFilter
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • NotFilter

        public NotFilter()
    • Method Detail

      • setFilter

        public void setFilter​(AbstractLogRecordFilter value)
        Sets the filter to invert.
        Parameters:
        value - the filter
      • filterTipText

        public String filterTipText()
        Returns the tip text for this property.
        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:
        always true