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