1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.codehaus.mojo.cobertura.configuration;
21
22 import java.util.HashSet;
23 import java.util.Set;
24
25
26
27
28
29
30 public class ConfigCheck
31 {
32 private String branchRate;
33
34 private boolean haltOnFailure = true;
35
36 private String lineRate;
37
38 private Set<Regex> regexes = new HashSet<Regex>();
39
40 private String totalBranchRate;
41
42 private String totalLineRate;
43
44 private String packageBranchRate;
45
46 private String packageLineRate;
47
48
49
50
51 private String maxmem;
52
53
54
55
56
57
58 public void addRegex( Regex regex )
59 {
60 this.regexes.add( regex );
61 }
62
63
64
65
66
67
68 public Regex createRegex()
69 {
70 Regex regex = new Regex();
71 this.regexes.add( regex );
72 return regex;
73 }
74
75
76
77
78 public String getBranchRate()
79 {
80 return branchRate;
81 }
82
83
84
85
86 public String getLineRate()
87 {
88 return lineRate;
89 }
90
91
92
93
94 public Set<Regex> getRegexes()
95 {
96 return regexes;
97 }
98
99
100
101
102 public String getTotalBranchRate()
103 {
104 return totalBranchRate;
105 }
106
107
108
109
110 public String getTotalLineRate()
111 {
112 return totalLineRate;
113 }
114
115
116
117
118 public boolean isHaltOnFailure()
119 {
120 return haltOnFailure;
121 }
122
123
124
125
126 public void setBranchRate( String branchRate )
127 {
128 this.branchRate = branchRate;
129 }
130
131
132
133
134 public void setHaltOnFailure( boolean haltOnFailure )
135 {
136 this.haltOnFailure = haltOnFailure;
137 }
138
139
140
141
142 public void setLineRate( String lineRate )
143 {
144 this.lineRate = lineRate;
145 }
146
147
148
149
150 public void setRegexes( Set<Regex> regexes )
151 {
152 this.regexes = new HashSet<Regex>( regexes );
153 }
154
155
156
157
158 public void setTotalBranchRate( String totalBranchRate )
159 {
160 this.totalBranchRate = totalBranchRate;
161 }
162
163
164
165
166 public void setTotalLineRate( String totalLineRate )
167 {
168 this.totalLineRate = totalLineRate;
169 }
170
171
172
173
174 public String getPackageBranchRate()
175 {
176 return packageBranchRate;
177 }
178
179
180
181
182 public String getPackageLineRate()
183 {
184 return packageLineRate;
185 }
186
187
188
189
190
191
192 public String getMaxmem()
193 {
194 return maxmem;
195 }
196
197
198
199
200
201
202
203
204 public void setMaxmem( String maxmem )
205 {
206 this.maxmem = maxmem;
207 }
208 }