1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package jalview.schemabinding.version2.descriptors; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
import jalview.schemabinding.version2.JGroup; |
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
@version |
20 |
|
|
|
|
| 75.7% |
Uncovered Elements: 154 (635) |
Complexity: 135 |
Complexity Density: 0.28 |
|
21 |
|
public class JGroupDescriptor extends |
22 |
|
org.exolab.castor.xml.util.XMLClassDescriptorImpl |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private boolean _elementDefinition; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private java.lang.String _nsPrefix; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private java.lang.String _nsURI; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
private java.lang.String _xmlName; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (243) |
Complexity: 1 |
Complexity Density: 0 |
|
53 |
86 |
public JGroupDescriptor()... |
54 |
|
{ |
55 |
86 |
super(); |
56 |
86 |
_nsURI = "www.jalview.org"; |
57 |
86 |
_xmlName = "JGroup"; |
58 |
86 |
_elementDefinition = true; |
59 |
|
|
60 |
|
|
61 |
86 |
setCompositorAsSequence(); |
62 |
86 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; |
63 |
86 |
org.exolab.castor.mapping.FieldHandler handler = null; |
64 |
86 |
org.exolab.castor.xml.FieldValidator fieldValidator = null; |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
69 |
|
java.lang.Integer.TYPE, "_start", "start", |
70 |
|
org.exolab.castor.xml.NodeType.Attribute); |
71 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
72 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
73 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
74 |
|
throws IllegalStateException |
75 |
|
{ |
76 |
24 |
JGroup target = (JGroup) object; |
77 |
24 |
if (!target.hasStart()) |
78 |
|
{ |
79 |
0 |
return null; |
80 |
|
} |
81 |
24 |
return new java.lang.Integer(target.getStart()); |
82 |
|
} |
83 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
84 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
85 |
|
throws IllegalStateException, IllegalArgumentException |
86 |
|
{ |
87 |
62 |
try |
88 |
|
{ |
89 |
62 |
JGroup target = (JGroup) object; |
90 |
|
|
91 |
62 |
if (value == null) |
92 |
|
{ |
93 |
0 |
target.deleteStart(); |
94 |
0 |
return; |
95 |
|
} |
96 |
62 |
target.setStart(((java.lang.Integer) value).intValue()); |
97 |
|
} catch (java.lang.Exception ex) |
98 |
|
{ |
99 |
0 |
throw new IllegalStateException(ex.toString()); |
100 |
|
} |
101 |
|
} |
102 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
104 |
|
{ |
105 |
0 |
return null; |
106 |
|
} |
107 |
|
}; |
108 |
86 |
desc.setHandler(handler); |
109 |
86 |
desc.setMultivalued(false); |
110 |
86 |
addFieldDescriptor(desc); |
111 |
|
|
112 |
|
|
113 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
114 |
|
{ |
115 |
86 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
116 |
86 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
117 |
86 |
fieldValidator.setValidator(typeValidator); |
118 |
86 |
typeValidator.setMinInclusive(-2147483648); |
119 |
86 |
typeValidator.setMaxInclusive(2147483647); |
120 |
|
} |
121 |
86 |
desc.setValidator(fieldValidator); |
122 |
|
|
123 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
124 |
|
java.lang.Integer.TYPE, "_end", "end", |
125 |
|
org.exolab.castor.xml.NodeType.Attribute); |
126 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
127 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
128 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
129 |
|
throws IllegalStateException |
130 |
|
{ |
131 |
24 |
JGroup target = (JGroup) object; |
132 |
24 |
if (!target.hasEnd()) |
133 |
|
{ |
134 |
0 |
return null; |
135 |
|
} |
136 |
24 |
return new java.lang.Integer(target.getEnd()); |
137 |
|
} |
138 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
139 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
140 |
|
throws IllegalStateException, IllegalArgumentException |
141 |
|
{ |
142 |
62 |
try |
143 |
|
{ |
144 |
62 |
JGroup target = (JGroup) object; |
145 |
|
|
146 |
62 |
if (value == null) |
147 |
|
{ |
148 |
0 |
target.deleteEnd(); |
149 |
0 |
return; |
150 |
|
} |
151 |
62 |
target.setEnd(((java.lang.Integer) value).intValue()); |
152 |
|
} catch (java.lang.Exception ex) |
153 |
|
{ |
154 |
0 |
throw new IllegalStateException(ex.toString()); |
155 |
|
} |
156 |
|
} |
157 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
158 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
159 |
|
{ |
160 |
0 |
return null; |
161 |
|
} |
162 |
|
}; |
163 |
86 |
desc.setHandler(handler); |
164 |
86 |
desc.setMultivalued(false); |
165 |
86 |
addFieldDescriptor(desc); |
166 |
|
|
167 |
|
|
168 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
169 |
|
{ |
170 |
86 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
171 |
86 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
172 |
86 |
fieldValidator.setValidator(typeValidator); |
173 |
86 |
typeValidator.setMinInclusive(-2147483648); |
174 |
86 |
typeValidator.setMaxInclusive(2147483647); |
175 |
|
} |
176 |
86 |
desc.setValidator(fieldValidator); |
177 |
|
|
178 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
179 |
|
java.lang.String.class, "_name", "name", |
180 |
|
org.exolab.castor.xml.NodeType.Attribute); |
181 |
86 |
desc.setImmutable(true); |
182 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
183 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
184 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
185 |
|
throws IllegalStateException |
186 |
|
{ |
187 |
24 |
JGroup target = (JGroup) object; |
188 |
24 |
return target.getName(); |
189 |
|
} |
190 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
191 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
192 |
|
throws IllegalStateException, IllegalArgumentException |
193 |
|
{ |
194 |
62 |
try |
195 |
|
{ |
196 |
62 |
JGroup target = (JGroup) object; |
197 |
62 |
target.setName((java.lang.String) value); |
198 |
|
} catch (java.lang.Exception ex) |
199 |
|
{ |
200 |
0 |
throw new IllegalStateException(ex.toString()); |
201 |
|
} |
202 |
|
} |
203 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
204 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
205 |
|
{ |
206 |
0 |
return null; |
207 |
|
} |
208 |
|
}; |
209 |
86 |
desc.setHandler(handler); |
210 |
86 |
desc.setMultivalued(false); |
211 |
86 |
addFieldDescriptor(desc); |
212 |
|
|
213 |
|
|
214 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
215 |
|
{ |
216 |
86 |
org.exolab.castor.xml.validators.StringValidator typeValidator; |
217 |
86 |
typeValidator = new org.exolab.castor.xml.validators.StringValidator(); |
218 |
86 |
fieldValidator.setValidator(typeValidator); |
219 |
86 |
typeValidator.setWhiteSpace("preserve"); |
220 |
|
} |
221 |
86 |
desc.setValidator(fieldValidator); |
222 |
|
|
223 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
224 |
|
java.lang.String.class, "_colour", "colour", |
225 |
|
org.exolab.castor.xml.NodeType.Attribute); |
226 |
86 |
desc.setImmutable(true); |
227 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
228 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
229 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
230 |
|
throws IllegalStateException |
231 |
|
{ |
232 |
24 |
JGroup target = (JGroup) object; |
233 |
24 |
return target.getColour(); |
234 |
|
} |
235 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
236 |
26 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
237 |
|
throws IllegalStateException, IllegalArgumentException |
238 |
|
{ |
239 |
26 |
try |
240 |
|
{ |
241 |
26 |
JGroup target = (JGroup) object; |
242 |
26 |
target.setColour((java.lang.String) value); |
243 |
|
} catch (java.lang.Exception ex) |
244 |
|
{ |
245 |
0 |
throw new IllegalStateException(ex.toString()); |
246 |
|
} |
247 |
|
} |
248 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
249 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
250 |
|
{ |
251 |
0 |
return null; |
252 |
|
} |
253 |
|
}; |
254 |
86 |
desc.setHandler(handler); |
255 |
86 |
desc.setMultivalued(false); |
256 |
86 |
addFieldDescriptor(desc); |
257 |
|
|
258 |
|
|
259 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
260 |
|
{ |
261 |
86 |
org.exolab.castor.xml.validators.StringValidator typeValidator; |
262 |
86 |
typeValidator = new org.exolab.castor.xml.validators.StringValidator(); |
263 |
86 |
fieldValidator.setValidator(typeValidator); |
264 |
86 |
typeValidator.setWhiteSpace("preserve"); |
265 |
|
} |
266 |
86 |
desc.setValidator(fieldValidator); |
267 |
|
|
268 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
269 |
|
java.lang.Integer.TYPE, "_consThreshold", "consThreshold", |
270 |
|
org.exolab.castor.xml.NodeType.Attribute); |
271 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
272 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
273 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
274 |
|
throws IllegalStateException |
275 |
|
{ |
276 |
24 |
JGroup target = (JGroup) object; |
277 |
24 |
if (!target.hasConsThreshold()) |
278 |
|
{ |
279 |
22 |
return null; |
280 |
|
} |
281 |
2 |
return new java.lang.Integer(target.getConsThreshold()); |
282 |
|
} |
283 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
284 |
1 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
285 |
|
throws IllegalStateException, IllegalArgumentException |
286 |
|
{ |
287 |
1 |
try |
288 |
|
{ |
289 |
1 |
JGroup target = (JGroup) object; |
290 |
|
|
291 |
1 |
if (value == null) |
292 |
|
{ |
293 |
0 |
target.deleteConsThreshold(); |
294 |
0 |
return; |
295 |
|
} |
296 |
1 |
target.setConsThreshold(((java.lang.Integer) value).intValue()); |
297 |
|
} catch (java.lang.Exception ex) |
298 |
|
{ |
299 |
0 |
throw new IllegalStateException(ex.toString()); |
300 |
|
} |
301 |
|
} |
302 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
303 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
304 |
|
{ |
305 |
0 |
return null; |
306 |
|
} |
307 |
|
}; |
308 |
86 |
desc.setHandler(handler); |
309 |
86 |
desc.setMultivalued(false); |
310 |
86 |
addFieldDescriptor(desc); |
311 |
|
|
312 |
|
|
313 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
314 |
|
{ |
315 |
86 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
316 |
86 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
317 |
86 |
fieldValidator.setValidator(typeValidator); |
318 |
86 |
typeValidator.setMinInclusive(-2147483648); |
319 |
86 |
typeValidator.setMaxInclusive(2147483647); |
320 |
|
} |
321 |
86 |
desc.setValidator(fieldValidator); |
322 |
|
|
323 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
324 |
|
java.lang.Integer.TYPE, "_pidThreshold", "pidThreshold", |
325 |
|
org.exolab.castor.xml.NodeType.Attribute); |
326 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
327 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
328 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
329 |
|
throws IllegalStateException |
330 |
|
{ |
331 |
24 |
JGroup target = (JGroup) object; |
332 |
24 |
if (!target.hasPidThreshold()) |
333 |
|
{ |
334 |
12 |
return null; |
335 |
|
} |
336 |
12 |
return new java.lang.Integer(target.getPidThreshold()); |
337 |
|
} |
338 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
339 |
26 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
340 |
|
throws IllegalStateException, IllegalArgumentException |
341 |
|
{ |
342 |
26 |
try |
343 |
|
{ |
344 |
26 |
JGroup target = (JGroup) object; |
345 |
|
|
346 |
26 |
if (value == null) |
347 |
|
{ |
348 |
0 |
target.deletePidThreshold(); |
349 |
0 |
return; |
350 |
|
} |
351 |
26 |
target.setPidThreshold(((java.lang.Integer) value).intValue()); |
352 |
|
} catch (java.lang.Exception ex) |
353 |
|
{ |
354 |
0 |
throw new IllegalStateException(ex.toString()); |
355 |
|
} |
356 |
|
} |
357 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
358 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
359 |
|
{ |
360 |
0 |
return null; |
361 |
|
} |
362 |
|
}; |
363 |
86 |
desc.setHandler(handler); |
364 |
86 |
desc.setMultivalued(false); |
365 |
86 |
addFieldDescriptor(desc); |
366 |
|
|
367 |
|
|
368 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
369 |
|
{ |
370 |
86 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
371 |
86 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
372 |
86 |
fieldValidator.setValidator(typeValidator); |
373 |
86 |
typeValidator.setMinInclusive(-2147483648); |
374 |
86 |
typeValidator.setMaxInclusive(2147483647); |
375 |
|
} |
376 |
86 |
desc.setValidator(fieldValidator); |
377 |
|
|
378 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
379 |
|
java.lang.Integer.TYPE, "_outlineColour", "outlineColour", |
380 |
|
org.exolab.castor.xml.NodeType.Attribute); |
381 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
382 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
383 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
384 |
|
throws IllegalStateException |
385 |
|
{ |
386 |
24 |
JGroup target = (JGroup) object; |
387 |
24 |
if (!target.hasOutlineColour()) |
388 |
|
{ |
389 |
0 |
return null; |
390 |
|
} |
391 |
24 |
return new java.lang.Integer(target.getOutlineColour()); |
392 |
|
} |
393 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
394 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
395 |
|
throws IllegalStateException, IllegalArgumentException |
396 |
|
{ |
397 |
62 |
try |
398 |
|
{ |
399 |
62 |
JGroup target = (JGroup) object; |
400 |
|
|
401 |
62 |
if (value == null) |
402 |
|
{ |
403 |
0 |
target.deleteOutlineColour(); |
404 |
0 |
return; |
405 |
|
} |
406 |
62 |
target.setOutlineColour(((java.lang.Integer) value).intValue()); |
407 |
|
} catch (java.lang.Exception ex) |
408 |
|
{ |
409 |
0 |
throw new IllegalStateException(ex.toString()); |
410 |
|
} |
411 |
|
} |
412 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
413 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
414 |
|
{ |
415 |
0 |
return null; |
416 |
|
} |
417 |
|
}; |
418 |
86 |
desc.setHandler(handler); |
419 |
86 |
desc.setMultivalued(false); |
420 |
86 |
addFieldDescriptor(desc); |
421 |
|
|
422 |
|
|
423 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
424 |
|
{ |
425 |
86 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
426 |
86 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
427 |
86 |
fieldValidator.setValidator(typeValidator); |
428 |
86 |
typeValidator.setMinInclusive(-2147483648); |
429 |
86 |
typeValidator.setMaxInclusive(2147483647); |
430 |
|
} |
431 |
86 |
desc.setValidator(fieldValidator); |
432 |
|
|
433 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
434 |
|
java.lang.Boolean.TYPE, "_displayBoxes", "displayBoxes", |
435 |
|
org.exolab.castor.xml.NodeType.Attribute); |
436 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
437 |
|
{ |
|
|
| 62.5% |
Uncovered Elements: 3 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
438 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
439 |
|
throws IllegalStateException |
440 |
|
{ |
441 |
24 |
JGroup target = (JGroup) object; |
442 |
24 |
if (!target.hasDisplayBoxes()) |
443 |
|
{ |
444 |
0 |
return null; |
445 |
|
} |
446 |
24 |
return (target.getDisplayBoxes() ? java.lang.Boolean.TRUE |
447 |
|
: java.lang.Boolean.FALSE); |
448 |
|
} |
449 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
450 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
451 |
|
throws IllegalStateException, IllegalArgumentException |
452 |
|
{ |
453 |
62 |
try |
454 |
|
{ |
455 |
62 |
JGroup target = (JGroup) object; |
456 |
|
|
457 |
62 |
if (value == null) |
458 |
|
{ |
459 |
0 |
target.deleteDisplayBoxes(); |
460 |
0 |
return; |
461 |
|
} |
462 |
62 |
target.setDisplayBoxes(((java.lang.Boolean) value).booleanValue()); |
463 |
|
} catch (java.lang.Exception ex) |
464 |
|
{ |
465 |
0 |
throw new IllegalStateException(ex.toString()); |
466 |
|
} |
467 |
|
} |
468 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
469 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
470 |
|
{ |
471 |
0 |
return null; |
472 |
|
} |
473 |
|
}; |
474 |
86 |
desc.setHandler(handler); |
475 |
86 |
desc.setMultivalued(false); |
476 |
86 |
addFieldDescriptor(desc); |
477 |
|
|
478 |
|
|
479 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
480 |
|
{ |
481 |
86 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
482 |
86 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
483 |
86 |
fieldValidator.setValidator(typeValidator); |
484 |
|
} |
485 |
86 |
desc.setValidator(fieldValidator); |
486 |
|
|
487 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
488 |
|
java.lang.Boolean.TYPE, "_displayText", "displayText", |
489 |
|
org.exolab.castor.xml.NodeType.Attribute); |
490 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
491 |
|
{ |
|
|
| 62.5% |
Uncovered Elements: 3 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
492 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
493 |
|
throws IllegalStateException |
494 |
|
{ |
495 |
24 |
JGroup target = (JGroup) object; |
496 |
24 |
if (!target.hasDisplayText()) |
497 |
|
{ |
498 |
0 |
return null; |
499 |
|
} |
500 |
24 |
return (target.getDisplayText() ? java.lang.Boolean.TRUE |
501 |
|
: java.lang.Boolean.FALSE); |
502 |
|
} |
503 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
504 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
505 |
|
throws IllegalStateException, IllegalArgumentException |
506 |
|
{ |
507 |
62 |
try |
508 |
|
{ |
509 |
62 |
JGroup target = (JGroup) object; |
510 |
|
|
511 |
62 |
if (value == null) |
512 |
|
{ |
513 |
0 |
target.deleteDisplayText(); |
514 |
0 |
return; |
515 |
|
} |
516 |
62 |
target.setDisplayText(((java.lang.Boolean) value).booleanValue()); |
517 |
|
} catch (java.lang.Exception ex) |
518 |
|
{ |
519 |
0 |
throw new IllegalStateException(ex.toString()); |
520 |
|
} |
521 |
|
} |
522 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
523 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
524 |
|
{ |
525 |
0 |
return null; |
526 |
|
} |
527 |
|
}; |
528 |
86 |
desc.setHandler(handler); |
529 |
86 |
desc.setMultivalued(false); |
530 |
86 |
addFieldDescriptor(desc); |
531 |
|
|
532 |
|
|
533 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
534 |
|
{ |
535 |
86 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
536 |
86 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
537 |
86 |
fieldValidator.setValidator(typeValidator); |
538 |
|
} |
539 |
86 |
desc.setValidator(fieldValidator); |
540 |
|
|
541 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
542 |
|
java.lang.Boolean.TYPE, "_colourText", "colourText", |
543 |
|
org.exolab.castor.xml.NodeType.Attribute); |
544 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
545 |
|
{ |
|
|
| 62.5% |
Uncovered Elements: 3 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
546 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
547 |
|
throws IllegalStateException |
548 |
|
{ |
549 |
24 |
JGroup target = (JGroup) object; |
550 |
24 |
if (!target.hasColourText()) |
551 |
|
{ |
552 |
0 |
return null; |
553 |
|
} |
554 |
24 |
return (target.getColourText() ? java.lang.Boolean.TRUE |
555 |
|
: java.lang.Boolean.FALSE); |
556 |
|
} |
557 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
558 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
559 |
|
throws IllegalStateException, IllegalArgumentException |
560 |
|
{ |
561 |
62 |
try |
562 |
|
{ |
563 |
62 |
JGroup target = (JGroup) object; |
564 |
|
|
565 |
62 |
if (value == null) |
566 |
|
{ |
567 |
0 |
target.deleteColourText(); |
568 |
0 |
return; |
569 |
|
} |
570 |
62 |
target.setColourText(((java.lang.Boolean) value).booleanValue()); |
571 |
|
} catch (java.lang.Exception ex) |
572 |
|
{ |
573 |
0 |
throw new IllegalStateException(ex.toString()); |
574 |
|
} |
575 |
|
} |
576 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
577 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
578 |
|
{ |
579 |
0 |
return null; |
580 |
|
} |
581 |
|
}; |
582 |
86 |
desc.setHandler(handler); |
583 |
86 |
desc.setMultivalued(false); |
584 |
86 |
addFieldDescriptor(desc); |
585 |
|
|
586 |
|
|
587 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
588 |
|
{ |
589 |
86 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
590 |
86 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
591 |
86 |
fieldValidator.setValidator(typeValidator); |
592 |
|
} |
593 |
86 |
desc.setValidator(fieldValidator); |
594 |
|
|
595 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
596 |
|
java.lang.Integer.TYPE, "_textCol1", "textCol1", |
597 |
|
org.exolab.castor.xml.NodeType.Attribute); |
598 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
599 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
600 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
601 |
|
throws IllegalStateException |
602 |
|
{ |
603 |
24 |
JGroup target = (JGroup) object; |
604 |
24 |
if (!target.hasTextCol1()) |
605 |
|
{ |
606 |
0 |
return null; |
607 |
|
} |
608 |
24 |
return new java.lang.Integer(target.getTextCol1()); |
609 |
|
} |
610 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
611 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
612 |
|
throws IllegalStateException, IllegalArgumentException |
613 |
|
{ |
614 |
62 |
try |
615 |
|
{ |
616 |
62 |
JGroup target = (JGroup) object; |
617 |
|
|
618 |
62 |
if (value == null) |
619 |
|
{ |
620 |
0 |
target.deleteTextCol1(); |
621 |
0 |
return; |
622 |
|
} |
623 |
62 |
target.setTextCol1(((java.lang.Integer) value).intValue()); |
624 |
|
} catch (java.lang.Exception ex) |
625 |
|
{ |
626 |
0 |
throw new IllegalStateException(ex.toString()); |
627 |
|
} |
628 |
|
} |
629 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
630 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
631 |
|
{ |
632 |
0 |
return null; |
633 |
|
} |
634 |
|
}; |
635 |
86 |
desc.setHandler(handler); |
636 |
86 |
desc.setMultivalued(false); |
637 |
86 |
addFieldDescriptor(desc); |
638 |
|
|
639 |
|
|
640 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
641 |
|
{ |
642 |
86 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
643 |
86 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
644 |
86 |
fieldValidator.setValidator(typeValidator); |
645 |
86 |
typeValidator.setMinInclusive(-2147483648); |
646 |
86 |
typeValidator.setMaxInclusive(2147483647); |
647 |
|
} |
648 |
86 |
desc.setValidator(fieldValidator); |
649 |
|
|
650 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
651 |
|
java.lang.Integer.TYPE, "_textCol2", "textCol2", |
652 |
|
org.exolab.castor.xml.NodeType.Attribute); |
653 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
654 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
655 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
656 |
|
throws IllegalStateException |
657 |
|
{ |
658 |
24 |
JGroup target = (JGroup) object; |
659 |
24 |
if (!target.hasTextCol2()) |
660 |
|
{ |
661 |
0 |
return null; |
662 |
|
} |
663 |
24 |
return new java.lang.Integer(target.getTextCol2()); |
664 |
|
} |
665 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
666 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
667 |
|
throws IllegalStateException, IllegalArgumentException |
668 |
|
{ |
669 |
62 |
try |
670 |
|
{ |
671 |
62 |
JGroup target = (JGroup) object; |
672 |
|
|
673 |
62 |
if (value == null) |
674 |
|
{ |
675 |
0 |
target.deleteTextCol2(); |
676 |
0 |
return; |
677 |
|
} |
678 |
62 |
target.setTextCol2(((java.lang.Integer) value).intValue()); |
679 |
|
} catch (java.lang.Exception ex) |
680 |
|
{ |
681 |
0 |
throw new IllegalStateException(ex.toString()); |
682 |
|
} |
683 |
|
} |
684 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
685 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
686 |
|
{ |
687 |
0 |
return null; |
688 |
|
} |
689 |
|
}; |
690 |
86 |
desc.setHandler(handler); |
691 |
86 |
desc.setMultivalued(false); |
692 |
86 |
addFieldDescriptor(desc); |
693 |
|
|
694 |
|
|
695 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
696 |
|
{ |
697 |
86 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
698 |
86 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
699 |
86 |
fieldValidator.setValidator(typeValidator); |
700 |
86 |
typeValidator.setMinInclusive(-2147483648); |
701 |
86 |
typeValidator.setMaxInclusive(2147483647); |
702 |
|
} |
703 |
86 |
desc.setValidator(fieldValidator); |
704 |
|
|
705 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
706 |
|
java.lang.Integer.TYPE, "_textColThreshold", |
707 |
|
"textColThreshold", org.exolab.castor.xml.NodeType.Attribute); |
708 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
709 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
710 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
711 |
|
throws IllegalStateException |
712 |
|
{ |
713 |
24 |
JGroup target = (JGroup) object; |
714 |
24 |
if (!target.hasTextColThreshold()) |
715 |
|
{ |
716 |
0 |
return null; |
717 |
|
} |
718 |
24 |
return new java.lang.Integer(target.getTextColThreshold()); |
719 |
|
} |
720 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
721 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
722 |
|
throws IllegalStateException, IllegalArgumentException |
723 |
|
{ |
724 |
62 |
try |
725 |
|
{ |
726 |
62 |
JGroup target = (JGroup) object; |
727 |
|
|
728 |
62 |
if (value == null) |
729 |
|
{ |
730 |
0 |
target.deleteTextColThreshold(); |
731 |
0 |
return; |
732 |
|
} |
733 |
62 |
target.setTextColThreshold(((java.lang.Integer) value).intValue()); |
734 |
|
} catch (java.lang.Exception ex) |
735 |
|
{ |
736 |
0 |
throw new IllegalStateException(ex.toString()); |
737 |
|
} |
738 |
|
} |
739 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
740 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
741 |
|
{ |
742 |
0 |
return null; |
743 |
|
} |
744 |
|
}; |
745 |
86 |
desc.setHandler(handler); |
746 |
86 |
desc.setMultivalued(false); |
747 |
86 |
addFieldDescriptor(desc); |
748 |
|
|
749 |
|
|
750 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
751 |
|
{ |
752 |
86 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
753 |
86 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
754 |
86 |
fieldValidator.setValidator(typeValidator); |
755 |
86 |
typeValidator.setMinInclusive(-2147483648); |
756 |
86 |
typeValidator.setMaxInclusive(2147483647); |
757 |
|
} |
758 |
86 |
desc.setValidator(fieldValidator); |
759 |
|
|
760 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
761 |
|
java.lang.Boolean.TYPE, "_showUnconserved", "showUnconserved", |
762 |
|
org.exolab.castor.xml.NodeType.Attribute); |
763 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
764 |
|
{ |
|
|
| 62.5% |
Uncovered Elements: 3 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
765 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
766 |
|
throws IllegalStateException |
767 |
|
{ |
768 |
24 |
JGroup target = (JGroup) object; |
769 |
24 |
if (!target.hasShowUnconserved()) |
770 |
|
{ |
771 |
0 |
return null; |
772 |
|
} |
773 |
24 |
return (target.getShowUnconserved() ? java.lang.Boolean.TRUE |
774 |
|
: java.lang.Boolean.FALSE); |
775 |
|
} |
776 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
777 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
778 |
|
throws IllegalStateException, IllegalArgumentException |
779 |
|
{ |
780 |
62 |
try |
781 |
|
{ |
782 |
62 |
JGroup target = (JGroup) object; |
783 |
|
|
784 |
62 |
if (value == null) |
785 |
|
{ |
786 |
0 |
target.deleteShowUnconserved(); |
787 |
0 |
return; |
788 |
|
} |
789 |
62 |
target.setShowUnconserved(((java.lang.Boolean) value) |
790 |
|
.booleanValue()); |
791 |
|
} catch (java.lang.Exception ex) |
792 |
|
{ |
793 |
0 |
throw new IllegalStateException(ex.toString()); |
794 |
|
} |
795 |
|
} |
796 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
797 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
798 |
|
{ |
799 |
0 |
return null; |
800 |
|
} |
801 |
|
}; |
802 |
86 |
desc.setHandler(handler); |
803 |
86 |
desc.setMultivalued(false); |
804 |
86 |
addFieldDescriptor(desc); |
805 |
|
|
806 |
|
|
807 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
808 |
|
{ |
809 |
86 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
810 |
86 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
811 |
86 |
fieldValidator.setValidator(typeValidator); |
812 |
|
} |
813 |
86 |
desc.setValidator(fieldValidator); |
814 |
|
|
815 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
816 |
|
java.lang.Boolean.TYPE, "_ignoreGapsinConsensus", |
817 |
|
"ignoreGapsinConsensus", |
818 |
|
org.exolab.castor.xml.NodeType.Attribute); |
819 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
820 |
|
{ |
|
|
| 62.5% |
Uncovered Elements: 3 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
821 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
822 |
|
throws IllegalStateException |
823 |
|
{ |
824 |
24 |
JGroup target = (JGroup) object; |
825 |
24 |
if (!target.hasIgnoreGapsinConsensus()) |
826 |
|
{ |
827 |
0 |
return null; |
828 |
|
} |
829 |
24 |
return (target.getIgnoreGapsinConsensus() ? java.lang.Boolean.TRUE |
830 |
|
: java.lang.Boolean.FALSE); |
831 |
|
} |
832 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
833 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
834 |
|
throws IllegalStateException, IllegalArgumentException |
835 |
|
{ |
836 |
62 |
try |
837 |
|
{ |
838 |
62 |
JGroup target = (JGroup) object; |
839 |
|
|
840 |
62 |
if (value == null) |
841 |
|
{ |
842 |
0 |
target.deleteIgnoreGapsinConsensus(); |
843 |
0 |
return; |
844 |
|
} |
845 |
62 |
target.setIgnoreGapsinConsensus(((java.lang.Boolean) value) |
846 |
|
.booleanValue()); |
847 |
|
} catch (java.lang.Exception ex) |
848 |
|
{ |
849 |
0 |
throw new IllegalStateException(ex.toString()); |
850 |
|
} |
851 |
|
} |
852 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
853 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
854 |
|
{ |
855 |
0 |
return null; |
856 |
|
} |
857 |
|
}; |
858 |
86 |
desc.setHandler(handler); |
859 |
86 |
desc.setMultivalued(false); |
860 |
86 |
addFieldDescriptor(desc); |
861 |
|
|
862 |
|
|
863 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
864 |
|
{ |
865 |
86 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
866 |
86 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
867 |
86 |
fieldValidator.setValidator(typeValidator); |
868 |
|
} |
869 |
86 |
desc.setValidator(fieldValidator); |
870 |
|
|
871 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
872 |
|
java.lang.Boolean.TYPE, "_showConsensusHistogram", |
873 |
|
"showConsensusHistogram", |
874 |
|
org.exolab.castor.xml.NodeType.Attribute); |
875 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
876 |
|
{ |
|
|
| 75% |
Uncovered Elements: 2 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
877 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
878 |
|
throws IllegalStateException |
879 |
|
{ |
880 |
24 |
JGroup target = (JGroup) object; |
881 |
24 |
if (!target.hasShowConsensusHistogram()) |
882 |
|
{ |
883 |
0 |
return null; |
884 |
|
} |
885 |
24 |
return (target.getShowConsensusHistogram() ? java.lang.Boolean.TRUE |
886 |
|
: java.lang.Boolean.FALSE); |
887 |
|
} |
888 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
889 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
890 |
|
throws IllegalStateException, IllegalArgumentException |
891 |
|
{ |
892 |
62 |
try |
893 |
|
{ |
894 |
62 |
JGroup target = (JGroup) object; |
895 |
|
|
896 |
62 |
if (value == null) |
897 |
|
{ |
898 |
0 |
target.deleteShowConsensusHistogram(); |
899 |
0 |
return; |
900 |
|
} |
901 |
62 |
target.setShowConsensusHistogram(((java.lang.Boolean) value) |
902 |
|
.booleanValue()); |
903 |
|
} catch (java.lang.Exception ex) |
904 |
|
{ |
905 |
0 |
throw new IllegalStateException(ex.toString()); |
906 |
|
} |
907 |
|
} |
908 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
909 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
910 |
|
{ |
911 |
0 |
return null; |
912 |
|
} |
913 |
|
}; |
914 |
86 |
desc.setHandler(handler); |
915 |
86 |
desc.setMultivalued(false); |
916 |
86 |
addFieldDescriptor(desc); |
917 |
|
|
918 |
|
|
919 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
920 |
|
{ |
921 |
86 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
922 |
86 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
923 |
86 |
fieldValidator.setValidator(typeValidator); |
924 |
|
} |
925 |
86 |
desc.setValidator(fieldValidator); |
926 |
|
|
927 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
928 |
|
java.lang.Boolean.TYPE, "_showSequenceLogo", |
929 |
|
"showSequenceLogo", org.exolab.castor.xml.NodeType.Attribute); |
930 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
931 |
|
{ |
|
|
| 75% |
Uncovered Elements: 2 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
932 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
933 |
|
throws IllegalStateException |
934 |
|
{ |
935 |
24 |
JGroup target = (JGroup) object; |
936 |
24 |
if (!target.hasShowSequenceLogo()) |
937 |
|
{ |
938 |
0 |
return null; |
939 |
|
} |
940 |
24 |
return (target.getShowSequenceLogo() ? java.lang.Boolean.TRUE |
941 |
|
: java.lang.Boolean.FALSE); |
942 |
|
} |
943 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
944 |
62 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
945 |
|
throws IllegalStateException, IllegalArgumentException |
946 |
|
{ |
947 |
62 |
try |
948 |
|
{ |
949 |
62 |
JGroup target = (JGroup) object; |
950 |
|
|
951 |
62 |
if (value == null) |
952 |
|
{ |
953 |
0 |
target.deleteShowSequenceLogo(); |
954 |
0 |
return; |
955 |
|
} |
956 |
62 |
target.setShowSequenceLogo(((java.lang.Boolean) value) |
957 |
|
.booleanValue()); |
958 |
|
} catch (java.lang.Exception ex) |
959 |
|
{ |
960 |
0 |
throw new IllegalStateException(ex.toString()); |
961 |
|
} |
962 |
|
} |
963 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
964 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
965 |
|
{ |
966 |
0 |
return null; |
967 |
|
} |
968 |
|
}; |
969 |
86 |
desc.setHandler(handler); |
970 |
86 |
desc.setMultivalued(false); |
971 |
86 |
addFieldDescriptor(desc); |
972 |
|
|
973 |
|
|
974 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
975 |
|
{ |
976 |
86 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
977 |
86 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
978 |
86 |
fieldValidator.setValidator(typeValidator); |
979 |
|
} |
980 |
86 |
desc.setValidator(fieldValidator); |
981 |
|
|
982 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
983 |
|
java.lang.Boolean.TYPE, "_normaliseSequenceLogo", |
984 |
|
"normaliseSequenceLogo", |
985 |
|
org.exolab.castor.xml.NodeType.Attribute); |
986 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
987 |
|
{ |
|
|
| 62.5% |
Uncovered Elements: 3 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
988 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
989 |
|
throws IllegalStateException |
990 |
|
{ |
991 |
24 |
JGroup target = (JGroup) object; |
992 |
24 |
if (!target.hasNormaliseSequenceLogo()) |
993 |
|
{ |
994 |
0 |
return null; |
995 |
|
} |
996 |
24 |
return (target.getNormaliseSequenceLogo() ? java.lang.Boolean.TRUE |
997 |
|
: java.lang.Boolean.FALSE); |
998 |
|
} |
999 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
1000 |
12 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
1001 |
|
throws IllegalStateException, IllegalArgumentException |
1002 |
|
{ |
1003 |
12 |
try |
1004 |
|
{ |
1005 |
12 |
JGroup target = (JGroup) object; |
1006 |
|
|
1007 |
12 |
if (value == null) |
1008 |
|
{ |
1009 |
0 |
target.deleteNormaliseSequenceLogo(); |
1010 |
0 |
return; |
1011 |
|
} |
1012 |
12 |
target.setNormaliseSequenceLogo(((java.lang.Boolean) value) |
1013 |
|
.booleanValue()); |
1014 |
|
} catch (java.lang.Exception ex) |
1015 |
|
{ |
1016 |
0 |
throw new IllegalStateException(ex.toString()); |
1017 |
|
} |
1018 |
|
} |
1019 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1020 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
1021 |
|
{ |
1022 |
0 |
return null; |
1023 |
|
} |
1024 |
|
}; |
1025 |
86 |
desc.setHandler(handler); |
1026 |
86 |
desc.setMultivalued(false); |
1027 |
86 |
addFieldDescriptor(desc); |
1028 |
|
|
1029 |
|
|
1030 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
1031 |
|
{ |
1032 |
86 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
1033 |
86 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
1034 |
86 |
fieldValidator.setValidator(typeValidator); |
1035 |
|
} |
1036 |
86 |
desc.setValidator(fieldValidator); |
1037 |
|
|
1038 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
1039 |
|
java.lang.String.class, "_id", "id", |
1040 |
|
org.exolab.castor.xml.NodeType.Attribute); |
1041 |
86 |
desc.setImmutable(true); |
1042 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
1043 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
1044 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
1045 |
|
throws IllegalStateException |
1046 |
|
{ |
1047 |
24 |
JGroup target = (JGroup) object; |
1048 |
24 |
return target.getId(); |
1049 |
|
} |
1050 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
1051 |
36 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
1052 |
|
throws IllegalStateException, IllegalArgumentException |
1053 |
|
{ |
1054 |
36 |
try |
1055 |
|
{ |
1056 |
36 |
JGroup target = (JGroup) object; |
1057 |
36 |
target.setId((java.lang.String) value); |
1058 |
|
} catch (java.lang.Exception ex) |
1059 |
|
{ |
1060 |
0 |
throw new IllegalStateException(ex.toString()); |
1061 |
|
} |
1062 |
|
} |
1063 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1064 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
1065 |
|
{ |
1066 |
0 |
return null; |
1067 |
|
} |
1068 |
|
}; |
1069 |
86 |
desc.setHandler(handler); |
1070 |
86 |
desc.setMultivalued(false); |
1071 |
86 |
addFieldDescriptor(desc); |
1072 |
|
|
1073 |
|
|
1074 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
1075 |
|
{ |
1076 |
86 |
org.exolab.castor.xml.validators.StringValidator typeValidator; |
1077 |
86 |
typeValidator = new org.exolab.castor.xml.validators.StringValidator(); |
1078 |
86 |
fieldValidator.setValidator(typeValidator); |
1079 |
86 |
typeValidator.setWhiteSpace("preserve"); |
1080 |
|
} |
1081 |
86 |
desc.setValidator(fieldValidator); |
1082 |
|
|
1083 |
|
|
1084 |
|
|
1085 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
1086 |
|
java.lang.String.class, "_seqList", "seq", |
1087 |
|
org.exolab.castor.xml.NodeType.Element); |
1088 |
86 |
desc.setImmutable(true); |
1089 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
1090 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
1091 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
1092 |
|
throws IllegalStateException |
1093 |
|
{ |
1094 |
24 |
JGroup target = (JGroup) object; |
1095 |
24 |
return target.getSeq(); |
1096 |
|
} |
1097 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
1098 |
483 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
1099 |
|
throws IllegalStateException, IllegalArgumentException |
1100 |
|
{ |
1101 |
483 |
try |
1102 |
|
{ |
1103 |
483 |
JGroup target = (JGroup) object; |
1104 |
483 |
target.addSeq((java.lang.String) value); |
1105 |
|
} catch (java.lang.Exception ex) |
1106 |
|
{ |
1107 |
0 |
throw new IllegalStateException(ex.toString()); |
1108 |
|
} |
1109 |
|
} |
1110 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
1111 |
0 |
public void resetValue(Object object) throws IllegalStateException,... |
1112 |
|
IllegalArgumentException |
1113 |
|
{ |
1114 |
0 |
try |
1115 |
|
{ |
1116 |
0 |
JGroup target = (JGroup) object; |
1117 |
0 |
target.removeAllSeq(); |
1118 |
|
} catch (java.lang.Exception ex) |
1119 |
|
{ |
1120 |
0 |
throw new IllegalStateException(ex.toString()); |
1121 |
|
} |
1122 |
|
} |
1123 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1124 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
1125 |
|
{ |
1126 |
0 |
return null; |
1127 |
|
} |
1128 |
|
}; |
1129 |
86 |
desc.setHandler(handler); |
1130 |
86 |
desc.setNameSpaceURI("www.jalview.org"); |
1131 |
86 |
desc.setRequired(true); |
1132 |
86 |
desc.setMultivalued(true); |
1133 |
86 |
addFieldDescriptor(desc); |
1134 |
|
|
1135 |
|
|
1136 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
1137 |
86 |
fieldValidator.setMinOccurs(1); |
1138 |
|
{ |
1139 |
86 |
org.exolab.castor.xml.validators.StringValidator typeValidator; |
1140 |
86 |
typeValidator = new org.exolab.castor.xml.validators.StringValidator(); |
1141 |
86 |
fieldValidator.setValidator(typeValidator); |
1142 |
86 |
typeValidator.setWhiteSpace("preserve"); |
1143 |
|
} |
1144 |
86 |
desc.setValidator(fieldValidator); |
1145 |
|
|
1146 |
86 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
1147 |
|
jalview.schemabinding.version2.AnnotationColours.class, |
1148 |
|
"_annotationColours", "annotationColours", |
1149 |
|
org.exolab.castor.xml.NodeType.Element); |
1150 |
86 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
1151 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
1152 |
24 |
public java.lang.Object getValue(java.lang.Object object)... |
1153 |
|
throws IllegalStateException |
1154 |
|
{ |
1155 |
24 |
JGroup target = (JGroup) object; |
1156 |
24 |
return target.getAnnotationColours(); |
1157 |
|
} |
1158 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
1159 |
1 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
1160 |
|
throws IllegalStateException, IllegalArgumentException |
1161 |
|
{ |
1162 |
1 |
try |
1163 |
|
{ |
1164 |
1 |
JGroup target = (JGroup) object; |
1165 |
1 |
target.setAnnotationColours((jalview.schemabinding.version2.AnnotationColours) value); |
1166 |
|
} catch (java.lang.Exception ex) |
1167 |
|
{ |
1168 |
0 |
throw new IllegalStateException(ex.toString()); |
1169 |
|
} |
1170 |
|
} |
1171 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1172 |
1 |
public java.lang.Object newInstance(java.lang.Object parent)... |
1173 |
|
{ |
1174 |
1 |
return new jalview.schemabinding.version2.AnnotationColours(); |
1175 |
|
} |
1176 |
|
}; |
1177 |
86 |
desc.setHandler(handler); |
1178 |
86 |
desc.setNameSpaceURI("www.jalview.org"); |
1179 |
86 |
desc.setMultivalued(false); |
1180 |
86 |
addFieldDescriptor(desc); |
1181 |
|
|
1182 |
|
|
1183 |
86 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
1184 |
|
{ |
1185 |
|
} |
1186 |
86 |
desc.setValidator(fieldValidator); |
1187 |
|
} |
1188 |
|
|
1189 |
|
|
1190 |
|
|
1191 |
|
|
1192 |
|
|
1193 |
|
|
1194 |
|
|
1195 |
|
|
1196 |
|
@return |
1197 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1198 |
0 |
public org.exolab.castor.mapping.AccessMode getAccessMode()... |
1199 |
|
{ |
1200 |
0 |
return null; |
1201 |
|
} |
1202 |
|
|
1203 |
|
|
1204 |
|
|
1205 |
|
|
1206 |
|
@return |
1207 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1208 |
982 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()... |
1209 |
|
{ |
1210 |
982 |
return super.getIdentity(); |
1211 |
|
} |
1212 |
|
|
1213 |
|
|
1214 |
|
|
1215 |
|
|
1216 |
|
@return |
1217 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1218 |
74 |
public java.lang.Class getJavaClass()... |
1219 |
|
{ |
1220 |
74 |
return jalview.schemabinding.version2.JGroup.class; |
1221 |
|
} |
1222 |
|
|
1223 |
|
|
1224 |
|
|
1225 |
|
|
1226 |
|
@return |
1227 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1228 |
12 |
public java.lang.String getNameSpacePrefix()... |
1229 |
|
{ |
1230 |
12 |
return _nsPrefix; |
1231 |
|
} |
1232 |
|
|
1233 |
|
|
1234 |
|
|
1235 |
|
|
1236 |
|
@return |
1237 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1238 |
0 |
public java.lang.String getNameSpaceURI()... |
1239 |
|
{ |
1240 |
0 |
return _nsURI; |
1241 |
|
} |
1242 |
|
|
1243 |
|
|
1244 |
|
|
1245 |
|
|
1246 |
|
@return |
1247 |
|
|
1248 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1249 |
12 |
public org.exolab.castor.xml.TypeValidator getValidator()... |
1250 |
|
{ |
1251 |
12 |
return this; |
1252 |
|
} |
1253 |
|
|
1254 |
|
|
1255 |
|
|
1256 |
|
|
1257 |
|
@return |
1258 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1259 |
172 |
public java.lang.String getXMLName()... |
1260 |
|
{ |
1261 |
172 |
return _xmlName; |
1262 |
|
} |
1263 |
|
|
1264 |
|
|
1265 |
|
|
1266 |
|
|
1267 |
|
@return |
1268 |
|
|
1269 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1270 |
0 |
public boolean isElementDefinition()... |
1271 |
|
{ |
1272 |
0 |
return _elementDefinition; |
1273 |
|
} |
1274 |
|
|
1275 |
|
} |