1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package jalview.schemabinding.version2.descriptors; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
import jalview.schemabinding.version2.HiddenColumns; |
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
@version |
20 |
|
|
|
|
| 74.4% |
Uncovered Elements: 22 (86) |
Complexity: 21 |
Complexity Density: 0.33 |
|
21 |
|
public class HiddenColumnsDescriptor extends |
22 |
|
org.exolab.castor.xml.util.XMLClassDescriptorImpl |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private boolean _elementDefinition; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private java.lang.String _nsPrefix; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private java.lang.String _nsURI; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
private java.lang.String _xmlName; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (31) |
Complexity: 1 |
Complexity Density: 0.03 |
|
53 |
48 |
public HiddenColumnsDescriptor()... |
54 |
|
{ |
55 |
48 |
super(); |
56 |
48 |
_nsURI = "www.jalview.org"; |
57 |
48 |
_xmlName = "hiddenColumns"; |
58 |
48 |
_elementDefinition = true; |
59 |
48 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; |
60 |
48 |
org.exolab.castor.mapping.FieldHandler handler = null; |
61 |
48 |
org.exolab.castor.xml.FieldValidator fieldValidator = null; |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
48 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
66 |
|
java.lang.Integer.TYPE, "_start", "start", |
67 |
|
org.exolab.castor.xml.NodeType.Attribute); |
68 |
48 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
69 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
70 |
12 |
public java.lang.Object getValue(java.lang.Object object)... |
71 |
|
throws IllegalStateException |
72 |
|
{ |
73 |
12 |
HiddenColumns target = (HiddenColumns) object; |
74 |
12 |
if (!target.hasStart()) |
75 |
|
{ |
76 |
0 |
return null; |
77 |
|
} |
78 |
12 |
return new java.lang.Integer(target.getStart()); |
79 |
|
} |
80 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
81 |
36 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
82 |
|
throws IllegalStateException, IllegalArgumentException |
83 |
|
{ |
84 |
36 |
try |
85 |
|
{ |
86 |
36 |
HiddenColumns target = (HiddenColumns) object; |
87 |
|
|
88 |
36 |
if (value == null) |
89 |
|
{ |
90 |
0 |
target.deleteStart(); |
91 |
0 |
return; |
92 |
|
} |
93 |
36 |
target.setStart(((java.lang.Integer) value).intValue()); |
94 |
|
} catch (java.lang.Exception ex) |
95 |
|
{ |
96 |
0 |
throw new IllegalStateException(ex.toString()); |
97 |
|
} |
98 |
|
} |
99 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
101 |
|
{ |
102 |
0 |
return null; |
103 |
|
} |
104 |
|
}; |
105 |
48 |
desc.setHandler(handler); |
106 |
48 |
desc.setMultivalued(false); |
107 |
48 |
addFieldDescriptor(desc); |
108 |
|
|
109 |
|
|
110 |
48 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
111 |
|
{ |
112 |
48 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
113 |
48 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
114 |
48 |
fieldValidator.setValidator(typeValidator); |
115 |
48 |
typeValidator.setMinInclusive(-2147483648); |
116 |
48 |
typeValidator.setMaxInclusive(2147483647); |
117 |
|
} |
118 |
48 |
desc.setValidator(fieldValidator); |
119 |
|
|
120 |
48 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
121 |
|
java.lang.Integer.TYPE, "_end", "end", |
122 |
|
org.exolab.castor.xml.NodeType.Attribute); |
123 |
48 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
124 |
|
{ |
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
125 |
12 |
public java.lang.Object getValue(java.lang.Object object)... |
126 |
|
throws IllegalStateException |
127 |
|
{ |
128 |
12 |
HiddenColumns target = (HiddenColumns) object; |
129 |
12 |
if (!target.hasEnd()) |
130 |
|
{ |
131 |
0 |
return null; |
132 |
|
} |
133 |
12 |
return new java.lang.Integer(target.getEnd()); |
134 |
|
} |
135 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
136 |
36 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
137 |
|
throws IllegalStateException, IllegalArgumentException |
138 |
|
{ |
139 |
36 |
try |
140 |
|
{ |
141 |
36 |
HiddenColumns target = (HiddenColumns) object; |
142 |
|
|
143 |
36 |
if (value == null) |
144 |
|
{ |
145 |
0 |
target.deleteEnd(); |
146 |
0 |
return; |
147 |
|
} |
148 |
36 |
target.setEnd(((java.lang.Integer) value).intValue()); |
149 |
|
} catch (java.lang.Exception ex) |
150 |
|
{ |
151 |
0 |
throw new IllegalStateException(ex.toString()); |
152 |
|
} |
153 |
|
} |
154 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
155 |
0 |
public java.lang.Object newInstance(java.lang.Object parent)... |
156 |
|
{ |
157 |
0 |
return null; |
158 |
|
} |
159 |
|
}; |
160 |
48 |
desc.setHandler(handler); |
161 |
48 |
desc.setMultivalued(false); |
162 |
48 |
addFieldDescriptor(desc); |
163 |
|
|
164 |
|
|
165 |
48 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
166 |
|
{ |
167 |
48 |
org.exolab.castor.xml.validators.IntValidator typeValidator; |
168 |
48 |
typeValidator = new org.exolab.castor.xml.validators.IntValidator(); |
169 |
48 |
fieldValidator.setValidator(typeValidator); |
170 |
48 |
typeValidator.setMinInclusive(-2147483648); |
171 |
48 |
typeValidator.setMaxInclusive(2147483647); |
172 |
|
} |
173 |
48 |
desc.setValidator(fieldValidator); |
174 |
|
|
175 |
|
|
176 |
|
} |
177 |
|
|
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
@return |
186 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
187 |
0 |
public org.exolab.castor.mapping.AccessMode getAccessMode()... |
188 |
|
{ |
189 |
0 |
return null; |
190 |
|
} |
191 |
|
|
192 |
|
|
193 |
|
|
194 |
|
|
195 |
|
@return |
196 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
197 |
78 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()... |
198 |
|
{ |
199 |
78 |
return super.getIdentity(); |
200 |
|
} |
201 |
|
|
202 |
|
|
203 |
|
|
204 |
|
|
205 |
|
@return |
206 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
207 |
42 |
public java.lang.Class getJavaClass()... |
208 |
|
{ |
209 |
42 |
return jalview.schemabinding.version2.HiddenColumns.class; |
210 |
|
} |
211 |
|
|
212 |
|
|
213 |
|
|
214 |
|
|
215 |
|
@return |
216 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
217 |
6 |
public java.lang.String getNameSpacePrefix()... |
218 |
|
{ |
219 |
6 |
return _nsPrefix; |
220 |
|
} |
221 |
|
|
222 |
|
|
223 |
|
|
224 |
|
|
225 |
|
@return |
226 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
227 |
0 |
public java.lang.String getNameSpaceURI()... |
228 |
|
{ |
229 |
0 |
return _nsURI; |
230 |
|
} |
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
@return |
236 |
|
|
237 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
238 |
6 |
public org.exolab.castor.xml.TypeValidator getValidator()... |
239 |
|
{ |
240 |
6 |
return this; |
241 |
|
} |
242 |
|
|
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
@return |
247 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
248 |
96 |
public java.lang.String getXMLName()... |
249 |
|
{ |
250 |
96 |
return _xmlName; |
251 |
|
} |
252 |
|
|
253 |
|
|
254 |
|
|
255 |
|
|
256 |
|
@return |
257 |
|
|
258 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
259 |
0 |
public boolean isElementDefinition()... |
260 |
|
{ |
261 |
0 |
return _elementDefinition; |
262 |
|
} |
263 |
|
|
264 |
|
} |