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