1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package jalview.schemabinding.version2.descriptors; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
import jalview.schemabinding.version2.JSeq; |
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
@version |
20 |
|
|
|
|
| 75.2% |
Uncovered Elements: 77 (311) |
Complexity: 70 |
Complexity Density: 0.29 |
|
21 |
|
public class JSeqDescriptor 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 (123) |
Complexity: 1 |
Complexity Density: 0.01 |
|
53 |
2195 |
public JSeqDescriptor()... |
54 |
|
{ |
55 |
2195 |
super(); |
56 |
2195 |
_nsURI = "www.jalview.org"; |
57 |
2195 |
_xmlName = "JSeq"; |
58 |
2195 |
_elementDefinition = true; |
59 |
|
|
60 |
|
|
61 |
2195 |
setCompositorAsSequence(); |
62 |
2195 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; |
63 |
2195 |
org.exolab.castor.mapping.FieldHandler handler = null; |
64 |
2195 |
org.exolab.castor.xml.FieldValidator fieldValidator = null; |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
69 |
|
java.lang.Integer.TYPE, "_colour", "colour", |
70 |
|
org.exolab.castor.xml.NodeType.Attribute); |
71 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
72 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
73 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
74 |
|
throws IllegalStateException |
75 |
|
{ |
76 |
930 |
JSeq target = (JSeq) object; |
77 |
930 |
if (!target.hasColour()) |
78 |
|
{ |
79 |
0 |
return null; |
80 |
|
} |
81 |
930 |
return new java.lang.Integer(target.getColour()); |
82 |
|
} |
83 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
84 |
1265 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
85 |
|
throws IllegalStateException, IllegalArgumentException |
86 |
|
{ |
87 |
1265 |
try |
88 |
|
{ |
89 |
1265 |
JSeq target = (JSeq) object; |
90 |
|
|
91 |
1265 |
if (value == null) |
92 |
|
{ |
93 |
0 |
target.deleteColour(); |
94 |
0 |
return; |
95 |
|
} |
96 |
1265 |
target.setColour(((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 |
2195 |
desc.setHandler(handler); |
109 |
2195 |
desc.setMultivalued(false); |
110 |
2195 |
addFieldDescriptor(desc); |
111 |
|
|
112 |
|
|
113 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
114 |
|
{ |
115 |
2195 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
116 |
2195 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
117 |
2195 |
fieldValidator.setValidator(typeValidator); |
118 |
2195 |
typeValidator.setMinInclusive(-2147483648); |
119 |
2195 |
typeValidator.setMaxInclusive(2147483647); |
120 |
|
} |
121 |
2195 |
desc.setValidator(fieldValidator); |
122 |
|
|
123 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
124 |
|
java.lang.Integer.TYPE, "_start", "start", |
125 |
|
org.exolab.castor.xml.NodeType.Attribute); |
126 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
127 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
128 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
129 |
|
throws IllegalStateException |
130 |
|
{ |
131 |
930 |
JSeq target = (JSeq) object; |
132 |
930 |
if (!target.hasStart()) |
133 |
|
{ |
134 |
0 |
return null; |
135 |
|
} |
136 |
930 |
return new java.lang.Integer(target.getStart()); |
137 |
|
} |
138 |
|
|
|
|
| 62.5% |
Uncovered Elements: 3 (8) |
Complexity: 3 |
Complexity Density: 0.5 |
|
139 |
1265 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
140 |
|
throws IllegalStateException, IllegalArgumentException |
141 |
|
{ |
142 |
1265 |
try |
143 |
|
{ |
144 |
1265 |
JSeq target = (JSeq) object; |
145 |
|
|
146 |
1265 |
if (value == null) |
147 |
|
{ |
148 |
0 |
return; |
149 |
|
} |
150 |
|
|
151 |
1265 |
target.setStart(((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 |
2195 |
desc.setHandler(handler); |
164 |
2195 |
desc.setRequired(true); |
165 |
2195 |
desc.setMultivalued(false); |
166 |
2195 |
addFieldDescriptor(desc); |
167 |
|
|
168 |
|
|
169 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
170 |
2195 |
fieldValidator.setMinOccurs(1); |
171 |
|
{ |
172 |
2195 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
173 |
2195 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
174 |
2195 |
fieldValidator.setValidator(typeValidator); |
175 |
2195 |
typeValidator.setMinInclusive(-2147483648); |
176 |
2195 |
typeValidator.setMaxInclusive(2147483647); |
177 |
|
} |
178 |
2195 |
desc.setValidator(fieldValidator); |
179 |
|
|
180 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
181 |
|
java.lang.Integer.TYPE, "_end", "end", |
182 |
|
org.exolab.castor.xml.NodeType.Attribute); |
183 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
184 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
185 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
186 |
|
throws IllegalStateException |
187 |
|
{ |
188 |
930 |
JSeq target = (JSeq) object; |
189 |
930 |
if (!target.hasEnd()) |
190 |
|
{ |
191 |
0 |
return null; |
192 |
|
} |
193 |
930 |
return new java.lang.Integer(target.getEnd()); |
194 |
|
} |
195 |
|
|
|
|
| 62.5% |
Uncovered Elements: 3 (8) |
Complexity: 3 |
Complexity Density: 0.5 |
|
196 |
1265 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
197 |
|
throws IllegalStateException, IllegalArgumentException |
198 |
|
{ |
199 |
1265 |
try |
200 |
|
{ |
201 |
1265 |
JSeq target = (JSeq) object; |
202 |
|
|
203 |
1265 |
if (value == null) |
204 |
|
{ |
205 |
0 |
return; |
206 |
|
} |
207 |
|
|
208 |
1265 |
target.setEnd(((java.lang.Integer) value).intValue()); |
209 |
|
} catch (java.lang.Exception ex) |
210 |
|
{ |
211 |
0 |
throw new IllegalStateException(ex.toString()); |
212 |
|
} |
213 |
|
} |
214 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
215 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
216 |
|
{ |
217 |
0 |
return null; |
218 |
|
} |
219 |
|
}; |
220 |
2195 |
desc.setHandler(handler); |
221 |
2195 |
desc.setRequired(true); |
222 |
2195 |
desc.setMultivalued(false); |
223 |
2195 |
addFieldDescriptor(desc); |
224 |
|
|
225 |
|
|
226 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
227 |
2195 |
fieldValidator.setMinOccurs(1); |
228 |
|
{ |
229 |
2195 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
230 |
2195 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
231 |
2195 |
fieldValidator.setValidator(typeValidator); |
232 |
2195 |
typeValidator.setMinInclusive(-2147483648); |
233 |
2195 |
typeValidator.setMaxInclusive(2147483647); |
234 |
|
} |
235 |
2195 |
desc.setValidator(fieldValidator); |
236 |
|
|
237 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
238 |
|
java.lang.String.class, "_id", "id", |
239 |
|
org.exolab.castor.xml.NodeType.Attribute); |
240 |
2195 |
desc.setImmutable(true); |
241 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
242 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
243 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
244 |
|
throws IllegalStateException |
245 |
|
{ |
246 |
930 |
JSeq target = (JSeq) object; |
247 |
930 |
return target.getId(); |
248 |
|
} |
249 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
250 |
1265 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
251 |
|
throws IllegalStateException, IllegalArgumentException |
252 |
|
{ |
253 |
1265 |
try |
254 |
|
{ |
255 |
1265 |
JSeq target = (JSeq) object; |
256 |
1265 |
target.setId((java.lang.String) value); |
257 |
|
} catch (java.lang.Exception ex) |
258 |
|
{ |
259 |
0 |
throw new IllegalStateException(ex.toString()); |
260 |
|
} |
261 |
|
} |
262 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
263 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
264 |
|
{ |
265 |
0 |
return null; |
266 |
|
} |
267 |
|
}; |
268 |
2195 |
desc.setHandler(handler); |
269 |
2195 |
desc.setRequired(true); |
270 |
2195 |
desc.setMultivalued(false); |
271 |
2195 |
addFieldDescriptor(desc); |
272 |
|
|
273 |
|
|
274 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
275 |
2195 |
fieldValidator.setMinOccurs(1); |
276 |
|
{ |
277 |
2195 |
org.exolab.castor.xml.validators.StringValidator typeValidator; |
278 |
2195 |
typeValidator = new org.exolab.castor.xml.validators.StringValidator(); |
279 |
2195 |
fieldValidator.setValidator(typeValidator); |
280 |
2195 |
typeValidator.setWhiteSpace("preserve"); |
281 |
|
} |
282 |
2195 |
desc.setValidator(fieldValidator); |
283 |
|
|
284 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
285 |
|
java.lang.Boolean.TYPE, "_hidden", "hidden", |
286 |
|
org.exolab.castor.xml.NodeType.Attribute); |
287 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
288 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
289 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
290 |
|
throws IllegalStateException |
291 |
|
{ |
292 |
930 |
JSeq target = (JSeq) object; |
293 |
930 |
if (!target.hasHidden()) |
294 |
|
{ |
295 |
550 |
return null; |
296 |
|
} |
297 |
380 |
return (target.getHidden() ? java.lang.Boolean.TRUE |
298 |
|
: java.lang.Boolean.FALSE); |
299 |
|
} |
300 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
301 |
990 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
302 |
|
throws IllegalStateException, IllegalArgumentException |
303 |
|
{ |
304 |
990 |
try |
305 |
|
{ |
306 |
990 |
JSeq target = (JSeq) object; |
307 |
|
|
308 |
990 |
if (value == null) |
309 |
|
{ |
310 |
0 |
target.deleteHidden(); |
311 |
0 |
return; |
312 |
|
} |
313 |
990 |
target.setHidden(((java.lang.Boolean) value).booleanValue()); |
314 |
|
} catch (java.lang.Exception ex) |
315 |
|
{ |
316 |
0 |
throw new IllegalStateException(ex.toString()); |
317 |
|
} |
318 |
|
} |
319 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
320 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
321 |
|
{ |
322 |
0 |
return null; |
323 |
|
} |
324 |
|
}; |
325 |
2195 |
desc.setHandler(handler); |
326 |
2195 |
desc.setMultivalued(false); |
327 |
2195 |
addFieldDescriptor(desc); |
328 |
|
|
329 |
|
|
330 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
331 |
|
{ |
332 |
2195 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
333 |
2195 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
334 |
2195 |
fieldValidator.setValidator(typeValidator); |
335 |
|
} |
336 |
2195 |
desc.setValidator(fieldValidator); |
337 |
|
|
338 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
339 |
|
java.lang.Boolean.TYPE, "_viewreference", "viewreference", |
340 |
|
org.exolab.castor.xml.NodeType.Attribute); |
341 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
342 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
343 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
344 |
|
throws IllegalStateException |
345 |
|
{ |
346 |
930 |
JSeq target = (JSeq) object; |
347 |
930 |
if (!target.hasViewreference()) |
348 |
|
{ |
349 |
770 |
return null; |
350 |
|
} |
351 |
160 |
return (target.getViewreference() ? java.lang.Boolean.TRUE |
352 |
|
: java.lang.Boolean.FALSE); |
353 |
|
} |
354 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
355 |
80 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
356 |
|
throws IllegalStateException, IllegalArgumentException |
357 |
|
{ |
358 |
80 |
try |
359 |
|
{ |
360 |
80 |
JSeq target = (JSeq) object; |
361 |
|
|
362 |
80 |
if (value == null) |
363 |
|
{ |
364 |
0 |
target.deleteViewreference(); |
365 |
0 |
return; |
366 |
|
} |
367 |
80 |
target.setViewreference(((java.lang.Boolean) value) |
368 |
|
.booleanValue()); |
369 |
|
} catch (java.lang.Exception ex) |
370 |
|
{ |
371 |
0 |
throw new IllegalStateException(ex.toString()); |
372 |
|
} |
373 |
|
} |
374 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
375 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
376 |
|
{ |
377 |
0 |
return null; |
378 |
|
} |
379 |
|
}; |
380 |
2195 |
desc.setHandler(handler); |
381 |
2195 |
desc.setMultivalued(false); |
382 |
2195 |
addFieldDescriptor(desc); |
383 |
|
|
384 |
|
|
385 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
386 |
|
{ |
387 |
2195 |
org.exolab.castor.xml.validators.BooleanValidator typeValidator; |
388 |
2195 |
typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); |
389 |
2195 |
fieldValidator.setValidator(typeValidator); |
390 |
|
} |
391 |
2195 |
desc.setValidator(fieldValidator); |
392 |
|
|
393 |
|
|
394 |
|
|
395 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
396 |
|
jalview.schemabinding.version2.Features.class, "_featuresList", |
397 |
|
"features", org.exolab.castor.xml.NodeType.Element); |
398 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
399 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
400 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
401 |
|
throws IllegalStateException |
402 |
|
{ |
403 |
930 |
JSeq target = (JSeq) object; |
404 |
930 |
return target.getFeatures(); |
405 |
|
} |
406 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
407 |
33538 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
408 |
|
throws IllegalStateException, IllegalArgumentException |
409 |
|
{ |
410 |
33538 |
try |
411 |
|
{ |
412 |
33538 |
JSeq target = (JSeq) object; |
413 |
33538 |
target.addFeatures((jalview.schemabinding.version2.Features) value); |
414 |
|
} catch (java.lang.Exception ex) |
415 |
|
{ |
416 |
0 |
throw new IllegalStateException(ex.toString()); |
417 |
|
} |
418 |
|
} |
419 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
420 |
0 |
public void resetValue(Object object) throws IllegalStateException,... |
421 |
|
IllegalArgumentException |
422 |
|
{ |
423 |
0 |
try |
424 |
|
{ |
425 |
0 |
JSeq target = (JSeq) object; |
426 |
0 |
target.removeAllFeatures(); |
427 |
|
} catch (java.lang.Exception ex) |
428 |
|
{ |
429 |
0 |
throw new IllegalStateException(ex.toString()); |
430 |
|
} |
431 |
|
} |
432 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
433 |
33538 |
public java.lang.Object newInstance(java.lang.Object parent)... |
434 |
|
{ |
435 |
33538 |
return new jalview.schemabinding.version2.Features(); |
436 |
|
} |
437 |
|
}; |
438 |
2195 |
desc.setHandler(handler); |
439 |
2195 |
desc.setNameSpaceURI("www.jalview.org"); |
440 |
2195 |
desc.setMultivalued(true); |
441 |
2195 |
addFieldDescriptor(desc); |
442 |
|
|
443 |
|
|
444 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
445 |
2195 |
fieldValidator.setMinOccurs(0); |
446 |
|
{ |
447 |
|
} |
448 |
2195 |
desc.setValidator(fieldValidator); |
449 |
|
|
450 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
451 |
|
jalview.schemabinding.version2.Pdbids.class, "_pdbidsList", |
452 |
|
"pdbids", org.exolab.castor.xml.NodeType.Element); |
453 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
454 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
455 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
456 |
|
throws IllegalStateException |
457 |
|
{ |
458 |
930 |
JSeq target = (JSeq) object; |
459 |
930 |
return target.getPdbids(); |
460 |
|
} |
461 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
462 |
200 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
463 |
|
throws IllegalStateException, IllegalArgumentException |
464 |
|
{ |
465 |
200 |
try |
466 |
|
{ |
467 |
200 |
JSeq target = (JSeq) object; |
468 |
200 |
target.addPdbids((jalview.schemabinding.version2.Pdbids) value); |
469 |
|
} catch (java.lang.Exception ex) |
470 |
|
{ |
471 |
0 |
throw new IllegalStateException(ex.toString()); |
472 |
|
} |
473 |
|
} |
474 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
475 |
0 |
public void resetValue(Object object) throws IllegalStateException,... |
476 |
|
IllegalArgumentException |
477 |
|
{ |
478 |
0 |
try |
479 |
|
{ |
480 |
0 |
JSeq target = (JSeq) object; |
481 |
0 |
target.removeAllPdbids(); |
482 |
|
} catch (java.lang.Exception ex) |
483 |
|
{ |
484 |
0 |
throw new IllegalStateException(ex.toString()); |
485 |
|
} |
486 |
|
} |
487 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
488 |
200 |
public java.lang.Object newInstance(java.lang.Object parent)... |
489 |
|
{ |
490 |
200 |
return new jalview.schemabinding.version2.Pdbids(); |
491 |
|
} |
492 |
|
}; |
493 |
2195 |
desc.setHandler(handler); |
494 |
2195 |
desc.setNameSpaceURI("www.jalview.org"); |
495 |
2195 |
desc.setMultivalued(true); |
496 |
2195 |
addFieldDescriptor(desc); |
497 |
|
|
498 |
|
|
499 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
500 |
2195 |
fieldValidator.setMinOccurs(0); |
501 |
|
{ |
502 |
|
} |
503 |
2195 |
desc.setValidator(fieldValidator); |
504 |
|
|
505 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
506 |
|
java.lang.Integer.TYPE, "_hiddenSequencesList", |
507 |
|
"hiddenSequences", org.exolab.castor.xml.NodeType.Element); |
508 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
509 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
510 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
511 |
|
throws IllegalStateException |
512 |
|
{ |
513 |
930 |
JSeq target = (JSeq) object; |
514 |
930 |
return target.getHiddenSequences(); |
515 |
|
} |
516 |
|
|
|
|
| 62.5% |
Uncovered Elements: 3 (8) |
Complexity: 3 |
Complexity Density: 0.5 |
|
517 |
2 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
518 |
|
throws IllegalStateException, IllegalArgumentException |
519 |
|
{ |
520 |
2 |
try |
521 |
|
{ |
522 |
2 |
JSeq target = (JSeq) object; |
523 |
|
|
524 |
2 |
if (value == null) |
525 |
|
{ |
526 |
0 |
return; |
527 |
|
} |
528 |
|
|
529 |
2 |
target.addHiddenSequences(((java.lang.Integer) value).intValue()); |
530 |
|
} catch (java.lang.Exception ex) |
531 |
|
{ |
532 |
0 |
throw new IllegalStateException(ex.toString()); |
533 |
|
} |
534 |
|
} |
535 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
536 |
0 |
public void resetValue(Object object) throws IllegalStateException,... |
537 |
|
IllegalArgumentException |
538 |
|
{ |
539 |
0 |
try |
540 |
|
{ |
541 |
0 |
JSeq target = (JSeq) object; |
542 |
0 |
target.removeAllHiddenSequences(); |
543 |
|
} catch (java.lang.Exception ex) |
544 |
|
{ |
545 |
0 |
throw new IllegalStateException(ex.toString()); |
546 |
|
} |
547 |
|
} |
548 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
549 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
550 |
|
{ |
551 |
0 |
return null; |
552 |
|
} |
553 |
|
}; |
554 |
2195 |
desc.setHandler(handler); |
555 |
2195 |
desc.setNameSpaceURI("www.jalview.org"); |
556 |
2195 |
desc.setMultivalued(true); |
557 |
2195 |
addFieldDescriptor(desc); |
558 |
|
|
559 |
|
|
560 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
561 |
2195 |
fieldValidator.setMinOccurs(0); |
562 |
|
{ |
563 |
2195 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
564 |
2195 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
565 |
2195 |
fieldValidator.setValidator(typeValidator); |
566 |
2195 |
typeValidator.setMinInclusive(-2147483648); |
567 |
2195 |
typeValidator.setMaxInclusive(2147483647); |
568 |
|
} |
569 |
2195 |
desc.setValidator(fieldValidator); |
570 |
|
|
571 |
2195 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
572 |
|
jalview.schemabinding.version2.RnaViewer.class, |
573 |
|
"_rnaViewerList", "rnaViewer", |
574 |
|
org.exolab.castor.xml.NodeType.Element); |
575 |
2195 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
576 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
577 |
930 |
public java.lang.Object getValue(java.lang.Object object)... |
578 |
|
throws IllegalStateException |
579 |
|
{ |
580 |
930 |
JSeq target = (JSeq) object; |
581 |
930 |
return target.getRnaViewer(); |
582 |
|
} |
583 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
584 |
0 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
585 |
|
throws IllegalStateException, IllegalArgumentException |
586 |
|
{ |
587 |
0 |
try |
588 |
|
{ |
589 |
0 |
JSeq target = (JSeq) object; |
590 |
0 |
target.addRnaViewer((jalview.schemabinding.version2.RnaViewer) value); |
591 |
|
} catch (java.lang.Exception ex) |
592 |
|
{ |
593 |
0 |
throw new IllegalStateException(ex.toString()); |
594 |
|
} |
595 |
|
} |
596 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
597 |
0 |
public void resetValue(Object object) throws IllegalStateException,... |
598 |
|
IllegalArgumentException |
599 |
|
{ |
600 |
0 |
try |
601 |
|
{ |
602 |
0 |
JSeq target = (JSeq) object; |
603 |
0 |
target.removeAllRnaViewer(); |
604 |
|
} catch (java.lang.Exception ex) |
605 |
|
{ |
606 |
0 |
throw new IllegalStateException(ex.toString()); |
607 |
|
} |
608 |
|
} |
609 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
610 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
611 |
|
{ |
612 |
0 |
return new jalview.schemabinding.version2.RnaViewer(); |
613 |
|
} |
614 |
|
}; |
615 |
2195 |
desc.setHandler(handler); |
616 |
2195 |
desc.setNameSpaceURI("www.jalview.org"); |
617 |
2195 |
desc.setMultivalued(true); |
618 |
2195 |
addFieldDescriptor(desc); |
619 |
|
|
620 |
|
|
621 |
2195 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
622 |
2195 |
fieldValidator.setMinOccurs(0); |
623 |
|
{ |
624 |
|
} |
625 |
2195 |
desc.setValidator(fieldValidator); |
626 |
|
} |
627 |
|
|
628 |
|
|
629 |
|
|
630 |
|
|
631 |
|
|
632 |
|
|
633 |
|
|
634 |
|
|
635 |
|
@return |
636 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
637 |
0 |
public org.exolab.castor.mapping.AccessMode getAccessMode()... |
638 |
|
{ |
639 |
0 |
return null; |
640 |
|
} |
641 |
|
|
642 |
|
|
643 |
|
|
644 |
|
|
645 |
|
@return |
646 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
647 |
6595 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()... |
648 |
|
{ |
649 |
6595 |
return super.getIdentity(); |
650 |
|
} |
651 |
|
|
652 |
|
|
653 |
|
|
654 |
|
|
655 |
|
@return |
656 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
657 |
1730 |
public java.lang.Class getJavaClass()... |
658 |
|
{ |
659 |
1730 |
return jalview.schemabinding.version2.JSeq.class; |
660 |
|
} |
661 |
|
|
662 |
|
|
663 |
|
|
664 |
|
|
665 |
|
@return |
666 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
667 |
465 |
public java.lang.String getNameSpacePrefix()... |
668 |
|
{ |
669 |
465 |
return _nsPrefix; |
670 |
|
} |
671 |
|
|
672 |
|
|
673 |
|
|
674 |
|
|
675 |
|
@return |
676 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
677 |
0 |
public java.lang.String getNameSpaceURI()... |
678 |
|
{ |
679 |
0 |
return _nsURI; |
680 |
|
} |
681 |
|
|
682 |
|
|
683 |
|
|
684 |
|
|
685 |
|
@return |
686 |
|
|
687 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
688 |
465 |
public org.exolab.castor.xml.TypeValidator getValidator()... |
689 |
|
{ |
690 |
465 |
return this; |
691 |
|
} |
692 |
|
|
693 |
|
|
694 |
|
|
695 |
|
|
696 |
|
@return |
697 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
698 |
4390 |
public java.lang.String getXMLName()... |
699 |
|
{ |
700 |
4390 |
return _xmlName; |
701 |
|
} |
702 |
|
|
703 |
|
|
704 |
|
|
705 |
|
|
706 |
|
@return |
707 |
|
|
708 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
709 |
0 |
public boolean isElementDefinition()... |
710 |
|
{ |
711 |
0 |
return _elementDefinition; |
712 |
|
} |
713 |
|
|
714 |
|
} |