1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package jalview.schemabinding.version2.descriptors; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
import jalview.schemabinding.version2.FeatureSettings; |
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
@version |
20 |
|
|
|
|
| 75.3% |
Uncovered Elements: 18 (73) |
Complexity: 21 |
Complexity Density: 0.38 |
|
21 |
|
public class FeatureSettingsDescriptor 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 (26) |
Complexity: 1 |
Complexity Density: 0.04 |
|
53 |
73 |
public FeatureSettingsDescriptor()... |
54 |
|
{ |
55 |
73 |
super(); |
56 |
73 |
_nsURI = "www.jalview.org"; |
57 |
73 |
_xmlName = "FeatureSettings"; |
58 |
73 |
_elementDefinition = true; |
59 |
|
|
60 |
|
|
61 |
73 |
setCompositorAsSequence(); |
62 |
73 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; |
63 |
73 |
org.exolab.castor.mapping.FieldHandler handler = null; |
64 |
73 |
org.exolab.castor.xml.FieldValidator fieldValidator = null; |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
73 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
71 |
|
jalview.schemabinding.version2.Setting.class, "_settingList", |
72 |
|
"setting", org.exolab.castor.xml.NodeType.Element); |
73 |
73 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
74 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
75 |
22 |
public java.lang.Object getValue(java.lang.Object object)... |
76 |
|
throws IllegalStateException |
77 |
|
{ |
78 |
22 |
FeatureSettings target = (FeatureSettings) object; |
79 |
22 |
return target.getSetting(); |
80 |
|
} |
81 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
82 |
1243 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
83 |
|
throws IllegalStateException, IllegalArgumentException |
84 |
|
{ |
85 |
1243 |
try |
86 |
|
{ |
87 |
1243 |
FeatureSettings target = (FeatureSettings) object; |
88 |
1243 |
target.addSetting((jalview.schemabinding.version2.Setting) value); |
89 |
|
} catch (java.lang.Exception ex) |
90 |
|
{ |
91 |
0 |
throw new IllegalStateException(ex.toString()); |
92 |
|
} |
93 |
|
} |
94 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
95 |
0 |
public void resetValue(Object object) throws IllegalStateException,... |
96 |
|
IllegalArgumentException |
97 |
|
{ |
98 |
0 |
try |
99 |
|
{ |
100 |
0 |
FeatureSettings target = (FeatureSettings) object; |
101 |
0 |
target.removeAllSetting(); |
102 |
|
} catch (java.lang.Exception ex) |
103 |
|
{ |
104 |
0 |
throw new IllegalStateException(ex.toString()); |
105 |
|
} |
106 |
|
} |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
1243 |
public java.lang.Object newInstance(java.lang.Object parent)... |
109 |
|
{ |
110 |
1243 |
return new jalview.schemabinding.version2.Setting(); |
111 |
|
} |
112 |
|
}; |
113 |
73 |
desc.setHandler(handler); |
114 |
73 |
desc.setNameSpaceURI("www.jalview.org"); |
115 |
73 |
desc.setMultivalued(true); |
116 |
73 |
addFieldDescriptor(desc); |
117 |
|
|
118 |
|
|
119 |
73 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
120 |
73 |
fieldValidator.setMinOccurs(0); |
121 |
|
{ |
122 |
|
} |
123 |
73 |
desc.setValidator(fieldValidator); |
124 |
|
|
125 |
73 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
126 |
|
jalview.schemabinding.version2.Group.class, "_groupList", |
127 |
|
"group", org.exolab.castor.xml.NodeType.Element); |
128 |
73 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
129 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
130 |
22 |
public java.lang.Object getValue(java.lang.Object object)... |
131 |
|
throws IllegalStateException |
132 |
|
{ |
133 |
22 |
FeatureSettings target = (FeatureSettings) object; |
134 |
22 |
return target.getGroup(); |
135 |
|
} |
136 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
137 |
183 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
138 |
|
throws IllegalStateException, IllegalArgumentException |
139 |
|
{ |
140 |
183 |
try |
141 |
|
{ |
142 |
183 |
FeatureSettings target = (FeatureSettings) object; |
143 |
183 |
target.addGroup((jalview.schemabinding.version2.Group) value); |
144 |
|
} catch (java.lang.Exception ex) |
145 |
|
{ |
146 |
0 |
throw new IllegalStateException(ex.toString()); |
147 |
|
} |
148 |
|
} |
149 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
150 |
0 |
public void resetValue(Object object) throws IllegalStateException,... |
151 |
|
IllegalArgumentException |
152 |
|
{ |
153 |
0 |
try |
154 |
|
{ |
155 |
0 |
FeatureSettings target = (FeatureSettings) object; |
156 |
0 |
target.removeAllGroup(); |
157 |
|
} catch (java.lang.Exception ex) |
158 |
|
{ |
159 |
0 |
throw new IllegalStateException(ex.toString()); |
160 |
|
} |
161 |
|
} |
162 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
163 |
183 |
public java.lang.Object newInstance(java.lang.Object parent)... |
164 |
|
{ |
165 |
183 |
return new jalview.schemabinding.version2.Group(); |
166 |
|
} |
167 |
|
}; |
168 |
73 |
desc.setHandler(handler); |
169 |
73 |
desc.setNameSpaceURI("www.jalview.org"); |
170 |
73 |
desc.setMultivalued(true); |
171 |
73 |
addFieldDescriptor(desc); |
172 |
|
|
173 |
|
|
174 |
73 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
175 |
73 |
fieldValidator.setMinOccurs(0); |
176 |
|
{ |
177 |
|
} |
178 |
73 |
desc.setValidator(fieldValidator); |
179 |
|
} |
180 |
|
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
188 |
|
@return |
189 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
190 |
0 |
public org.exolab.castor.mapping.AccessMode getAccessMode()... |
191 |
|
{ |
192 |
0 |
return null; |
193 |
|
} |
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
@return |
199 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
200 |
11 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()... |
201 |
|
{ |
202 |
11 |
return super.getIdentity(); |
203 |
|
} |
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
|
208 |
|
@return |
209 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
210 |
62 |
public java.lang.Class getJavaClass()... |
211 |
|
{ |
212 |
62 |
return jalview.schemabinding.version2.FeatureSettings.class; |
213 |
|
} |
214 |
|
|
215 |
|
|
216 |
|
|
217 |
|
|
218 |
|
@return |
219 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
220 |
11 |
public java.lang.String getNameSpacePrefix()... |
221 |
|
{ |
222 |
11 |
return _nsPrefix; |
223 |
|
} |
224 |
|
|
225 |
|
|
226 |
|
|
227 |
|
|
228 |
|
@return |
229 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
230 |
0 |
public java.lang.String getNameSpaceURI()... |
231 |
|
{ |
232 |
0 |
return _nsURI; |
233 |
|
} |
234 |
|
|
235 |
|
|
236 |
|
|
237 |
|
|
238 |
|
@return |
239 |
|
|
240 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
241 |
11 |
public org.exolab.castor.xml.TypeValidator getValidator()... |
242 |
|
{ |
243 |
11 |
return this; |
244 |
|
} |
245 |
|
|
246 |
|
|
247 |
|
|
248 |
|
|
249 |
|
@return |
250 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
251 |
146 |
public java.lang.String getXMLName()... |
252 |
|
{ |
253 |
146 |
return _xmlName; |
254 |
|
} |
255 |
|
|
256 |
|
|
257 |
|
|
258 |
|
|
259 |
|
@return |
260 |
|
|
261 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
262 |
0 |
public boolean isElementDefinition()... |
263 |
|
{ |
264 |
0 |
return _elementDefinition; |
265 |
|
} |
266 |
|
|
267 |
|
} |