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 |
|
|
|
|
| 56.2% |
Uncovered Elements: 14 (32) |
Complexity: 15 |
Complexity Density: 0.83 |
|
22 |
|
public class JalviewModel implements java.io.Serializable |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private java.util.Date _creationDate; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private java.lang.String _version; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private jalview.schemabinding.version2.VamsasModel _vamsasModel; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
private jalview.schemabinding.version2.JalviewModelSequence _jalviewModelSequence; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
115 |
public JalviewModel()... |
54 |
|
{ |
55 |
115 |
super(); |
56 |
|
} |
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
@return |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
58 |
public java.util.Date getCreationDate()... |
68 |
|
{ |
69 |
58 |
return this._creationDate; |
70 |
|
} |
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
@return |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
434 |
public jalview.schemabinding.version2.JalviewModelSequence getJalviewModelSequence()... |
78 |
|
{ |
79 |
434 |
return this._jalviewModelSequence; |
80 |
|
} |
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
@return |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
176 |
public jalview.schemabinding.version2.VamsasModel getVamsasModel()... |
88 |
|
{ |
89 |
176 |
return this._vamsasModel; |
90 |
|
} |
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
@return |
96 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
130 |
public java.lang.String getVersion()... |
98 |
|
{ |
99 |
130 |
return this._version; |
100 |
|
} |
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
@return |
106 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
107 |
0 |
public boolean isValid()... |
108 |
|
{ |
109 |
0 |
try |
110 |
|
{ |
111 |
0 |
validate(); |
112 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
113 |
|
{ |
114 |
0 |
return false; |
115 |
|
} |
116 |
0 |
return true; |
117 |
|
} |
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
@param |
123 |
|
@throws |
124 |
|
|
125 |
|
|
126 |
|
@throws |
127 |
|
|
128 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
129 |
0 |
public void marshal(final java.io.Writer out)... |
130 |
|
throws org.exolab.castor.xml.MarshalException, |
131 |
|
org.exolab.castor.xml.ValidationException |
132 |
|
{ |
133 |
0 |
Marshaller.marshal(this, out); |
134 |
|
} |
135 |
|
|
136 |
|
|
137 |
|
|
138 |
|
|
139 |
|
@param |
140 |
|
@throws |
141 |
|
|
142 |
|
@throws |
143 |
|
|
144 |
|
@throws |
145 |
|
|
146 |
|
|
147 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
148 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
149 |
|
throws java.io.IOException, |
150 |
|
org.exolab.castor.xml.MarshalException, |
151 |
|
org.exolab.castor.xml.ValidationException |
152 |
|
{ |
153 |
0 |
Marshaller.marshal(this, handler); |
154 |
|
} |
155 |
|
|
156 |
|
|
157 |
|
|
158 |
|
|
159 |
|
@param |
160 |
|
|
161 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
162 |
115 |
public void setCreationDate(final java.util.Date creationDate)... |
163 |
|
{ |
164 |
115 |
this._creationDate = creationDate; |
165 |
|
} |
166 |
|
|
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
@param |
171 |
|
|
172 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
173 |
115 |
public void setJalviewModelSequence(... |
174 |
|
final jalview.schemabinding.version2.JalviewModelSequence jalviewModelSequence) |
175 |
|
{ |
176 |
115 |
this._jalviewModelSequence = jalviewModelSequence; |
177 |
|
} |
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
@param |
183 |
|
|
184 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
185 |
115 |
public void setVamsasModel(... |
186 |
|
final jalview.schemabinding.version2.VamsasModel vamsasModel) |
187 |
|
{ |
188 |
115 |
this._vamsasModel = vamsasModel; |
189 |
|
} |
190 |
|
|
191 |
|
|
192 |
|
|
193 |
|
|
194 |
|
@param |
195 |
|
|
196 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
197 |
115 |
public void setVersion(final java.lang.String version)... |
198 |
|
{ |
199 |
115 |
this._version = version; |
200 |
|
} |
201 |
|
|
202 |
|
|
203 |
|
|
204 |
|
|
205 |
|
@param |
206 |
|
@throws |
207 |
|
|
208 |
|
|
209 |
|
@throws |
210 |
|
|
211 |
|
@return |
212 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
213 |
0 |
public static jalview.schemabinding.version2.JalviewModel unmarshal(... |
214 |
|
final java.io.Reader reader) |
215 |
|
throws org.exolab.castor.xml.MarshalException, |
216 |
|
org.exolab.castor.xml.ValidationException |
217 |
|
{ |
218 |
0 |
return (jalview.schemabinding.version2.JalviewModel) Unmarshaller |
219 |
|
.unmarshal(jalview.schemabinding.version2.JalviewModel.class, |
220 |
|
reader); |
221 |
|
} |
222 |
|
|
223 |
|
|
224 |
|
|
225 |
|
|
226 |
|
@throws |
227 |
|
|
228 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
229 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
230 |
|
{ |
231 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
232 |
0 |
validator.validate(this); |
233 |
|
} |
234 |
|
|
235 |
|
} |