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 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
53 |
|
@XmlType(name = "", propOrder = { "dbRef" }) |
54 |
|
@XmlRootElement(name = "Sequence") |
|
|
| 71.4% |
Uncovered Elements: 4 (14) |
Complexity: 6 |
Complexity Density: 0.86 |
|
55 |
|
public class Sequence extends SequenceType |
56 |
|
{ |
57 |
|
|
58 |
|
@XmlElement(name = "DBRef") |
59 |
|
protected List<Sequence.DBRef> dbRef; |
60 |
|
|
61 |
|
@XmlAttribute(name = "dsseqid") |
62 |
|
protected String dsseqid; |
63 |
|
|
64 |
|
@XmlAttribute(name = "biotype") |
65 |
|
protected String biotype; |
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
@link |
81 |
|
|
82 |
|
|
83 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
84 |
3509 |
public List<Sequence.DBRef> getDBRef()... |
85 |
|
{ |
86 |
3509 |
if (dbRef == null) |
87 |
|
{ |
88 |
808 |
dbRef = new ArrayList<Sequence.DBRef>(); |
89 |
|
} |
90 |
3509 |
return this.dbRef; |
91 |
|
} |
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
@return@link |
97 |
|
|
98 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
2158 |
public String getDsseqid()... |
100 |
|
{ |
101 |
2158 |
return dsseqid; |
102 |
|
} |
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
@param |
108 |
|
@link |
109 |
|
|
110 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
760 |
public void setDsseqid(String value)... |
112 |
|
{ |
113 |
760 |
this.dsseqid = value; |
114 |
|
} |
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
@return@link |
120 |
|
|
121 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
122 |
0 |
public String getBiotype()... |
123 |
|
{ |
124 |
0 |
return biotype; |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
@param |
131 |
|
@link |
132 |
|
|
133 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
134 |
0 |
public void setBiotype(String value)... |
135 |
|
{ |
136 |
0 |
this.biotype = value; |
137 |
|
} |
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
164 |
|
@XmlType(name = "", propOrder = { "mapping" }) |
|
|
| 100% |
Uncovered Elements: 0 (32) |
Complexity: 14 |
Complexity Density: 0.88 |
|
165 |
|
public static class DBRef |
166 |
|
{ |
167 |
|
|
168 |
|
@XmlElement(name = "Mapping") |
169 |
|
protected Mapping mapping; |
170 |
|
|
171 |
|
@XmlAttribute(name = "source") |
172 |
|
protected String source; |
173 |
|
|
174 |
|
@XmlAttribute(name = "version") |
175 |
|
protected String version; |
176 |
|
|
177 |
|
@XmlAttribute(name = "accessionId") |
178 |
|
protected String accessionId; |
179 |
|
|
180 |
|
@XmlAttribute(name = "locus") |
181 |
|
protected Boolean locus; |
182 |
|
|
183 |
|
@XmlAttribute(name = "canonical") |
184 |
|
protected Boolean canonical; |
185 |
|
|
186 |
|
|
187 |
|
|
188 |
|
|
189 |
|
@return@link |
190 |
|
|
191 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
192 |
1137 |
public Mapping getMapping()... |
193 |
|
{ |
194 |
1137 |
return mapping; |
195 |
|
} |
196 |
|
|
197 |
|
|
198 |
|
|
199 |
|
|
200 |
|
@param |
201 |
|
@link |
202 |
|
|
203 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
204 |
2 |
public void setMapping(Mapping value)... |
205 |
|
{ |
206 |
2 |
this.mapping = value; |
207 |
|
} |
208 |
|
|
209 |
|
|
210 |
|
|
211 |
|
|
212 |
|
@return@link |
213 |
|
|
214 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
215 |
1091 |
public String getSource()... |
216 |
|
{ |
217 |
1091 |
return source; |
218 |
|
} |
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
|
223 |
|
@param |
224 |
|
@link |
225 |
|
|
226 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
227 |
234 |
public void setSource(String value)... |
228 |
|
{ |
229 |
234 |
this.source = value; |
230 |
|
} |
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
@return@link |
236 |
|
|
237 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
238 |
1091 |
public String getVersion()... |
239 |
|
{ |
240 |
1091 |
return version; |
241 |
|
} |
242 |
|
|
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
@param |
247 |
|
@link |
248 |
|
|
249 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
250 |
234 |
public void setVersion(String value)... |
251 |
|
{ |
252 |
234 |
this.version = value; |
253 |
|
} |
254 |
|
|
255 |
|
|
256 |
|
|
257 |
|
|
258 |
|
@return@link |
259 |
|
|
260 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
261 |
1091 |
public String getAccessionId()... |
262 |
|
{ |
263 |
1091 |
return accessionId; |
264 |
|
} |
265 |
|
|
266 |
|
|
267 |
|
|
268 |
|
|
269 |
|
@param |
270 |
|
@link |
271 |
|
|
272 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
273 |
234 |
public void setAccessionId(String value)... |
274 |
|
{ |
275 |
234 |
this.accessionId = value; |
276 |
|
} |
277 |
|
|
278 |
|
|
279 |
|
|
280 |
|
|
281 |
|
@return@link |
282 |
|
|
283 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
284 |
1091 |
public boolean isLocus()... |
285 |
|
{ |
286 |
1091 |
if (locus == null) |
287 |
|
{ |
288 |
1068 |
return false; |
289 |
|
} |
290 |
|
else |
291 |
|
{ |
292 |
23 |
return locus; |
293 |
|
} |
294 |
|
} |
295 |
|
|
296 |
|
|
297 |
|
|
298 |
|
|
299 |
|
@param |
300 |
|
@link |
301 |
|
|
302 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
303 |
1 |
public void setLocus(Boolean value)... |
304 |
|
{ |
305 |
1 |
this.locus = value; |
306 |
|
} |
307 |
|
|
308 |
|
|
309 |
|
|
310 |
|
|
311 |
|
@return@link |
312 |
|
|
313 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
314 |
1091 |
public boolean isCanonical()... |
315 |
|
{ |
316 |
1091 |
if (canonical == null) |
317 |
|
{ |
318 |
925 |
return false; |
319 |
|
} |
320 |
|
else |
321 |
|
{ |
322 |
166 |
return canonical; |
323 |
|
} |
324 |
|
} |
325 |
|
|
326 |
|
|
327 |
|
|
328 |
|
|
329 |
|
@param |
330 |
|
@link |
331 |
|
|
332 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
333 |
234 |
public void setCanonical(Boolean value)... |
334 |
|
{ |
335 |
234 |
this.canonical = value; |
336 |
|
} |
337 |
|
|
338 |
|
} |
339 |
|
|
340 |
|
} |