Class CategoryExplorerLogRecordFilter
- java.lang.Object
-
- org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerLogRecordFilter
-
- All Implemented Interfaces:
LogRecordFilter
public class CategoryExplorerLogRecordFilter extends java.lang.Object implements LogRecordFilter
An implementation of LogRecordFilter based on a CategoryExplorerModel
-
-
Field Summary
Fields Modifier and Type Field Description protected CategoryExplorerModel
_model
-
Constructor Summary
Constructors Constructor Description CategoryExplorerLogRecordFilter(CategoryExplorerModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
passes(LogRecord record)
void
reset()
Resets the counters for the contained CategoryNodes to zero.protected void
resetAllNodes()
-
-
-
Field Detail
-
_model
protected CategoryExplorerModel _model
-
-
Constructor Detail
-
CategoryExplorerLogRecordFilter
public CategoryExplorerLogRecordFilter(CategoryExplorerModel model)
-
-
Method Detail
-
passes
public boolean passes(LogRecord record)
- Specified by:
passes
in interfaceLogRecordFilter
- Returns:
- true if the CategoryExplorer model specified at construction is accepting the category of the specified LogRecord. Has a side-effect of adding the CategoryPath of the LogRecord to the explorer model if the CategoryPath is new.
-
reset
public void reset()
Resets the counters for the contained CategoryNodes to zero.
-
resetAllNodes
protected void resetAllNodes()
-
-