1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package jalview.xml.binding.jalview; |
9 |
|
|
10 |
|
import java.util.ArrayList; |
11 |
|
import java.util.List; |
12 |
|
import javax.xml.bind.annotation.XmlAccessType; |
13 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
14 |
|
import javax.xml.bind.annotation.XmlAttribute; |
15 |
|
import javax.xml.bind.annotation.XmlElement; |
16 |
|
import javax.xml.bind.annotation.XmlRootElement; |
17 |
|
import javax.xml.bind.annotation.XmlType; |
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
62 |
|
@XmlType(name = "", propOrder = { "dbRef" }) |
63 |
|
@XmlRootElement(name = "Sequence") |
|
|
| 71.4% |
Uncovered Elements: 4 (14) |
Complexity: 6 |
Complexity Density: 0.86 |
|
64 |
|
public class Sequence extends SequenceType |
65 |
|
{ |
66 |
|
|
67 |
|
@XmlElement(name = "DBRef") |
68 |
|
protected List<Sequence.DBRef> dbRef; |
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
@XmlAttribute(name = "dsseqid") |
76 |
|
protected String dsseqid; |
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
@XmlAttribute(name = "biotype") |
83 |
|
protected String biotype; |
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
@link |
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
@return |
111 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
112 |
3509 |
public List<Sequence.DBRef> getDBRef()... |
113 |
|
{ |
114 |
3509 |
if (dbRef == null) |
115 |
|
{ |
116 |
808 |
dbRef = new ArrayList<Sequence.DBRef>(); |
117 |
|
} |
118 |
3509 |
return this.dbRef; |
119 |
|
} |
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
@return@link |
126 |
|
|
127 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
128 |
2158 |
public String getDsseqid()... |
129 |
|
{ |
130 |
2158 |
return dsseqid; |
131 |
|
} |
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
@param |
137 |
|
@link |
138 |
|
|
139 |
|
@see |
140 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
141 |
760 |
public void setDsseqid(String value)... |
142 |
|
{ |
143 |
760 |
this.dsseqid = value; |
144 |
|
} |
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
@return@link |
150 |
|
|
151 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
152 |
0 |
public String getBiotype()... |
153 |
|
{ |
154 |
0 |
return biotype; |
155 |
|
} |
156 |
|
|
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
@param |
161 |
|
@link |
162 |
|
|
163 |
|
@see |
164 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
165 |
0 |
public void setBiotype(String value)... |
166 |
|
{ |
167 |
0 |
this.biotype = value; |
168 |
|
} |
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
|
173 |
|
|
174 |
|
|
175 |
|
|
176 |
|
|
177 |
|
|
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
188 |
|
|
189 |
|
|
190 |
|
|
191 |
|
|
192 |
|
|
193 |
|
|
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
|
199 |
|
|
200 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
201 |
|
@XmlType(name = "", propOrder = { "mapping" }) |
|
|
| 100% |
Uncovered Elements: 0 (32) |
Complexity: 14 |
Complexity Density: 0.88 |
|
202 |
|
public static class DBRef |
203 |
|
{ |
204 |
|
|
205 |
|
@XmlElement(name = "Mapping") |
206 |
|
protected Mapping mapping; |
207 |
|
|
208 |
|
@XmlAttribute(name = "source") |
209 |
|
protected String source; |
210 |
|
|
211 |
|
@XmlAttribute(name = "version") |
212 |
|
protected String version; |
213 |
|
|
214 |
|
@XmlAttribute(name = "accessionId") |
215 |
|
protected String accessionId; |
216 |
|
|
217 |
|
|
218 |
|
|
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
@XmlAttribute(name = "locus") |
223 |
|
protected Boolean locus; |
224 |
|
|
225 |
|
|
226 |
|
|
227 |
|
|
228 |
|
|
229 |
|
|
230 |
|
@XmlAttribute(name = "canonical") |
231 |
|
protected Boolean canonical; |
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
|
236 |
|
@return@link |
237 |
|
|
238 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
239 |
1137 |
public Mapping getMapping()... |
240 |
|
{ |
241 |
1137 |
return mapping; |
242 |
|
} |
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
|
247 |
|
@param |
248 |
|
@link |
249 |
|
|
250 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
251 |
2 |
public void setMapping(Mapping value)... |
252 |
|
{ |
253 |
2 |
this.mapping = value; |
254 |
|
} |
255 |
|
|
256 |
|
|
257 |
|
|
258 |
|
|
259 |
|
@return@link |
260 |
|
|
261 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
262 |
1091 |
public String getSource()... |
263 |
|
{ |
264 |
1091 |
return source; |
265 |
|
} |
266 |
|
|
267 |
|
|
268 |
|
|
269 |
|
|
270 |
|
@param |
271 |
|
@link |
272 |
|
|
273 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
274 |
234 |
public void setSource(String value)... |
275 |
|
{ |
276 |
234 |
this.source = value; |
277 |
|
} |
278 |
|
|
279 |
|
|
280 |
|
|
281 |
|
|
282 |
|
@return@link |
283 |
|
|
284 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
285 |
1091 |
public String getVersion()... |
286 |
|
{ |
287 |
1091 |
return version; |
288 |
|
} |
289 |
|
|
290 |
|
|
291 |
|
|
292 |
|
|
293 |
|
@param |
294 |
|
@link |
295 |
|
|
296 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
297 |
234 |
public void setVersion(String value)... |
298 |
|
{ |
299 |
234 |
this.version = value; |
300 |
|
} |
301 |
|
|
302 |
|
|
303 |
|
|
304 |
|
|
305 |
|
@return@link |
306 |
|
|
307 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
308 |
1091 |
public String getAccessionId()... |
309 |
|
{ |
310 |
1091 |
return accessionId; |
311 |
|
} |
312 |
|
|
313 |
|
|
314 |
|
|
315 |
|
|
316 |
|
@param |
317 |
|
@link |
318 |
|
|
319 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
320 |
234 |
public void setAccessionId(String value)... |
321 |
|
{ |
322 |
234 |
this.accessionId = value; |
323 |
|
} |
324 |
|
|
325 |
|
|
326 |
|
|
327 |
|
|
328 |
|
|
329 |
|
@return@link |
330 |
|
|
331 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
332 |
1091 |
public boolean isLocus()... |
333 |
|
{ |
334 |
1091 |
if (locus == null) |
335 |
|
{ |
336 |
1068 |
return false; |
337 |
|
} |
338 |
|
else |
339 |
|
{ |
340 |
23 |
return locus; |
341 |
|
} |
342 |
|
} |
343 |
|
|
344 |
|
|
345 |
|
|
346 |
|
|
347 |
|
@param |
348 |
|
@link |
349 |
|
|
350 |
|
@see |
351 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
352 |
1 |
public void setLocus(Boolean value)... |
353 |
|
{ |
354 |
1 |
this.locus = value; |
355 |
|
} |
356 |
|
|
357 |
|
|
358 |
|
|
359 |
|
|
360 |
|
|
361 |
|
@return@link |
362 |
|
|
363 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
364 |
1091 |
public boolean isCanonical()... |
365 |
|
{ |
366 |
1091 |
if (canonical == null) |
367 |
|
{ |
368 |
925 |
return false; |
369 |
|
} |
370 |
|
else |
371 |
|
{ |
372 |
166 |
return canonical; |
373 |
|
} |
374 |
|
} |
375 |
|
|
376 |
|
|
377 |
|
|
378 |
|
|
379 |
|
@param |
380 |
|
@link |
381 |
|
|
382 |
|
@see |
383 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
384 |
234 |
public void setCanonical(Boolean value)... |
385 |
|
{ |
386 |
234 |
this.canonical = value; |
387 |
|
} |
388 |
|
|
389 |
|
} |
390 |
|
|
391 |
|
} |