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