1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package jalview.schemabinding.version2.descriptors; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
import jalview.schemabinding.version2.Pdbids; |
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
@version |
20 |
|
|
|
|
| 76% |
Uncovered Elements: 12 (50) |
Complexity: 15 |
Complexity Density: 0.41 |
|
21 |
|
public class PdbidsDescriptor extends |
22 |
|
jalview.schemabinding.version2.descriptors.PdbentryDescriptor |
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 (18) |
Complexity: 1 |
Complexity Density: 0.06 |
|
53 |
300 |
public PdbidsDescriptor()... |
54 |
|
{ |
55 |
300 |
super(); |
56 |
300 |
setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.PdbentryDescriptor()); |
57 |
300 |
_nsURI = "www.jalview.org"; |
58 |
300 |
_xmlName = "pdbids"; |
59 |
300 |
_elementDefinition = true; |
60 |
|
|
61 |
|
|
62 |
300 |
setCompositorAsSequence(); |
63 |
300 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; |
64 |
300 |
org.exolab.castor.mapping.FieldHandler handler = null; |
65 |
300 |
org.exolab.castor.xml.FieldValidator fieldValidator = null; |
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
300 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( |
72 |
|
jalview.schemabinding.version2.StructureState.class, |
73 |
|
"_structureStateList", "structureState", |
74 |
|
org.exolab.castor.xml.NodeType.Element); |
75 |
300 |
handler = new org.exolab.castor.xml.XMLFieldHandler() |
76 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
77 |
100 |
public java.lang.Object getValue(java.lang.Object object)... |
78 |
|
throws IllegalStateException |
79 |
|
{ |
80 |
100 |
Pdbids target = (Pdbids) object; |
81 |
100 |
return target.getStructureState(); |
82 |
|
} |
83 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
84 |
120 |
public void setValue(java.lang.Object object, java.lang.Object value)... |
85 |
|
throws IllegalStateException, IllegalArgumentException |
86 |
|
{ |
87 |
120 |
try |
88 |
|
{ |
89 |
120 |
Pdbids target = (Pdbids) object; |
90 |
120 |
target.addStructureState((jalview.schemabinding.version2.StructureState) value); |
91 |
|
} catch (java.lang.Exception ex) |
92 |
|
{ |
93 |
0 |
throw new IllegalStateException(ex.toString()); |
94 |
|
} |
95 |
|
} |
96 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
97 |
0 |
public void resetValue(Object object) throws IllegalStateException,... |
98 |
|
IllegalArgumentException |
99 |
|
{ |
100 |
0 |
try |
101 |
|
{ |
102 |
0 |
Pdbids target = (Pdbids) object; |
103 |
0 |
target.removeAllStructureState(); |
104 |
|
} catch (java.lang.Exception ex) |
105 |
|
{ |
106 |
0 |
throw new IllegalStateException(ex.toString()); |
107 |
|
} |
108 |
|
} |
109 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
110 |
120 |
public java.lang.Object newInstance(java.lang.Object parent)... |
111 |
|
{ |
112 |
120 |
return new jalview.schemabinding.version2.StructureState(); |
113 |
|
} |
114 |
|
}; |
115 |
300 |
desc.setHandler(handler); |
116 |
300 |
desc.setNameSpaceURI("www.jalview.org"); |
117 |
300 |
desc.setMultivalued(true); |
118 |
300 |
addFieldDescriptor(desc); |
119 |
|
|
120 |
|
|
121 |
300 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
122 |
300 |
fieldValidator.setMinOccurs(0); |
123 |
|
{ |
124 |
|
} |
125 |
300 |
desc.setValidator(fieldValidator); |
126 |
|
} |
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
@return |
136 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
137 |
0 |
public org.exolab.castor.mapping.AccessMode getAccessMode()... |
138 |
|
{ |
139 |
0 |
return null; |
140 |
|
} |
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
@return |
146 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
147 |
538 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()... |
148 |
|
{ |
149 |
538 |
return super.getIdentity(); |
150 |
|
} |
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
155 |
|
@return |
156 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
157 |
250 |
public java.lang.Class getJavaClass()... |
158 |
|
{ |
159 |
250 |
return jalview.schemabinding.version2.Pdbids.class; |
160 |
|
} |
161 |
|
|
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
@return |
166 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
167 |
50 |
public java.lang.String getNameSpacePrefix()... |
168 |
|
{ |
169 |
50 |
return _nsPrefix; |
170 |
|
} |
171 |
|
|
172 |
|
|
173 |
|
|
174 |
|
|
175 |
|
@return |
176 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
177 |
0 |
public java.lang.String getNameSpaceURI()... |
178 |
|
{ |
179 |
0 |
return _nsURI; |
180 |
|
} |
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
@return |
186 |
|
|
187 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
188 |
50 |
public org.exolab.castor.xml.TypeValidator getValidator()... |
189 |
|
{ |
190 |
50 |
return this; |
191 |
|
} |
192 |
|
|
193 |
|
|
194 |
|
|
195 |
|
|
196 |
|
@return |
197 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
198 |
600 |
public java.lang.String getXMLName()... |
199 |
|
{ |
200 |
600 |
return _xmlName; |
201 |
|
} |
202 |
|
|
203 |
|
|
204 |
|
|
205 |
|
|
206 |
|
@return |
207 |
|
|
208 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
209 |
0 |
public boolean isElementDefinition()... |
210 |
|
{ |
211 |
0 |
return _elementDefinition; |
212 |
|
} |
213 |
|
|
214 |
|
} |