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 |
|
|
|
|
| 0% |
Uncovered Elements: 43 (43) |
Complexity: 19 |
Complexity Density: 0.76 |
|
22 |
|
public class Alcodon implements java.io.Serializable |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private long _pos1; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private boolean _has_pos1; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private long _pos2; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
private boolean _has_pos2; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
private long _pos3; |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
private boolean _has_pos3; |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0 |
public Alcodon()... |
64 |
|
{ |
65 |
0 |
super(); |
66 |
|
} |
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
0 |
public void deletePos1()... |
75 |
|
{ |
76 |
0 |
this._has_pos1 = false; |
77 |
|
} |
78 |
|
|
79 |
|
|
80 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
0 |
public void deletePos2()... |
82 |
|
{ |
83 |
0 |
this._has_pos2 = false; |
84 |
|
} |
85 |
|
|
86 |
|
|
87 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
0 |
public void deletePos3()... |
89 |
|
{ |
90 |
0 |
this._has_pos3 = false; |
91 |
|
} |
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
@return |
97 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
0 |
public long getPos1()... |
99 |
|
{ |
100 |
0 |
return this._pos1; |
101 |
|
} |
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
@return |
107 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
0 |
public long getPos2()... |
109 |
|
{ |
110 |
0 |
return this._pos2; |
111 |
|
} |
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
@return |
117 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
118 |
0 |
public long getPos3()... |
119 |
|
{ |
120 |
0 |
return this._pos3; |
121 |
|
} |
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
@return |
127 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
128 |
0 |
public boolean hasPos1()... |
129 |
|
{ |
130 |
0 |
return this._has_pos1; |
131 |
|
} |
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
@return |
137 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
138 |
0 |
public boolean hasPos2()... |
139 |
|
{ |
140 |
0 |
return this._has_pos2; |
141 |
|
} |
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
@return |
147 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
148 |
0 |
public boolean hasPos3()... |
149 |
|
{ |
150 |
0 |
return this._has_pos3; |
151 |
|
} |
152 |
|
|
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
@return |
157 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
158 |
0 |
public boolean isValid()... |
159 |
|
{ |
160 |
0 |
try |
161 |
|
{ |
162 |
0 |
validate(); |
163 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
164 |
|
{ |
165 |
0 |
return false; |
166 |
|
} |
167 |
0 |
return true; |
168 |
|
} |
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
|
173 |
|
@param |
174 |
|
@throws |
175 |
|
|
176 |
|
|
177 |
|
@throws |
178 |
|
|
179 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
180 |
0 |
public void marshal(final java.io.Writer out)... |
181 |
|
throws org.exolab.castor.xml.MarshalException, |
182 |
|
org.exolab.castor.xml.ValidationException |
183 |
|
{ |
184 |
0 |
Marshaller.marshal(this, out); |
185 |
|
} |
186 |
|
|
187 |
|
|
188 |
|
|
189 |
|
|
190 |
|
@param |
191 |
|
@throws |
192 |
|
|
193 |
|
@throws |
194 |
|
|
195 |
|
@throws |
196 |
|
|
197 |
|
|
198 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
199 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
200 |
|
throws java.io.IOException, |
201 |
|
org.exolab.castor.xml.MarshalException, |
202 |
|
org.exolab.castor.xml.ValidationException |
203 |
|
{ |
204 |
0 |
Marshaller.marshal(this, handler); |
205 |
|
} |
206 |
|
|
207 |
|
|
208 |
|
|
209 |
|
|
210 |
|
@param |
211 |
|
|
212 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
213 |
0 |
public void setPos1(final long pos1)... |
214 |
|
{ |
215 |
0 |
this._pos1 = pos1; |
216 |
0 |
this._has_pos1 = true; |
217 |
|
} |
218 |
|
|
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
@param |
223 |
|
|
224 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
225 |
0 |
public void setPos2(final long pos2)... |
226 |
|
{ |
227 |
0 |
this._pos2 = pos2; |
228 |
0 |
this._has_pos2 = true; |
229 |
|
} |
230 |
|
|
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
@param |
235 |
|
|
236 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
237 |
0 |
public void setPos3(final long pos3)... |
238 |
|
{ |
239 |
0 |
this._pos3 = pos3; |
240 |
0 |
this._has_pos3 = true; |
241 |
|
} |
242 |
|
|
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
@param |
247 |
|
@throws |
248 |
|
|
249 |
|
|
250 |
|
@throws |
251 |
|
|
252 |
|
@return |
253 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
254 |
0 |
public static jalview.schemabinding.version2.Alcodon unmarshal(... |
255 |
|
final java.io.Reader reader) |
256 |
|
throws org.exolab.castor.xml.MarshalException, |
257 |
|
org.exolab.castor.xml.ValidationException |
258 |
|
{ |
259 |
0 |
return (jalview.schemabinding.version2.Alcodon) Unmarshaller.unmarshal( |
260 |
|
jalview.schemabinding.version2.Alcodon.class, reader); |
261 |
|
} |
262 |
|
|
263 |
|
|
264 |
|
|
265 |
|
|
266 |
|
@throws |
267 |
|
|
268 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
269 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
270 |
|
{ |
271 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
272 |
0 |
validator.validate(this); |
273 |
|
} |
274 |
|
|
275 |
|
} |