View Javadoc
1   package ch.qos.logback.classic.model;
2   
3   import java.util.Objects;
4   
5   import ch.qos.logback.core.model.Model;
6   import ch.qos.logback.core.util.Duration;
7   
8   public class ConfigurationModel extends Model {
9   
10      private static final long serialVersionUID = 1286156598561818515L;
11  
12      String debugStr;
13      String scanStr;
14      String scanPeriodStr;
15      String packagingDataStr;
16      
17      @Override
18      protected ConfigurationModel makeNewInstance() {
19          return new ConfigurationModel();
20      }
21      
22      @Override protected void mirror(Model that) {
23          ConfigurationModel actual = (ConfigurationModel) that;
24          super.mirror(that);
25          this.debugStr = actual.debugStr;
26          this.scanStr = actual.scanStr;
27          this.scanPeriodStr = actual.scanPeriodStr;
28          this.packagingDataStr = actual.packagingDataStr;
29      }
30      
31      public String getDebugStr() {
32          return debugStr;
33      }
34  
35      public void setDebugStr(String debugStr) {
36          this.debugStr = debugStr;
37      }
38  
39      public String getScanStr() {
40          return scanStr;
41      }
42  
43      public void setScanStr(String scanStr) {
44          this.scanStr = scanStr;
45      }
46  
47      public String getScanPeriodStr() {
48          return scanPeriodStr;
49      }
50  
51      public void setScanPeriodStr(String scanPeriodStr) {
52          this.scanPeriodStr = scanPeriodStr;
53      }
54  
55      public String getPackagingDataStr() {
56          return packagingDataStr;
57      }
58  
59      public void setPackagingDataStr(String packagingDataStr) {
60          this.packagingDataStr = packagingDataStr;
61      }
62      
63      @Override
64      public int hashCode() {
65          final int prime = 31;
66          int result = super.hashCode();
67          result = prime * result + Objects.hash(debugStr, packagingDataStr, scanPeriodStr, scanStr);
68          return result;
69      }
70  
71      @Override
72      public boolean equals(Object obj) {
73          if (this == obj)
74              return true;
75          if (!super.equals(obj))
76              return false;
77          if (getClass() != obj.getClass())
78              return false;
79          ConfigurationModel other = (ConfigurationModel) obj;
80          return Objects.equals(debugStr, other.debugStr) && Objects.equals(packagingDataStr, other.packagingDataStr)
81                  && Objects.equals(scanPeriodStr, other.scanPeriodStr) && Objects.equals(scanStr, other.scanStr);
82      }
83  
84  }