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 |
|
|
|
|
| 30.3% |
Uncovered Elements: 46 (66) |
Complexity: 29 |
Complexity Density: 0.78 |
|
22 |
|
public class Pdbentry implements java.io.Serializable |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private java.lang.String _id; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private java.lang.String _type; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private java.lang.String _file; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
private java.util.Vector _items; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
53 |
262 |
public Pdbentry()... |
54 |
|
{ |
55 |
262 |
super(); |
56 |
262 |
this._items = new java.util.Vector(); |
57 |
|
} |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
@param |
67 |
|
@throws |
68 |
|
|
69 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
70 |
84 |
public void addPdbentryItem(... |
71 |
|
final jalview.schemabinding.version2.PdbentryItem vPdbentryItem) |
72 |
|
throws java.lang.IndexOutOfBoundsException |
73 |
|
{ |
74 |
84 |
this._items.addElement(vPdbentryItem); |
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
@param |
81 |
|
@param |
82 |
|
@throws |
83 |
|
|
84 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
0 |
public void addPdbentryItem(final int index,... |
86 |
|
final jalview.schemabinding.version2.PdbentryItem vPdbentryItem) |
87 |
|
throws java.lang.IndexOutOfBoundsException |
88 |
|
{ |
89 |
0 |
this._items.add(index, vPdbentryItem); |
90 |
|
} |
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
@return |
96 |
|
|
97 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
0 |
public java.util.Enumeration enumeratePdbentryItem()... |
99 |
|
{ |
100 |
0 |
return this._items.elements(); |
101 |
|
} |
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
@return |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
720 |
public java.lang.String getFile()... |
109 |
|
{ |
110 |
720 |
return this._file; |
111 |
|
} |
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
@return |
117 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
118 |
618 |
public java.lang.String getId()... |
119 |
|
{ |
120 |
618 |
return this._id; |
121 |
|
} |
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
@param |
127 |
|
@throws |
128 |
|
|
129 |
|
@return |
130 |
|
|
131 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
132 |
0 |
public jalview.schemabinding.version2.PdbentryItem getPdbentryItem(... |
133 |
|
final int index) throws java.lang.IndexOutOfBoundsException |
134 |
|
{ |
135 |
|
|
136 |
0 |
if (index < 0 || index >= this._items.size()) |
137 |
|
{ |
138 |
0 |
throw new IndexOutOfBoundsException("getPdbentryItem: Index value '" |
139 |
|
+ index + "' not in range [0.." + (this._items.size() - 1) |
140 |
|
+ "]"); |
141 |
|
} |
142 |
|
|
143 |
0 |
return (jalview.schemabinding.version2.PdbentryItem) _items.get(index); |
144 |
|
} |
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
@return |
154 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
155 |
262 |
public jalview.schemabinding.version2.PdbentryItem[] getPdbentryItem()... |
156 |
|
{ |
157 |
262 |
jalview.schemabinding.version2.PdbentryItem[] array = new jalview.schemabinding.version2.PdbentryItem[0]; |
158 |
262 |
return (jalview.schemabinding.version2.PdbentryItem[]) this._items |
159 |
|
.toArray(array); |
160 |
|
} |
161 |
|
|
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
@return |
166 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
167 |
0 |
public int getPdbentryItemCount()... |
168 |
|
{ |
169 |
0 |
return this._items.size(); |
170 |
|
} |
171 |
|
|
172 |
|
|
173 |
|
|
174 |
|
|
175 |
|
@return |
176 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
177 |
248 |
public java.lang.String getType()... |
178 |
|
{ |
179 |
248 |
return this._type; |
180 |
|
} |
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
@return |
186 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
187 |
0 |
public boolean isValid()... |
188 |
|
{ |
189 |
0 |
try |
190 |
|
{ |
191 |
0 |
validate(); |
192 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
193 |
|
{ |
194 |
0 |
return false; |
195 |
|
} |
196 |
0 |
return true; |
197 |
|
} |
198 |
|
|
199 |
|
|
200 |
|
|
201 |
|
|
202 |
|
@param |
203 |
|
@throws |
204 |
|
|
205 |
|
|
206 |
|
@throws |
207 |
|
|
208 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
209 |
0 |
public void marshal(final java.io.Writer out)... |
210 |
|
throws org.exolab.castor.xml.MarshalException, |
211 |
|
org.exolab.castor.xml.ValidationException |
212 |
|
{ |
213 |
0 |
Marshaller.marshal(this, out); |
214 |
|
} |
215 |
|
|
216 |
|
|
217 |
|
|
218 |
|
|
219 |
|
@param |
220 |
|
@throws |
221 |
|
|
222 |
|
@throws |
223 |
|
|
224 |
|
@throws |
225 |
|
|
226 |
|
|
227 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
228 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
229 |
|
throws java.io.IOException, |
230 |
|
org.exolab.castor.xml.MarshalException, |
231 |
|
org.exolab.castor.xml.ValidationException |
232 |
|
{ |
233 |
0 |
Marshaller.marshal(this, handler); |
234 |
|
} |
235 |
|
|
236 |
|
|
237 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
238 |
0 |
public void removeAllPdbentryItem()... |
239 |
|
{ |
240 |
0 |
this._items.clear(); |
241 |
|
} |
242 |
|
|
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
@param |
247 |
|
@return |
248 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
249 |
0 |
public boolean removePdbentryItem(... |
250 |
|
final jalview.schemabinding.version2.PdbentryItem vPdbentryItem) |
251 |
|
{ |
252 |
0 |
boolean removed = _items.remove(vPdbentryItem); |
253 |
0 |
return removed; |
254 |
|
} |
255 |
|
|
256 |
|
|
257 |
|
|
258 |
|
|
259 |
|
@param |
260 |
|
@return |
261 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
262 |
0 |
public jalview.schemabinding.version2.PdbentryItem removePdbentryItemAt(... |
263 |
|
final int index) |
264 |
|
{ |
265 |
0 |
java.lang.Object obj = this._items.remove(index); |
266 |
0 |
return (jalview.schemabinding.version2.PdbentryItem) obj; |
267 |
|
} |
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
@param |
273 |
|
|
274 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
275 |
184 |
public void setFile(final java.lang.String file)... |
276 |
|
{ |
277 |
184 |
this._file = file; |
278 |
|
} |
279 |
|
|
280 |
|
|
281 |
|
|
282 |
|
|
283 |
|
@param |
284 |
|
|
285 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
286 |
262 |
public void setId(final java.lang.String id)... |
287 |
|
{ |
288 |
262 |
this._id = id; |
289 |
|
} |
290 |
|
|
291 |
|
|
292 |
|
|
293 |
|
|
294 |
|
@param |
295 |
|
@param |
296 |
|
@throws |
297 |
|
|
298 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
299 |
0 |
public void setPdbentryItem(final int index,... |
300 |
|
final jalview.schemabinding.version2.PdbentryItem vPdbentryItem) |
301 |
|
throws java.lang.IndexOutOfBoundsException |
302 |
|
{ |
303 |
|
|
304 |
0 |
if (index < 0 || index >= this._items.size()) |
305 |
|
{ |
306 |
0 |
throw new IndexOutOfBoundsException("setPdbentryItem: Index value '" |
307 |
|
+ index + "' not in range [0.." + (this._items.size() - 1) |
308 |
|
+ "]"); |
309 |
|
} |
310 |
|
|
311 |
0 |
this._items.set(index, vPdbentryItem); |
312 |
|
} |
313 |
|
|
314 |
|
|
315 |
|
|
316 |
|
|
317 |
|
@param |
318 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
319 |
0 |
public void setPdbentryItem(... |
320 |
|
final jalview.schemabinding.version2.PdbentryItem[] vPdbentryItemArray) |
321 |
|
{ |
322 |
|
|
323 |
0 |
_items.clear(); |
324 |
|
|
325 |
0 |
for (int i = 0; i < vPdbentryItemArray.length; i++) |
326 |
|
{ |
327 |
0 |
this._items.add(vPdbentryItemArray[i]); |
328 |
|
} |
329 |
|
} |
330 |
|
|
331 |
|
|
332 |
|
|
333 |
|
|
334 |
|
@param |
335 |
|
|
336 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
337 |
212 |
public void setType(final java.lang.String type)... |
338 |
|
{ |
339 |
212 |
this._type = type; |
340 |
|
} |
341 |
|
|
342 |
|
|
343 |
|
|
344 |
|
|
345 |
|
@param |
346 |
|
@throws |
347 |
|
|
348 |
|
|
349 |
|
@throws |
350 |
|
|
351 |
|
@return |
352 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
353 |
0 |
public static jalview.schemabinding.version2.Pdbentry unmarshal(... |
354 |
|
final java.io.Reader reader) |
355 |
|
throws org.exolab.castor.xml.MarshalException, |
356 |
|
org.exolab.castor.xml.ValidationException |
357 |
|
{ |
358 |
0 |
return (jalview.schemabinding.version2.Pdbentry) Unmarshaller |
359 |
|
.unmarshal(jalview.schemabinding.version2.Pdbentry.class, |
360 |
|
reader); |
361 |
|
} |
362 |
|
|
363 |
|
|
364 |
|
|
365 |
|
|
366 |
|
@throws |
367 |
|
|
368 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
369 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
370 |
|
{ |
371 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
372 |
0 |
validator.validate(this); |
373 |
|
} |
374 |
|
|
375 |
|
} |