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 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
@version |
25 |
|
|
|
|
| 0% |
Uncovered Elements: 110 (110) |
Complexity: 47 |
Complexity Density: 0.76 |
|
26 |
|
public class MapListType implements java.io.Serializable |
27 |
|
{ |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
private long _mapFromUnit; |
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
private boolean _has_mapFromUnit; |
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
private long _mapToUnit; |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
private boolean _has_mapToUnit; |
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
private java.util.Vector _mapListFromList; |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
private java.util.Vector _mapListToList; |
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
75 |
0 |
public MapListType()... |
76 |
|
{ |
77 |
0 |
super(); |
78 |
0 |
this._mapListFromList = new java.util.Vector(); |
79 |
0 |
this._mapListToList = new java.util.Vector(); |
80 |
|
} |
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
@param |
90 |
|
@throws |
91 |
|
|
92 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
0 |
public void addMapListFrom(... |
94 |
|
final jalview.schemabinding.version2.MapListFrom vMapListFrom) |
95 |
|
throws java.lang.IndexOutOfBoundsException |
96 |
|
{ |
97 |
0 |
this._mapListFromList.addElement(vMapListFrom); |
98 |
|
} |
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
@param |
104 |
|
@param |
105 |
|
@throws |
106 |
|
|
107 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
0 |
public void addMapListFrom(final int index,... |
109 |
|
final jalview.schemabinding.version2.MapListFrom vMapListFrom) |
110 |
|
throws java.lang.IndexOutOfBoundsException |
111 |
|
{ |
112 |
0 |
this._mapListFromList.add(index, vMapListFrom); |
113 |
|
} |
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
@param |
119 |
|
@throws |
120 |
|
|
121 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
122 |
0 |
public void addMapListTo(... |
123 |
|
final jalview.schemabinding.version2.MapListTo vMapListTo) |
124 |
|
throws java.lang.IndexOutOfBoundsException |
125 |
|
{ |
126 |
0 |
this._mapListToList.addElement(vMapListTo); |
127 |
|
} |
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
@param |
133 |
|
@param |
134 |
|
@throws |
135 |
|
|
136 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
137 |
0 |
public void addMapListTo(final int index,... |
138 |
|
final jalview.schemabinding.version2.MapListTo vMapListTo) |
139 |
|
throws java.lang.IndexOutOfBoundsException |
140 |
|
{ |
141 |
0 |
this._mapListToList.add(index, vMapListTo); |
142 |
|
} |
143 |
|
|
144 |
|
|
145 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
146 |
0 |
public void deleteMapFromUnit()... |
147 |
|
{ |
148 |
0 |
this._has_mapFromUnit = false; |
149 |
|
} |
150 |
|
|
151 |
|
|
152 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
153 |
0 |
public void deleteMapToUnit()... |
154 |
|
{ |
155 |
0 |
this._has_mapToUnit = false; |
156 |
|
} |
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
@return |
162 |
|
|
163 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
164 |
0 |
public java.util.Enumeration enumerateMapListFrom()... |
165 |
|
{ |
166 |
0 |
return this._mapListFromList.elements(); |
167 |
|
} |
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
@return |
173 |
|
|
174 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
175 |
0 |
public java.util.Enumeration enumerateMapListTo()... |
176 |
|
{ |
177 |
0 |
return this._mapListToList.elements(); |
178 |
|
} |
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
188 |
|
@return |
189 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
190 |
0 |
public long getMapFromUnit()... |
191 |
|
{ |
192 |
0 |
return this._mapFromUnit; |
193 |
|
} |
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
@param |
199 |
|
@throws |
200 |
|
|
201 |
|
@return |
202 |
|
|
203 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
204 |
0 |
public jalview.schemabinding.version2.MapListFrom getMapListFrom(... |
205 |
|
final int index) throws java.lang.IndexOutOfBoundsException |
206 |
|
{ |
207 |
|
|
208 |
0 |
if (index < 0 || index >= this._mapListFromList.size()) |
209 |
|
{ |
210 |
0 |
throw new IndexOutOfBoundsException("getMapListFrom: Index value '" |
211 |
|
+ index + "' not in range [0.." |
212 |
|
+ (this._mapListFromList.size() - 1) + "]"); |
213 |
|
} |
214 |
|
|
215 |
0 |
return (jalview.schemabinding.version2.MapListFrom) _mapListFromList |
216 |
|
.get(index); |
217 |
|
} |
218 |
|
|
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
|
223 |
|
|
224 |
|
|
225 |
|
|
226 |
|
@return |
227 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
228 |
0 |
public jalview.schemabinding.version2.MapListFrom[] getMapListFrom()... |
229 |
|
{ |
230 |
0 |
jalview.schemabinding.version2.MapListFrom[] array = new jalview.schemabinding.version2.MapListFrom[0]; |
231 |
0 |
return (jalview.schemabinding.version2.MapListFrom[]) this._mapListFromList |
232 |
|
.toArray(array); |
233 |
|
} |
234 |
|
|
235 |
|
|
236 |
|
|
237 |
|
|
238 |
|
@return |
239 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
240 |
0 |
public int getMapListFromCount()... |
241 |
|
{ |
242 |
0 |
return this._mapListFromList.size(); |
243 |
|
} |
244 |
|
|
245 |
|
|
246 |
|
|
247 |
|
|
248 |
|
@param |
249 |
|
@throws |
250 |
|
|
251 |
|
@return |
252 |
|
|
253 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
254 |
0 |
public jalview.schemabinding.version2.MapListTo getMapListTo(... |
255 |
|
final int index) throws java.lang.IndexOutOfBoundsException |
256 |
|
{ |
257 |
|
|
258 |
0 |
if (index < 0 || index >= this._mapListToList.size()) |
259 |
|
{ |
260 |
0 |
throw new IndexOutOfBoundsException("getMapListTo: Index value '" |
261 |
|
+ index + "' not in range [0.." |
262 |
|
+ (this._mapListToList.size() - 1) + "]"); |
263 |
|
} |
264 |
|
|
265 |
0 |
return (jalview.schemabinding.version2.MapListTo) _mapListToList |
266 |
|
.get(index); |
267 |
|
} |
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
|
273 |
|
|
274 |
|
|
275 |
|
|
276 |
|
@return |
277 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
278 |
0 |
public jalview.schemabinding.version2.MapListTo[] getMapListTo()... |
279 |
|
{ |
280 |
0 |
jalview.schemabinding.version2.MapListTo[] array = new jalview.schemabinding.version2.MapListTo[0]; |
281 |
0 |
return (jalview.schemabinding.version2.MapListTo[]) this._mapListToList |
282 |
|
.toArray(array); |
283 |
|
} |
284 |
|
|
285 |
|
|
286 |
|
|
287 |
|
|
288 |
|
@return |
289 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
290 |
0 |
public int getMapListToCount()... |
291 |
|
{ |
292 |
0 |
return this._mapListToList.size(); |
293 |
|
} |
294 |
|
|
295 |
|
|
296 |
|
|
297 |
|
|
298 |
|
|
299 |
|
|
300 |
|
|
301 |
|
|
302 |
|
|
303 |
|
@return |
304 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
305 |
0 |
public long getMapToUnit()... |
306 |
|
{ |
307 |
0 |
return this._mapToUnit; |
308 |
|
} |
309 |
|
|
310 |
|
|
311 |
|
|
312 |
|
|
313 |
|
@return |
314 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
315 |
0 |
public boolean hasMapFromUnit()... |
316 |
|
{ |
317 |
0 |
return this._has_mapFromUnit; |
318 |
|
} |
319 |
|
|
320 |
|
|
321 |
|
|
322 |
|
|
323 |
|
@return |
324 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
325 |
0 |
public boolean hasMapToUnit()... |
326 |
|
{ |
327 |
0 |
return this._has_mapToUnit; |
328 |
|
} |
329 |
|
|
330 |
|
|
331 |
|
|
332 |
|
|
333 |
|
@return |
334 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
335 |
0 |
public boolean isValid()... |
336 |
|
{ |
337 |
0 |
try |
338 |
|
{ |
339 |
0 |
validate(); |
340 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
341 |
|
{ |
342 |
0 |
return false; |
343 |
|
} |
344 |
0 |
return true; |
345 |
|
} |
346 |
|
|
347 |
|
|
348 |
|
|
349 |
|
|
350 |
|
@param |
351 |
|
@throws |
352 |
|
|
353 |
|
|
354 |
|
@throws |
355 |
|
|
356 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
357 |
0 |
public void marshal(final java.io.Writer out)... |
358 |
|
throws org.exolab.castor.xml.MarshalException, |
359 |
|
org.exolab.castor.xml.ValidationException |
360 |
|
{ |
361 |
0 |
Marshaller.marshal(this, out); |
362 |
|
} |
363 |
|
|
364 |
|
|
365 |
|
|
366 |
|
|
367 |
|
@param |
368 |
|
@throws |
369 |
|
|
370 |
|
@throws |
371 |
|
|
372 |
|
@throws |
373 |
|
|
374 |
|
|
375 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
376 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
377 |
|
throws java.io.IOException, |
378 |
|
org.exolab.castor.xml.MarshalException, |
379 |
|
org.exolab.castor.xml.ValidationException |
380 |
|
{ |
381 |
0 |
Marshaller.marshal(this, handler); |
382 |
|
} |
383 |
|
|
384 |
|
|
385 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
386 |
0 |
public void removeAllMapListFrom()... |
387 |
|
{ |
388 |
0 |
this._mapListFromList.clear(); |
389 |
|
} |
390 |
|
|
391 |
|
|
392 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
393 |
0 |
public void removeAllMapListTo()... |
394 |
|
{ |
395 |
0 |
this._mapListToList.clear(); |
396 |
|
} |
397 |
|
|
398 |
|
|
399 |
|
|
400 |
|
|
401 |
|
@param |
402 |
|
@return |
403 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
404 |
0 |
public boolean removeMapListFrom(... |
405 |
|
final jalview.schemabinding.version2.MapListFrom vMapListFrom) |
406 |
|
{ |
407 |
0 |
boolean removed = _mapListFromList.remove(vMapListFrom); |
408 |
0 |
return removed; |
409 |
|
} |
410 |
|
|
411 |
|
|
412 |
|
|
413 |
|
|
414 |
|
@param |
415 |
|
@return |
416 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
417 |
0 |
public jalview.schemabinding.version2.MapListFrom removeMapListFromAt(... |
418 |
|
final int index) |
419 |
|
{ |
420 |
0 |
java.lang.Object obj = this._mapListFromList.remove(index); |
421 |
0 |
return (jalview.schemabinding.version2.MapListFrom) obj; |
422 |
|
} |
423 |
|
|
424 |
|
|
425 |
|
|
426 |
|
|
427 |
|
@param |
428 |
|
@return |
429 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
430 |
0 |
public boolean removeMapListTo(... |
431 |
|
final jalview.schemabinding.version2.MapListTo vMapListTo) |
432 |
|
{ |
433 |
0 |
boolean removed = _mapListToList.remove(vMapListTo); |
434 |
0 |
return removed; |
435 |
|
} |
436 |
|
|
437 |
|
|
438 |
|
|
439 |
|
|
440 |
|
@param |
441 |
|
@return |
442 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
443 |
0 |
public jalview.schemabinding.version2.MapListTo removeMapListToAt(... |
444 |
|
final int index) |
445 |
|
{ |
446 |
0 |
java.lang.Object obj = this._mapListToList.remove(index); |
447 |
0 |
return (jalview.schemabinding.version2.MapListTo) obj; |
448 |
|
} |
449 |
|
|
450 |
|
|
451 |
|
|
452 |
|
|
453 |
|
|
454 |
|
|
455 |
|
|
456 |
|
|
457 |
|
|
458 |
|
@param |
459 |
|
|
460 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
461 |
0 |
public void setMapFromUnit(final long mapFromUnit)... |
462 |
|
{ |
463 |
0 |
this._mapFromUnit = mapFromUnit; |
464 |
0 |
this._has_mapFromUnit = true; |
465 |
|
} |
466 |
|
|
467 |
|
|
468 |
|
|
469 |
|
|
470 |
|
@param |
471 |
|
@param |
472 |
|
@throws |
473 |
|
|
474 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
475 |
0 |
public void setMapListFrom(final int index,... |
476 |
|
final jalview.schemabinding.version2.MapListFrom vMapListFrom) |
477 |
|
throws java.lang.IndexOutOfBoundsException |
478 |
|
{ |
479 |
|
|
480 |
0 |
if (index < 0 || index >= this._mapListFromList.size()) |
481 |
|
{ |
482 |
0 |
throw new IndexOutOfBoundsException("setMapListFrom: Index value '" |
483 |
|
+ index + "' not in range [0.." |
484 |
|
+ (this._mapListFromList.size() - 1) + "]"); |
485 |
|
} |
486 |
|
|
487 |
0 |
this._mapListFromList.set(index, vMapListFrom); |
488 |
|
} |
489 |
|
|
490 |
|
|
491 |
|
|
492 |
|
|
493 |
|
@param |
494 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
495 |
0 |
public void setMapListFrom(... |
496 |
|
final jalview.schemabinding.version2.MapListFrom[] vMapListFromArray) |
497 |
|
{ |
498 |
|
|
499 |
0 |
_mapListFromList.clear(); |
500 |
|
|
501 |
0 |
for (int i = 0; i < vMapListFromArray.length; i++) |
502 |
|
{ |
503 |
0 |
this._mapListFromList.add(vMapListFromArray[i]); |
504 |
|
} |
505 |
|
} |
506 |
|
|
507 |
|
|
508 |
|
|
509 |
|
|
510 |
|
@param |
511 |
|
@param |
512 |
|
@throws |
513 |
|
|
514 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
515 |
0 |
public void setMapListTo(final int index,... |
516 |
|
final jalview.schemabinding.version2.MapListTo vMapListTo) |
517 |
|
throws java.lang.IndexOutOfBoundsException |
518 |
|
{ |
519 |
|
|
520 |
0 |
if (index < 0 || index >= this._mapListToList.size()) |
521 |
|
{ |
522 |
0 |
throw new IndexOutOfBoundsException("setMapListTo: Index value '" |
523 |
|
+ index + "' not in range [0.." |
524 |
|
+ (this._mapListToList.size() - 1) + "]"); |
525 |
|
} |
526 |
|
|
527 |
0 |
this._mapListToList.set(index, vMapListTo); |
528 |
|
} |
529 |
|
|
530 |
|
|
531 |
|
|
532 |
|
|
533 |
|
@param |
534 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
535 |
0 |
public void setMapListTo(... |
536 |
|
final jalview.schemabinding.version2.MapListTo[] vMapListToArray) |
537 |
|
{ |
538 |
|
|
539 |
0 |
_mapListToList.clear(); |
540 |
|
|
541 |
0 |
for (int i = 0; i < vMapListToArray.length; i++) |
542 |
|
{ |
543 |
0 |
this._mapListToList.add(vMapListToArray[i]); |
544 |
|
} |
545 |
|
} |
546 |
|
|
547 |
|
|
548 |
|
|
549 |
|
|
550 |
|
|
551 |
|
|
552 |
|
|
553 |
|
|
554 |
|
|
555 |
|
@param |
556 |
|
|
557 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
558 |
0 |
public void setMapToUnit(final long mapToUnit)... |
559 |
|
{ |
560 |
0 |
this._mapToUnit = mapToUnit; |
561 |
0 |
this._has_mapToUnit = true; |
562 |
|
} |
563 |
|
|
564 |
|
|
565 |
|
|
566 |
|
|
567 |
|
@param |
568 |
|
@throws |
569 |
|
|
570 |
|
|
571 |
|
@throws |
572 |
|
|
573 |
|
@return |
574 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
575 |
0 |
public static jalview.schemabinding.version2.MapListType unmarshal(... |
576 |
|
final java.io.Reader reader) |
577 |
|
throws org.exolab.castor.xml.MarshalException, |
578 |
|
org.exolab.castor.xml.ValidationException |
579 |
|
{ |
580 |
0 |
return (jalview.schemabinding.version2.MapListType) Unmarshaller |
581 |
|
.unmarshal(jalview.schemabinding.version2.MapListType.class, |
582 |
|
reader); |
583 |
|
} |
584 |
|
|
585 |
|
|
586 |
|
|
587 |
|
|
588 |
|
@throws |
589 |
|
|
590 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
591 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
592 |
|
{ |
593 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
594 |
0 |
validator.validate(this); |
595 |
|
} |
596 |
|
|
597 |
|
} |