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