Class CategoryExplorerLogRecordFilter

  • All Implemented Interfaces:
    LogRecordFilter

    public class CategoryExplorerLogRecordFilter
    extends Object
    implements LogRecordFilter
    An implementation of LogRecordFilter based on a CategoryExplorerModel
    Author:
    Richard Wan
    • Constructor Detail

      • CategoryExplorerLogRecordFilter

        public CategoryExplorerLogRecordFilter​(CategoryExplorerModel model)
    • Method Detail

      • passes

        public boolean passes​(LogRecord record)
        Specified by:
        passes in interface LogRecordFilter
        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()