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