View Javadoc
1   package net.logAnalyzer.gui.messages.filters;
2   
3   /***
4    * This class implements a filter used to apply a modifier to a single filter.
5    * 
6    * @author Karim REFEYTON
7    * @version 0.1
8    */
9   public abstract class UnaryFilter implements LAMessagesFilter {
10      /***
11       * Filter.
12       */
13      private LAMessagesFilter filter;
14  
15      /***
16       * Constructs a new filter.
17       * 
18       * @param filter
19       *            Filter on which apply the unary filter.
20       */
21      public UnaryFilter(LAMessagesFilter filter) {
22          this.filter = filter;
23      }
24  
25      /***
26       * Returns the filter.
27       * 
28       * @return Filter.
29       */
30      public final LAMessagesFilter getFilter() {
31          return this.filter;
32      }
33  
34      /***
35       * Sets the filter.
36       * 
37       * @param filter Filter.
38       */
39      public final void setFilter(LAMessagesFilter filter) {
40          this.filter = filter;
41      }
42  
43      /***
44       * Returns a string representation of the filter. Used to display filter.
45       * 
46       * @return String representation of the filter.
47       */
48      public abstract String toString();
49  }