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