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