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 |
|
|
|
|
| 25.9% |
Uncovered Elements: 40 (54) |
Complexity: 23 |
Complexity Density: 0.74 |
|
22 |
|
public class Pdbids extends jalview.schemabinding.version2.Pdbentry |
23 |
|
implements java.io.Serializable |
24 |
|
{ |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
private java.util.Vector _structureStateList; |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
39 |
262 |
public Pdbids()... |
40 |
|
{ |
41 |
262 |
super(); |
42 |
262 |
this._structureStateList = new java.util.Vector(); |
43 |
|
} |
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
@param |
53 |
|
@throws |
54 |
|
|
55 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
140 |
public void addStructureState(... |
57 |
|
final jalview.schemabinding.version2.StructureState vStructureState) |
58 |
|
throws java.lang.IndexOutOfBoundsException |
59 |
|
{ |
60 |
140 |
this._structureStateList.addElement(vStructureState); |
61 |
|
} |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
@param |
67 |
|
@param |
68 |
|
@throws |
69 |
|
|
70 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0 |
public void addStructureState(... |
72 |
|
final int index, |
73 |
|
final jalview.schemabinding.version2.StructureState vStructureState) |
74 |
|
throws java.lang.IndexOutOfBoundsException |
75 |
|
{ |
76 |
0 |
this._structureStateList.add(index, vStructureState); |
77 |
|
} |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
@return |
83 |
|
|
84 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
0 |
public java.util.Enumeration enumerateStructureState()... |
86 |
|
{ |
87 |
0 |
return this._structureStateList.elements(); |
88 |
|
} |
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
@param |
94 |
|
@throws |
95 |
|
|
96 |
|
@return |
97 |
|
|
98 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
99 |
120 |
public jalview.schemabinding.version2.StructureState getStructureState(... |
100 |
|
final int index) throws java.lang.IndexOutOfBoundsException |
101 |
|
{ |
102 |
|
|
103 |
120 |
if (index < 0 || index >= this._structureStateList.size()) |
104 |
|
{ |
105 |
0 |
throw new IndexOutOfBoundsException( |
106 |
|
"getStructureState: Index value '" + index |
107 |
|
+ "' not in range [0.." |
108 |
|
+ (this._structureStateList.size() - 1) + "]"); |
109 |
|
} |
110 |
|
|
111 |
120 |
return (jalview.schemabinding.version2.StructureState) _structureStateList |
112 |
|
.get(index); |
113 |
|
} |
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
@return |
124 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
125 |
100 |
public jalview.schemabinding.version2.StructureState[] getStructureState()... |
126 |
|
{ |
127 |
100 |
jalview.schemabinding.version2.StructureState[] array = new jalview.schemabinding.version2.StructureState[0]; |
128 |
100 |
return (jalview.schemabinding.version2.StructureState[]) this._structureStateList |
129 |
|
.toArray(array); |
130 |
|
} |
131 |
|
|
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
@return |
136 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
137 |
187 |
public int getStructureStateCount()... |
138 |
|
{ |
139 |
187 |
return this._structureStateList.size(); |
140 |
|
} |
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
@return |
146 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
147 |
0 |
public boolean isValid()... |
148 |
|
{ |
149 |
0 |
try |
150 |
|
{ |
151 |
0 |
validate(); |
152 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
153 |
|
{ |
154 |
0 |
return false; |
155 |
|
} |
156 |
0 |
return true; |
157 |
|
} |
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
@param |
163 |
|
@throws |
164 |
|
|
165 |
|
|
166 |
|
@throws |
167 |
|
|
168 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
169 |
0 |
public void marshal(final java.io.Writer out)... |
170 |
|
throws org.exolab.castor.xml.MarshalException, |
171 |
|
org.exolab.castor.xml.ValidationException |
172 |
|
{ |
173 |
0 |
Marshaller.marshal(this, out); |
174 |
|
} |
175 |
|
|
176 |
|
|
177 |
|
|
178 |
|
|
179 |
|
@param |
180 |
|
@throws |
181 |
|
|
182 |
|
@throws |
183 |
|
|
184 |
|
@throws |
185 |
|
|
186 |
|
|
187 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
188 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
189 |
|
throws java.io.IOException, |
190 |
|
org.exolab.castor.xml.MarshalException, |
191 |
|
org.exolab.castor.xml.ValidationException |
192 |
|
{ |
193 |
0 |
Marshaller.marshal(this, handler); |
194 |
|
} |
195 |
|
|
196 |
|
|
197 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
198 |
0 |
public void removeAllStructureState()... |
199 |
|
{ |
200 |
0 |
this._structureStateList.clear(); |
201 |
|
} |
202 |
|
|
203 |
|
|
204 |
|
|
205 |
|
|
206 |
|
@param |
207 |
|
@return |
208 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
209 |
0 |
public boolean removeStructureState(... |
210 |
|
final jalview.schemabinding.version2.StructureState vStructureState) |
211 |
|
{ |
212 |
0 |
boolean removed = _structureStateList.remove(vStructureState); |
213 |
0 |
return removed; |
214 |
|
} |
215 |
|
|
216 |
|
|
217 |
|
|
218 |
|
|
219 |
|
@param |
220 |
|
@return |
221 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
222 |
0 |
public jalview.schemabinding.version2.StructureState removeStructureStateAt(... |
223 |
|
final int index) |
224 |
|
{ |
225 |
0 |
java.lang.Object obj = this._structureStateList.remove(index); |
226 |
0 |
return (jalview.schemabinding.version2.StructureState) obj; |
227 |
|
} |
228 |
|
|
229 |
|
|
230 |
|
|
231 |
|
|
232 |
|
@param |
233 |
|
@param |
234 |
|
@throws |
235 |
|
|
236 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
237 |
0 |
public void setStructureState(... |
238 |
|
final int index, |
239 |
|
final jalview.schemabinding.version2.StructureState vStructureState) |
240 |
|
throws java.lang.IndexOutOfBoundsException |
241 |
|
{ |
242 |
|
|
243 |
0 |
if (index < 0 || index >= this._structureStateList.size()) |
244 |
|
{ |
245 |
0 |
throw new IndexOutOfBoundsException( |
246 |
|
"setStructureState: Index value '" + index |
247 |
|
+ "' not in range [0.." |
248 |
|
+ (this._structureStateList.size() - 1) + "]"); |
249 |
|
} |
250 |
|
|
251 |
0 |
this._structureStateList.set(index, vStructureState); |
252 |
|
} |
253 |
|
|
254 |
|
|
255 |
|
|
256 |
|
|
257 |
|
@param |
258 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
259 |
0 |
public void setStructureState(... |
260 |
|
final jalview.schemabinding.version2.StructureState[] vStructureStateArray) |
261 |
|
{ |
262 |
|
|
263 |
0 |
_structureStateList.clear(); |
264 |
|
|
265 |
0 |
for (int i = 0; i < vStructureStateArray.length; i++) |
266 |
|
{ |
267 |
0 |
this._structureStateList.add(vStructureStateArray[i]); |
268 |
|
} |
269 |
|
} |
270 |
|
|
271 |
|
|
272 |
|
|
273 |
|
|
274 |
|
@param |
275 |
|
@throws |
276 |
|
|
277 |
|
|
278 |
|
@throws |
279 |
|
|
280 |
|
@return |
281 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
282 |
0 |
public static jalview.schemabinding.version2.Pdbentry unmarshal(... |
283 |
|
final java.io.Reader reader) |
284 |
|
throws org.exolab.castor.xml.MarshalException, |
285 |
|
org.exolab.castor.xml.ValidationException |
286 |
|
{ |
287 |
0 |
return (jalview.schemabinding.version2.Pdbentry) Unmarshaller |
288 |
|
.unmarshal(jalview.schemabinding.version2.Pdbids.class, reader); |
289 |
|
} |
290 |
|
|
291 |
|
|
292 |
|
|
293 |
|
|
294 |
|
@throws |
295 |
|
|
296 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
297 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
298 |
|
{ |
299 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
300 |
0 |
validator.validate(this); |
301 |
|
} |
302 |
|
|
303 |
|
} |