1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.core.boolex;
15
16 import ch.qos.logback.core.spi.ContextAwareBase;
17
18 abstract public class EventEvaluatorBase<E> extends ContextAwareBase implements
19 EventEvaluator<E> {
20
21 String name;
22 boolean started;
23
24 public String getName() {
25 return name;
26 }
27
28 public void setName(String name) {
29 if (this.name != null) {
30 throw new IllegalStateException("name has been already set");
31 }
32 this.name = name;
33 }
34
35 public boolean isStarted() {
36 return started;
37 }
38
39 public void start() {
40 started = true;
41 }
42
43 public void stop() {
44 started = false;
45 }
46
47 }