Package adams.flow.standalone.logevent
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
-
-
Field Summary
-
Fields inherited from class adams.flow.standalone.logevent.AbstractMultiFilter
m_Filters
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description OrFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptRecord(LogRecord record)
Returns whether the log record is accepted or not for further processing.String
filtersTipText()
Returns the tip text for this property.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.flow.standalone.logevent.AbstractMultiFilter
defineOptions, getFilters, setFilters
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
filtersTipText
public String filtersTipText()
Returns the tip text for this property.- Specified by:
filtersTipText
in classAbstractMultiFilter
- 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 classAbstractLogRecordFilter
- Parameters:
record
- the record to check- Returns:
- true if accepted
-
-