1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package jalview.schemabinding.version2; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
import org.exolab.castor.xml.Marshaller; |
15 |
|
import org.exolab.castor.xml.Unmarshaller; |
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
@version |
21 |
|
|
|
|
| 50.5% |
Uncovered Elements: 48 (97) |
Complexity: 43 |
Complexity Density: 0.8 |
|
22 |
|
public class Feature implements java.io.Serializable |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private int _begin; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private boolean _has_begin; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private int _end; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
private boolean _has_end; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
private java.lang.String _type; |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
private java.lang.String _description; |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
private java.lang.String _status; |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
private java.lang.String _featureGroup; |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
private float _score; |
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
private boolean _has_score; |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
private java.util.Vector _otherDataList; |
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
88 |
44398 |
public Feature()... |
89 |
|
{ |
90 |
44398 |
super(); |
91 |
44398 |
this._otherDataList = new java.util.Vector(); |
92 |
|
} |
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
@param |
102 |
|
@throws |
103 |
|
|
104 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
105 |
28160 |
public void addOtherData(... |
106 |
|
final jalview.schemabinding.version2.OtherData vOtherData) |
107 |
|
throws java.lang.IndexOutOfBoundsException |
108 |
|
{ |
109 |
28160 |
this._otherDataList.addElement(vOtherData); |
110 |
|
} |
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
@param |
116 |
|
@param |
117 |
|
@throws |
118 |
|
|
119 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
120 |
0 |
public void addOtherData(final int index,... |
121 |
|
final jalview.schemabinding.version2.OtherData vOtherData) |
122 |
|
throws java.lang.IndexOutOfBoundsException |
123 |
|
{ |
124 |
0 |
this._otherDataList.add(index, vOtherData); |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
129 |
0 |
public void deleteBegin()... |
130 |
|
{ |
131 |
0 |
this._has_begin = false; |
132 |
|
} |
133 |
|
|
134 |
|
|
135 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
0 |
public void deleteEnd()... |
137 |
|
{ |
138 |
0 |
this._has_end = false; |
139 |
|
} |
140 |
|
|
141 |
|
|
142 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
143 |
0 |
public void deleteScore()... |
144 |
|
{ |
145 |
0 |
this._has_score = false; |
146 |
|
} |
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
@return |
152 |
|
|
153 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
154 |
0 |
public java.util.Enumeration enumerateOtherData()... |
155 |
|
{ |
156 |
0 |
return this._otherDataList.elements(); |
157 |
|
} |
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
@return |
163 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
164 |
27650 |
public int getBegin()... |
165 |
|
{ |
166 |
27650 |
return this._begin; |
167 |
|
} |
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
@return |
173 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
174 |
27650 |
public java.lang.String getDescription()... |
175 |
|
{ |
176 |
27650 |
return this._description; |
177 |
|
} |
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
@return |
183 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
184 |
27650 |
public int getEnd()... |
185 |
|
{ |
186 |
27650 |
return this._end; |
187 |
|
} |
188 |
|
|
189 |
|
|
190 |
|
|
191 |
|
|
192 |
|
@return |
193 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
194 |
27650 |
public java.lang.String getFeatureGroup()... |
195 |
|
{ |
196 |
27650 |
return this._featureGroup; |
197 |
|
} |
198 |
|
|
199 |
|
|
200 |
|
|
201 |
|
|
202 |
|
@param |
203 |
|
@throws |
204 |
|
|
205 |
|
@return |
206 |
|
|
207 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
208 |
5080 |
public jalview.schemabinding.version2.OtherData getOtherData(... |
209 |
|
final int index) throws java.lang.IndexOutOfBoundsException |
210 |
|
{ |
211 |
|
|
212 |
5080 |
if (index < 0 || index >= this._otherDataList.size()) |
213 |
|
{ |
214 |
0 |
throw new IndexOutOfBoundsException("getOtherData: Index value '" |
215 |
|
+ index + "' not in range [0.." |
216 |
|
+ (this._otherDataList.size() - 1) + "]"); |
217 |
|
} |
218 |
|
|
219 |
5080 |
return (jalview.schemabinding.version2.OtherData) _otherDataList |
220 |
|
.get(index); |
221 |
|
} |
222 |
|
|
223 |
|
|
224 |
|
|
225 |
|
|
226 |
|
|
227 |
|
|
228 |
|
|
229 |
|
|
230 |
|
@return |
231 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
232 |
17776 |
public jalview.schemabinding.version2.OtherData[] getOtherData()... |
233 |
|
{ |
234 |
17776 |
jalview.schemabinding.version2.OtherData[] array = new jalview.schemabinding.version2.OtherData[0]; |
235 |
17776 |
return (jalview.schemabinding.version2.OtherData[]) this._otherDataList |
236 |
|
.toArray(array); |
237 |
|
} |
238 |
|
|
239 |
|
|
240 |
|
|
241 |
|
|
242 |
|
@return |
243 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
244 |
14954 |
public int getOtherDataCount()... |
245 |
|
{ |
246 |
14954 |
return this._otherDataList.size(); |
247 |
|
} |
248 |
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
|
@return |
253 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
254 |
27650 |
public float getScore()... |
255 |
|
{ |
256 |
27650 |
return this._score; |
257 |
|
} |
258 |
|
|
259 |
|
|
260 |
|
|
261 |
|
|
262 |
|
@return |
263 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
264 |
27650 |
public java.lang.String getStatus()... |
265 |
|
{ |
266 |
27650 |
return this._status; |
267 |
|
} |
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
@return |
273 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
274 |
27650 |
public java.lang.String getType()... |
275 |
|
{ |
276 |
27650 |
return this._type; |
277 |
|
} |
278 |
|
|
279 |
|
|
280 |
|
|
281 |
|
|
282 |
|
@return |
283 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
284 |
17776 |
public boolean hasBegin()... |
285 |
|
{ |
286 |
17776 |
return this._has_begin; |
287 |
|
} |
288 |
|
|
289 |
|
|
290 |
|
|
291 |
|
|
292 |
|
@return |
293 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
294 |
17776 |
public boolean hasEnd()... |
295 |
|
{ |
296 |
17776 |
return this._has_end; |
297 |
|
} |
298 |
|
|
299 |
|
|
300 |
|
|
301 |
|
|
302 |
|
@return |
303 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
304 |
17776 |
public boolean hasScore()... |
305 |
|
{ |
306 |
17776 |
return this._has_score; |
307 |
|
} |
308 |
|
|
309 |
|
|
310 |
|
|
311 |
|
|
312 |
|
@return |
313 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
314 |
0 |
public boolean isValid()... |
315 |
|
{ |
316 |
0 |
try |
317 |
|
{ |
318 |
0 |
validate(); |
319 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
320 |
|
{ |
321 |
0 |
return false; |
322 |
|
} |
323 |
0 |
return true; |
324 |
|
} |
325 |
|
|
326 |
|
|
327 |
|
|
328 |
|
|
329 |
|
@param |
330 |
|
@throws |
331 |
|
|
332 |
|
|
333 |
|
@throws |
334 |
|
|
335 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
336 |
0 |
public void marshal(final java.io.Writer out)... |
337 |
|
throws org.exolab.castor.xml.MarshalException, |
338 |
|
org.exolab.castor.xml.ValidationException |
339 |
|
{ |
340 |
0 |
Marshaller.marshal(this, out); |
341 |
|
} |
342 |
|
|
343 |
|
|
344 |
|
|
345 |
|
|
346 |
|
@param |
347 |
|
@throws |
348 |
|
|
349 |
|
@throws |
350 |
|
|
351 |
|
@throws |
352 |
|
|
353 |
|
|
354 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
355 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
356 |
|
throws java.io.IOException, |
357 |
|
org.exolab.castor.xml.MarshalException, |
358 |
|
org.exolab.castor.xml.ValidationException |
359 |
|
{ |
360 |
0 |
Marshaller.marshal(this, handler); |
361 |
|
} |
362 |
|
|
363 |
|
|
364 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
365 |
0 |
public void removeAllOtherData()... |
366 |
|
{ |
367 |
0 |
this._otherDataList.clear(); |
368 |
|
} |
369 |
|
|
370 |
|
|
371 |
|
|
372 |
|
|
373 |
|
@param |
374 |
|
@return |
375 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
376 |
0 |
public boolean removeOtherData(... |
377 |
|
final jalview.schemabinding.version2.OtherData vOtherData) |
378 |
|
{ |
379 |
0 |
boolean removed = _otherDataList.remove(vOtherData); |
380 |
0 |
return removed; |
381 |
|
} |
382 |
|
|
383 |
|
|
384 |
|
|
385 |
|
|
386 |
|
@param |
387 |
|
@return |
388 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
389 |
0 |
public jalview.schemabinding.version2.OtherData removeOtherDataAt(... |
390 |
|
final int index) |
391 |
|
{ |
392 |
0 |
java.lang.Object obj = this._otherDataList.remove(index); |
393 |
0 |
return (jalview.schemabinding.version2.OtherData) obj; |
394 |
|
} |
395 |
|
|
396 |
|
|
397 |
|
|
398 |
|
|
399 |
|
@param |
400 |
|
|
401 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
402 |
44398 |
public void setBegin(final int begin)... |
403 |
|
{ |
404 |
44398 |
this._begin = begin; |
405 |
44398 |
this._has_begin = true; |
406 |
|
} |
407 |
|
|
408 |
|
|
409 |
|
|
410 |
|
|
411 |
|
@param |
412 |
|
|
413 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
414 |
44398 |
public void setDescription(final java.lang.String description)... |
415 |
|
{ |
416 |
44398 |
this._description = description; |
417 |
|
} |
418 |
|
|
419 |
|
|
420 |
|
|
421 |
|
|
422 |
|
@param |
423 |
|
|
424 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
425 |
44398 |
public void setEnd(final int end)... |
426 |
|
{ |
427 |
44398 |
this._end = end; |
428 |
44398 |
this._has_end = true; |
429 |
|
} |
430 |
|
|
431 |
|
|
432 |
|
|
433 |
|
|
434 |
|
@param |
435 |
|
|
436 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
437 |
44398 |
public void setFeatureGroup(final java.lang.String featureGroup)... |
438 |
|
{ |
439 |
44398 |
this._featureGroup = featureGroup; |
440 |
|
} |
441 |
|
|
442 |
|
|
443 |
|
|
444 |
|
|
445 |
|
@param |
446 |
|
@param |
447 |
|
@throws |
448 |
|
|
449 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
450 |
0 |
public void setOtherData(final int index,... |
451 |
|
final jalview.schemabinding.version2.OtherData vOtherData) |
452 |
|
throws java.lang.IndexOutOfBoundsException |
453 |
|
{ |
454 |
|
|
455 |
0 |
if (index < 0 || index >= this._otherDataList.size()) |
456 |
|
{ |
457 |
0 |
throw new IndexOutOfBoundsException("setOtherData: Index value '" |
458 |
|
+ index + "' not in range [0.." |
459 |
|
+ (this._otherDataList.size() - 1) + "]"); |
460 |
|
} |
461 |
|
|
462 |
0 |
this._otherDataList.set(index, vOtherData); |
463 |
|
} |
464 |
|
|
465 |
|
|
466 |
|
|
467 |
|
|
468 |
|
@param |
469 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
470 |
0 |
public void setOtherData(... |
471 |
|
final jalview.schemabinding.version2.OtherData[] vOtherDataArray) |
472 |
|
{ |
473 |
|
|
474 |
0 |
_otherDataList.clear(); |
475 |
|
|
476 |
0 |
for (int i = 0; i < vOtherDataArray.length; i++) |
477 |
|
{ |
478 |
0 |
this._otherDataList.add(vOtherDataArray[i]); |
479 |
|
} |
480 |
|
} |
481 |
|
|
482 |
|
|
483 |
|
|
484 |
|
|
485 |
|
@param |
486 |
|
|
487 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
488 |
44398 |
public void setScore(final float score)... |
489 |
|
{ |
490 |
44398 |
this._score = score; |
491 |
44398 |
this._has_score = true; |
492 |
|
} |
493 |
|
|
494 |
|
|
495 |
|
|
496 |
|
|
497 |
|
@param |
498 |
|
|
499 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
500 |
0 |
public void setStatus(final java.lang.String status)... |
501 |
|
{ |
502 |
0 |
this._status = status; |
503 |
|
} |
504 |
|
|
505 |
|
|
506 |
|
|
507 |
|
|
508 |
|
@param |
509 |
|
|
510 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
511 |
44398 |
public void setType(final java.lang.String type)... |
512 |
|
{ |
513 |
44398 |
this._type = type; |
514 |
|
} |
515 |
|
|
516 |
|
|
517 |
|
|
518 |
|
|
519 |
|
@param |
520 |
|
@throws |
521 |
|
|
522 |
|
|
523 |
|
@throws |
524 |
|
|
525 |
|
@return |
526 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
527 |
0 |
public static jalview.schemabinding.version2.Feature unmarshal(... |
528 |
|
final java.io.Reader reader) |
529 |
|
throws org.exolab.castor.xml.MarshalException, |
530 |
|
org.exolab.castor.xml.ValidationException |
531 |
|
{ |
532 |
0 |
return (jalview.schemabinding.version2.Feature) Unmarshaller.unmarshal( |
533 |
|
jalview.schemabinding.version2.Feature.class, reader); |
534 |
|
} |
535 |
|
|
536 |
|
|
537 |
|
|
538 |
|
|
539 |
|
@throws |
540 |
|
|
541 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
542 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
543 |
|
{ |
544 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
545 |
0 |
validator.validate(this); |
546 |
|
} |
547 |
|
|
548 |
|
} |