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 |
|
|
|
|
| 63.6% |
Uncovered Elements: 20 (55) |
Complexity: 25 |
Complexity Density: 0.81 |
|
22 |
|
public class AnnotationElement implements java.io.Serializable |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private int _position; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private boolean _has_position; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private int _colour; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
private boolean _has_colour; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
private java.lang.String _displayCharacter; |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
private java.lang.String _description; |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
private java.lang.String _secondaryStructure; |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
private float _value; |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
private boolean _has_value; |
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
78 |
97584 |
public AnnotationElement()... |
79 |
|
{ |
80 |
97584 |
super(); |
81 |
|
} |
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
0 |
public void deleteColour()... |
90 |
|
{ |
91 |
0 |
this._has_colour = false; |
92 |
|
} |
93 |
|
|
94 |
|
|
95 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
96 |
0 |
public void deletePosition()... |
97 |
|
{ |
98 |
0 |
this._has_position = false; |
99 |
|
} |
100 |
|
|
101 |
|
|
102 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
0 |
public void deleteValue()... |
104 |
|
{ |
105 |
0 |
this._has_value = false; |
106 |
|
} |
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
@return |
112 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
113 |
95953 |
public int getColour()... |
114 |
|
{ |
115 |
95953 |
return this._colour; |
116 |
|
} |
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
@return |
122 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
129639 |
public java.lang.String getDescription()... |
124 |
|
{ |
125 |
129639 |
return this._description; |
126 |
|
} |
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
@return |
132 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
133 |
129639 |
public java.lang.String getDisplayCharacter()... |
134 |
|
{ |
135 |
129639 |
return this._displayCharacter; |
136 |
|
} |
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
@return |
142 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
143 |
129639 |
public int getPosition()... |
144 |
|
{ |
145 |
129639 |
return this._position; |
146 |
|
} |
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
@return |
152 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
153 |
143215 |
public java.lang.String getSecondaryStructure()... |
154 |
|
{ |
155 |
143215 |
return this._secondaryStructure; |
156 |
|
} |
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
@return |
162 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
163 |
126903 |
public float getValue()... |
164 |
|
{ |
165 |
126903 |
return this._value; |
166 |
|
} |
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
@return |
172 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
173 |
66326 |
public boolean hasColour()... |
174 |
|
{ |
175 |
66326 |
return this._has_colour; |
176 |
|
} |
177 |
|
|
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
@return |
182 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
183 |
66326 |
public boolean hasPosition()... |
184 |
|
{ |
185 |
66326 |
return this._has_position; |
186 |
|
} |
187 |
|
|
188 |
|
|
189 |
|
|
190 |
|
|
191 |
|
@return |
192 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
193 |
66326 |
public boolean hasValue()... |
194 |
|
{ |
195 |
66326 |
return this._has_value; |
196 |
|
} |
197 |
|
|
198 |
|
|
199 |
|
|
200 |
|
|
201 |
|
@return |
202 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
203 |
0 |
public boolean isValid()... |
204 |
|
{ |
205 |
0 |
try |
206 |
|
{ |
207 |
0 |
validate(); |
208 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
209 |
|
{ |
210 |
0 |
return false; |
211 |
|
} |
212 |
0 |
return true; |
213 |
|
} |
214 |
|
|
215 |
|
|
216 |
|
|
217 |
|
|
218 |
|
@param |
219 |
|
@throws |
220 |
|
|
221 |
|
|
222 |
|
@throws |
223 |
|
|
224 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
225 |
0 |
public void marshal(final java.io.Writer out)... |
226 |
|
throws org.exolab.castor.xml.MarshalException, |
227 |
|
org.exolab.castor.xml.ValidationException |
228 |
|
{ |
229 |
0 |
Marshaller.marshal(this, out); |
230 |
|
} |
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
@param |
236 |
|
@throws |
237 |
|
|
238 |
|
@throws |
239 |
|
|
240 |
|
@throws |
241 |
|
|
242 |
|
|
243 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
244 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
245 |
|
throws java.io.IOException, |
246 |
|
org.exolab.castor.xml.MarshalException, |
247 |
|
org.exolab.castor.xml.ValidationException |
248 |
|
{ |
249 |
0 |
Marshaller.marshal(this, handler); |
250 |
|
} |
251 |
|
|
252 |
|
|
253 |
|
|
254 |
|
|
255 |
|
@param |
256 |
|
|
257 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
258 |
50839 |
public void setColour(final int colour)... |
259 |
|
{ |
260 |
50839 |
this._colour = colour; |
261 |
50839 |
this._has_colour = true; |
262 |
|
} |
263 |
|
|
264 |
|
|
265 |
|
|
266 |
|
|
267 |
|
@param |
268 |
|
|
269 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
270 |
87136 |
public void setDescription(final java.lang.String description)... |
271 |
|
{ |
272 |
87136 |
this._description = description; |
273 |
|
} |
274 |
|
|
275 |
|
|
276 |
|
|
277 |
|
|
278 |
|
@param |
279 |
|
|
280 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
281 |
90590 |
public void setDisplayCharacter(final java.lang.String displayCharacter)... |
282 |
|
{ |
283 |
90590 |
this._displayCharacter = displayCharacter; |
284 |
|
} |
285 |
|
|
286 |
|
|
287 |
|
|
288 |
|
|
289 |
|
@param |
290 |
|
|
291 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
292 |
97584 |
public void setPosition(final int position)... |
293 |
|
{ |
294 |
97584 |
this._position = position; |
295 |
97584 |
this._has_position = true; |
296 |
|
} |
297 |
|
|
298 |
|
|
299 |
|
|
300 |
|
|
301 |
|
@param |
302 |
|
|
303 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
304 |
13272 |
public void setSecondaryStructure(... |
305 |
|
final java.lang.String secondaryStructure) |
306 |
|
{ |
307 |
13272 |
this._secondaryStructure = secondaryStructure; |
308 |
|
} |
309 |
|
|
310 |
|
|
311 |
|
|
312 |
|
|
313 |
|
@param |
314 |
|
|
315 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
316 |
94362 |
public void setValue(final float value)... |
317 |
|
{ |
318 |
94362 |
this._value = value; |
319 |
94362 |
this._has_value = true; |
320 |
|
} |
321 |
|
|
322 |
|
|
323 |
|
|
324 |
|
|
325 |
|
@param |
326 |
|
@throws |
327 |
|
|
328 |
|
|
329 |
|
@throws |
330 |
|
|
331 |
|
@return |
332 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
333 |
0 |
public static jalview.schemabinding.version2.AnnotationElement unmarshal(... |
334 |
|
final java.io.Reader reader) |
335 |
|
throws org.exolab.castor.xml.MarshalException, |
336 |
|
org.exolab.castor.xml.ValidationException |
337 |
|
{ |
338 |
0 |
return (jalview.schemabinding.version2.AnnotationElement) Unmarshaller |
339 |
|
.unmarshal( |
340 |
|
jalview.schemabinding.version2.AnnotationElement.class, |
341 |
|
reader); |
342 |
|
} |
343 |
|
|
344 |
|
|
345 |
|
|
346 |
|
|
347 |
|
@throws |
348 |
|
|
349 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
350 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
351 |
|
{ |
352 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
353 |
0 |
validator.validate(this); |
354 |
|
} |
355 |
|
|
356 |
|
} |