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 |
|
|
|
|
| 0% |
Uncovered Elements: 92 (92) |
Complexity: 39 |
Complexity Density: 0.75 |
|
22 |
|
public class AlcodonFrame implements java.io.Serializable |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private java.util.Vector _alcodonList; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private java.util.Vector _alcodMapList; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
43 |
0 |
public AlcodonFrame()... |
44 |
|
{ |
45 |
0 |
super(); |
46 |
0 |
this._alcodonList = new java.util.Vector(); |
47 |
0 |
this._alcodMapList = new java.util.Vector(); |
48 |
|
} |
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
@param |
58 |
|
@throws |
59 |
|
|
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0 |
public void addAlcodMap(... |
62 |
|
final jalview.schemabinding.version2.AlcodMap vAlcodMap) |
63 |
|
throws java.lang.IndexOutOfBoundsException |
64 |
|
{ |
65 |
0 |
this._alcodMapList.addElement(vAlcodMap); |
66 |
|
} |
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
@param |
72 |
|
@param |
73 |
|
@throws |
74 |
|
|
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0 |
public void addAlcodMap(final int index,... |
77 |
|
final jalview.schemabinding.version2.AlcodMap vAlcodMap) |
78 |
|
throws java.lang.IndexOutOfBoundsException |
79 |
|
{ |
80 |
0 |
this._alcodMapList.add(index, vAlcodMap); |
81 |
|
} |
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
@param |
87 |
|
@throws |
88 |
|
|
89 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
0 |
public void addAlcodon(... |
91 |
|
final jalview.schemabinding.version2.Alcodon vAlcodon) |
92 |
|
throws java.lang.IndexOutOfBoundsException |
93 |
|
{ |
94 |
0 |
this._alcodonList.addElement(vAlcodon); |
95 |
|
} |
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
@param |
101 |
|
@param |
102 |
|
@throws |
103 |
|
|
104 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
105 |
0 |
public void addAlcodon(final int index,... |
106 |
|
final jalview.schemabinding.version2.Alcodon vAlcodon) |
107 |
|
throws java.lang.IndexOutOfBoundsException |
108 |
|
{ |
109 |
0 |
this._alcodonList.add(index, vAlcodon); |
110 |
|
} |
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
@return |
116 |
|
|
117 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
118 |
0 |
public java.util.Enumeration enumerateAlcodMap()... |
119 |
|
{ |
120 |
0 |
return this._alcodMapList.elements(); |
121 |
|
} |
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
@return |
127 |
|
|
128 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
129 |
0 |
public java.util.Enumeration enumerateAlcodon()... |
130 |
|
{ |
131 |
0 |
return this._alcodonList.elements(); |
132 |
|
} |
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
@param |
138 |
|
@throws |
139 |
|
|
140 |
|
@return |
141 |
|
|
142 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
143 |
0 |
public jalview.schemabinding.version2.AlcodMap getAlcodMap(final int index)... |
144 |
|
throws java.lang.IndexOutOfBoundsException |
145 |
|
{ |
146 |
|
|
147 |
0 |
if (index < 0 || index >= this._alcodMapList.size()) |
148 |
|
{ |
149 |
0 |
throw new IndexOutOfBoundsException("getAlcodMap: Index value '" |
150 |
|
+ index + "' not in range [0.." |
151 |
|
+ (this._alcodMapList.size() - 1) + "]"); |
152 |
|
} |
153 |
|
|
154 |
0 |
return (jalview.schemabinding.version2.AlcodMap) _alcodMapList |
155 |
|
.get(index); |
156 |
|
} |
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
@return |
166 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
167 |
0 |
public jalview.schemabinding.version2.AlcodMap[] getAlcodMap()... |
168 |
|
{ |
169 |
0 |
jalview.schemabinding.version2.AlcodMap[] array = new jalview.schemabinding.version2.AlcodMap[0]; |
170 |
0 |
return (jalview.schemabinding.version2.AlcodMap[]) this._alcodMapList |
171 |
|
.toArray(array); |
172 |
|
} |
173 |
|
|
174 |
|
|
175 |
|
|
176 |
|
|
177 |
|
@return |
178 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
179 |
0 |
public int getAlcodMapCount()... |
180 |
|
{ |
181 |
0 |
return this._alcodMapList.size(); |
182 |
|
} |
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
@param |
188 |
|
@throws |
189 |
|
|
190 |
|
@return |
191 |
|
|
192 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
193 |
0 |
public jalview.schemabinding.version2.Alcodon getAlcodon(final int index)... |
194 |
|
throws java.lang.IndexOutOfBoundsException |
195 |
|
{ |
196 |
|
|
197 |
0 |
if (index < 0 || index >= this._alcodonList.size()) |
198 |
|
{ |
199 |
0 |
throw new IndexOutOfBoundsException("getAlcodon: Index value '" |
200 |
|
+ index + "' not in range [0.." |
201 |
|
+ (this._alcodonList.size() - 1) + "]"); |
202 |
|
} |
203 |
|
|
204 |
0 |
return (jalview.schemabinding.version2.Alcodon) _alcodonList.get(index); |
205 |
|
} |
206 |
|
|
207 |
|
|
208 |
|
|
209 |
|
|
210 |
|
|
211 |
|
|
212 |
|
|
213 |
|
|
214 |
|
@return |
215 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
216 |
0 |
public jalview.schemabinding.version2.Alcodon[] getAlcodon()... |
217 |
|
{ |
218 |
0 |
jalview.schemabinding.version2.Alcodon[] array = new jalview.schemabinding.version2.Alcodon[0]; |
219 |
0 |
return (jalview.schemabinding.version2.Alcodon[]) this._alcodonList |
220 |
|
.toArray(array); |
221 |
|
} |
222 |
|
|
223 |
|
|
224 |
|
|
225 |
|
|
226 |
|
@return |
227 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
228 |
0 |
public int getAlcodonCount()... |
229 |
|
{ |
230 |
0 |
return this._alcodonList.size(); |
231 |
|
} |
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
|
236 |
|
@return |
237 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
238 |
0 |
public boolean isValid()... |
239 |
|
{ |
240 |
0 |
try |
241 |
|
{ |
242 |
0 |
validate(); |
243 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
244 |
|
{ |
245 |
0 |
return false; |
246 |
|
} |
247 |
0 |
return true; |
248 |
|
} |
249 |
|
|
250 |
|
|
251 |
|
|
252 |
|
|
253 |
|
@param |
254 |
|
@throws |
255 |
|
|
256 |
|
|
257 |
|
@throws |
258 |
|
|
259 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
260 |
0 |
public void marshal(final java.io.Writer out)... |
261 |
|
throws org.exolab.castor.xml.MarshalException, |
262 |
|
org.exolab.castor.xml.ValidationException |
263 |
|
{ |
264 |
0 |
Marshaller.marshal(this, out); |
265 |
|
} |
266 |
|
|
267 |
|
|
268 |
|
|
269 |
|
|
270 |
|
@param |
271 |
|
@throws |
272 |
|
|
273 |
|
@throws |
274 |
|
|
275 |
|
@throws |
276 |
|
|
277 |
|
|
278 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
279 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
280 |
|
throws java.io.IOException, |
281 |
|
org.exolab.castor.xml.MarshalException, |
282 |
|
org.exolab.castor.xml.ValidationException |
283 |
|
{ |
284 |
0 |
Marshaller.marshal(this, handler); |
285 |
|
} |
286 |
|
|
287 |
|
|
288 |
|
|
289 |
|
|
290 |
|
@param |
291 |
|
@return |
292 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
293 |
0 |
public boolean removeAlcodMap(... |
294 |
|
final jalview.schemabinding.version2.AlcodMap vAlcodMap) |
295 |
|
{ |
296 |
0 |
boolean removed = _alcodMapList.remove(vAlcodMap); |
297 |
0 |
return removed; |
298 |
|
} |
299 |
|
|
300 |
|
|
301 |
|
|
302 |
|
|
303 |
|
@param |
304 |
|
@return |
305 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
306 |
0 |
public jalview.schemabinding.version2.AlcodMap removeAlcodMapAt(... |
307 |
|
final int index) |
308 |
|
{ |
309 |
0 |
java.lang.Object obj = this._alcodMapList.remove(index); |
310 |
0 |
return (jalview.schemabinding.version2.AlcodMap) obj; |
311 |
|
} |
312 |
|
|
313 |
|
|
314 |
|
|
315 |
|
|
316 |
|
@param |
317 |
|
@return |
318 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
319 |
0 |
public boolean removeAlcodon(... |
320 |
|
final jalview.schemabinding.version2.Alcodon vAlcodon) |
321 |
|
{ |
322 |
0 |
boolean removed = _alcodonList.remove(vAlcodon); |
323 |
0 |
return removed; |
324 |
|
} |
325 |
|
|
326 |
|
|
327 |
|
|
328 |
|
|
329 |
|
@param |
330 |
|
@return |
331 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
332 |
0 |
public jalview.schemabinding.version2.Alcodon removeAlcodonAt(... |
333 |
|
final int index) |
334 |
|
{ |
335 |
0 |
java.lang.Object obj = this._alcodonList.remove(index); |
336 |
0 |
return (jalview.schemabinding.version2.Alcodon) obj; |
337 |
|
} |
338 |
|
|
339 |
|
|
340 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
341 |
0 |
public void removeAllAlcodMap()... |
342 |
|
{ |
343 |
0 |
this._alcodMapList.clear(); |
344 |
|
} |
345 |
|
|
346 |
|
|
347 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
348 |
0 |
public void removeAllAlcodon()... |
349 |
|
{ |
350 |
0 |
this._alcodonList.clear(); |
351 |
|
} |
352 |
|
|
353 |
|
|
354 |
|
|
355 |
|
|
356 |
|
@param |
357 |
|
@param |
358 |
|
@throws |
359 |
|
|
360 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
361 |
0 |
public void setAlcodMap(final int index,... |
362 |
|
final jalview.schemabinding.version2.AlcodMap vAlcodMap) |
363 |
|
throws java.lang.IndexOutOfBoundsException |
364 |
|
{ |
365 |
|
|
366 |
0 |
if (index < 0 || index >= this._alcodMapList.size()) |
367 |
|
{ |
368 |
0 |
throw new IndexOutOfBoundsException("setAlcodMap: Index value '" |
369 |
|
+ index + "' not in range [0.." |
370 |
|
+ (this._alcodMapList.size() - 1) + "]"); |
371 |
|
} |
372 |
|
|
373 |
0 |
this._alcodMapList.set(index, vAlcodMap); |
374 |
|
} |
375 |
|
|
376 |
|
|
377 |
|
|
378 |
|
|
379 |
|
@param |
380 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
381 |
0 |
public void setAlcodMap(... |
382 |
|
final jalview.schemabinding.version2.AlcodMap[] vAlcodMapArray) |
383 |
|
{ |
384 |
|
|
385 |
0 |
_alcodMapList.clear(); |
386 |
|
|
387 |
0 |
for (int i = 0; i < vAlcodMapArray.length; i++) |
388 |
|
{ |
389 |
0 |
this._alcodMapList.add(vAlcodMapArray[i]); |
390 |
|
} |
391 |
|
} |
392 |
|
|
393 |
|
|
394 |
|
|
395 |
|
|
396 |
|
@param |
397 |
|
@param |
398 |
|
@throws |
399 |
|
|
400 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
401 |
0 |
public void setAlcodon(final int index,... |
402 |
|
final jalview.schemabinding.version2.Alcodon vAlcodon) |
403 |
|
throws java.lang.IndexOutOfBoundsException |
404 |
|
{ |
405 |
|
|
406 |
0 |
if (index < 0 || index >= this._alcodonList.size()) |
407 |
|
{ |
408 |
0 |
throw new IndexOutOfBoundsException("setAlcodon: Index value '" |
409 |
|
+ index + "' not in range [0.." |
410 |
|
+ (this._alcodonList.size() - 1) + "]"); |
411 |
|
} |
412 |
|
|
413 |
0 |
this._alcodonList.set(index, vAlcodon); |
414 |
|
} |
415 |
|
|
416 |
|
|
417 |
|
|
418 |
|
|
419 |
|
@param |
420 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
421 |
0 |
public void setAlcodon(... |
422 |
|
final jalview.schemabinding.version2.Alcodon[] vAlcodonArray) |
423 |
|
{ |
424 |
|
|
425 |
0 |
_alcodonList.clear(); |
426 |
|
|
427 |
0 |
for (int i = 0; i < vAlcodonArray.length; i++) |
428 |
|
{ |
429 |
0 |
this._alcodonList.add(vAlcodonArray[i]); |
430 |
|
} |
431 |
|
} |
432 |
|
|
433 |
|
|
434 |
|
|
435 |
|
|
436 |
|
@param |
437 |
|
@throws |
438 |
|
|
439 |
|
|
440 |
|
@throws |
441 |
|
|
442 |
|
@return |
443 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
444 |
0 |
public static jalview.schemabinding.version2.AlcodonFrame unmarshal(... |
445 |
|
final java.io.Reader reader) |
446 |
|
throws org.exolab.castor.xml.MarshalException, |
447 |
|
org.exolab.castor.xml.ValidationException |
448 |
|
{ |
449 |
0 |
return (jalview.schemabinding.version2.AlcodonFrame) Unmarshaller |
450 |
|
.unmarshal(jalview.schemabinding.version2.AlcodonFrame.class, |
451 |
|
reader); |
452 |
|
} |
453 |
|
|
454 |
|
|
455 |
|
|
456 |
|
|
457 |
|
@throws |
458 |
|
|
459 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
460 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
461 |
|
{ |
462 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
463 |
0 |
validator.validate(this); |
464 |
|
} |
465 |
|
|
466 |
|
} |