1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package uk.ac.ebi.www.picr.AccessionMappingService; |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 196 (196) |
Complexity: 29 |
Complexity Density: 0.19 |
|
23 |
|
public class AccessionMapperBindingStub extends org.apache.axis.client.Stub |
24 |
|
implements |
25 |
|
uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface |
26 |
|
{ |
27 |
|
private java.util.Vector cachedSerClasses = new java.util.Vector(); |
28 |
|
|
29 |
|
private java.util.Vector cachedSerQNames = new java.util.Vector(); |
30 |
|
|
31 |
|
private java.util.Vector cachedSerFactories = new java.util.Vector(); |
32 |
|
|
33 |
|
private java.util.Vector cachedDeserFactories = new java.util.Vector(); |
34 |
|
|
35 |
|
static org.apache.axis.description.OperationDesc[] _operations; |
36 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
37 |
0 |
static... |
38 |
|
{ |
39 |
0 |
_operations = new org.apache.axis.description.OperationDesc[3]; |
40 |
0 |
_initOperationDesc1(); |
41 |
|
} |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 34 (34) |
Complexity: 1 |
Complexity Density: 0.03 |
|
43 |
0 |
private static void _initOperationDesc1()... |
44 |
|
{ |
45 |
0 |
org.apache.axis.description.OperationDesc oper; |
46 |
0 |
oper = new org.apache.axis.description.OperationDesc(); |
47 |
0 |
oper.setName("getUPIForSequence"); |
48 |
0 |
oper.addParameter( |
49 |
|
new javax.xml.namespace.QName( |
50 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
51 |
|
"sequence"), |
52 |
|
new javax.xml.namespace.QName( |
53 |
|
"http://www.w3.org/2001/XMLSchema", "string"), |
54 |
|
java.lang.String.class, |
55 |
|
org.apache.axis.description.ParameterDesc.IN, false, false); |
56 |
0 |
oper.addParameter( |
57 |
|
new javax.xml.namespace.QName( |
58 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
59 |
|
"searchDatabases"), |
60 |
|
new javax.xml.namespace.QName( |
61 |
|
"http://www.w3.org/2001/XMLSchema", "string"), |
62 |
|
java.lang.String[].class, |
63 |
|
org.apache.axis.description.ParameterDesc.IN, false, false); |
64 |
0 |
oper.addParameter(new javax.xml.namespace.QName( |
65 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", "taxonId"), |
66 |
|
new javax.xml.namespace.QName( |
67 |
|
"http://www.w3.org/2001/XMLSchema", "string"), |
68 |
|
java.lang.String.class, |
69 |
|
org.apache.axis.description.ParameterDesc.IN, false, false); |
70 |
0 |
oper.addParameter( |
71 |
|
new javax.xml.namespace.QName( |
72 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
73 |
|
"onlyActive"), |
74 |
|
new javax.xml.namespace.QName( |
75 |
|
"http://www.w3.org/2001/XMLSchema", "boolean"), |
76 |
|
boolean.class, org.apache.axis.description.ParameterDesc.IN, |
77 |
|
false, false); |
78 |
0 |
oper.setReturnType(new javax.xml.namespace.QName( |
79 |
|
"http://model.picr.ebi.ac.uk", "UPEntry")); |
80 |
0 |
oper.setReturnClass(uk.ac.ebi.picr.model.UPEntry.class); |
81 |
0 |
oper.setReturnQName(new javax.xml.namespace.QName( |
82 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
83 |
|
"getUPIForSequenceReturn")); |
84 |
0 |
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
85 |
0 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
86 |
0 |
_operations[0] = oper; |
87 |
|
|
88 |
0 |
oper = new org.apache.axis.description.OperationDesc(); |
89 |
0 |
oper.setName("getUPIForAccession"); |
90 |
0 |
oper.addParameter( |
91 |
|
new javax.xml.namespace.QName( |
92 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
93 |
|
"accession"), |
94 |
|
new javax.xml.namespace.QName( |
95 |
|
"http://www.w3.org/2001/XMLSchema", "string"), |
96 |
|
java.lang.String.class, |
97 |
|
org.apache.axis.description.ParameterDesc.IN, false, false); |
98 |
0 |
oper.addParameter( |
99 |
|
new javax.xml.namespace.QName( |
100 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
101 |
|
"ac_version"), |
102 |
|
new javax.xml.namespace.QName( |
103 |
|
"http://www.w3.org/2001/XMLSchema", "string"), |
104 |
|
java.lang.String.class, |
105 |
|
org.apache.axis.description.ParameterDesc.IN, false, false); |
106 |
0 |
oper.addParameter( |
107 |
|
new javax.xml.namespace.QName( |
108 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
109 |
|
"searchDatabases"), |
110 |
|
new javax.xml.namespace.QName( |
111 |
|
"http://www.w3.org/2001/XMLSchema", "string"), |
112 |
|
java.lang.String[].class, |
113 |
|
org.apache.axis.description.ParameterDesc.IN, false, false); |
114 |
0 |
oper.addParameter(new javax.xml.namespace.QName( |
115 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", "taxonId"), |
116 |
|
new javax.xml.namespace.QName( |
117 |
|
"http://www.w3.org/2001/XMLSchema", "string"), |
118 |
|
java.lang.String.class, |
119 |
|
org.apache.axis.description.ParameterDesc.IN, false, false); |
120 |
0 |
oper.addParameter( |
121 |
|
new javax.xml.namespace.QName( |
122 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
123 |
|
"onlyActive"), |
124 |
|
new javax.xml.namespace.QName( |
125 |
|
"http://www.w3.org/2001/XMLSchema", "boolean"), |
126 |
|
boolean.class, org.apache.axis.description.ParameterDesc.IN, |
127 |
|
false, false); |
128 |
0 |
oper.setReturnType(new javax.xml.namespace.QName( |
129 |
|
"http://model.picr.ebi.ac.uk", "UPEntry")); |
130 |
0 |
oper.setReturnClass(uk.ac.ebi.picr.model.UPEntry[].class); |
131 |
0 |
oper.setReturnQName(new javax.xml.namespace.QName( |
132 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
133 |
|
"getUPIForAccessionReturn")); |
134 |
0 |
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
135 |
0 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
136 |
0 |
_operations[1] = oper; |
137 |
|
|
138 |
0 |
oper = new org.apache.axis.description.OperationDesc(); |
139 |
0 |
oper.setName("getMappedDatabaseNames"); |
140 |
0 |
oper.setReturnType(new javax.xml.namespace.QName( |
141 |
|
"http://www.w3.org/2001/XMLSchema", "string")); |
142 |
0 |
oper.setReturnClass(java.lang.String[].class); |
143 |
0 |
oper.setReturnQName(new javax.xml.namespace.QName( |
144 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
145 |
|
"mappedDatabases")); |
146 |
0 |
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
147 |
0 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
148 |
0 |
_operations[2] = oper; |
149 |
|
|
150 |
|
} |
151 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
152 |
0 |
public AccessionMapperBindingStub() throws org.apache.axis.AxisFault... |
153 |
|
{ |
154 |
0 |
this(null); |
155 |
|
} |
156 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
157 |
0 |
public AccessionMapperBindingStub(java.net.URL endpointURL,... |
158 |
|
javax.xml.rpc.Service service) throws org.apache.axis.AxisFault |
159 |
|
{ |
160 |
0 |
this(service); |
161 |
0 |
super.cachedEndpoint = endpointURL; |
162 |
|
} |
163 |
|
|
|
|
| 0% |
Uncovered Elements: 29 (29) |
Complexity: 2 |
Complexity Density: 0.07 |
|
164 |
0 |
public AccessionMapperBindingStub(javax.xml.rpc.Service service)... |
165 |
|
throws org.apache.axis.AxisFault |
166 |
|
{ |
167 |
0 |
if (service == null) |
168 |
|
{ |
169 |
0 |
super.service = new org.apache.axis.client.Service(); |
170 |
|
} |
171 |
|
else |
172 |
|
{ |
173 |
0 |
super.service = service; |
174 |
|
} |
175 |
0 |
java.lang.Class cls; |
176 |
0 |
javax.xml.namespace.QName qName; |
177 |
0 |
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class; |
178 |
0 |
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class; |
179 |
0 |
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class; |
180 |
0 |
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class; |
181 |
0 |
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class; |
182 |
0 |
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class; |
183 |
0 |
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class; |
184 |
0 |
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class; |
185 |
0 |
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class; |
186 |
0 |
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class; |
187 |
0 |
qName = new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", |
188 |
|
"UPEntry"); |
189 |
0 |
cachedSerQNames.add(qName); |
190 |
0 |
cls = uk.ac.ebi.picr.model.UPEntry.class; |
191 |
0 |
cachedSerClasses.add(cls); |
192 |
0 |
cachedSerFactories.add(beansf); |
193 |
0 |
cachedDeserFactories.add(beandf); |
194 |
|
|
195 |
0 |
qName = new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", |
196 |
|
"CrossReference"); |
197 |
0 |
cachedSerQNames.add(qName); |
198 |
0 |
cls = uk.ac.ebi.picr.model.CrossReference.class; |
199 |
0 |
cachedSerClasses.add(cls); |
200 |
0 |
cachedSerFactories.add(beansf); |
201 |
0 |
cachedDeserFactories.add(beandf); |
202 |
|
|
203 |
|
} |
204 |
|
|
|
|
| 0% |
Uncovered Elements: 47 (47) |
Complexity: 11 |
Complexity Density: 0.38 |
|
205 |
0 |
protected org.apache.axis.client.Call createCall()... |
206 |
|
throws java.rmi.RemoteException |
207 |
|
{ |
208 |
0 |
try |
209 |
|
{ |
210 |
0 |
org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service |
211 |
|
.createCall(); |
212 |
0 |
if (super.maintainSessionSet) |
213 |
|
{ |
214 |
0 |
_call.setMaintainSession(super.maintainSession); |
215 |
|
} |
216 |
0 |
if (super.cachedUsername != null) |
217 |
|
{ |
218 |
0 |
_call.setUsername(super.cachedUsername); |
219 |
|
} |
220 |
0 |
if (super.cachedPassword != null) |
221 |
|
{ |
222 |
0 |
_call.setPassword(super.cachedPassword); |
223 |
|
} |
224 |
0 |
if (super.cachedEndpoint != null) |
225 |
|
{ |
226 |
0 |
_call.setTargetEndpointAddress(super.cachedEndpoint); |
227 |
|
} |
228 |
0 |
if (super.cachedTimeout != null) |
229 |
|
{ |
230 |
0 |
_call.setTimeout(super.cachedTimeout); |
231 |
|
} |
232 |
0 |
if (super.cachedPortName != null) |
233 |
|
{ |
234 |
0 |
_call.setPortName(super.cachedPortName); |
235 |
|
} |
236 |
0 |
java.util.Enumeration keys = super.cachedProperties.keys(); |
237 |
0 |
while (keys.hasMoreElements()) |
238 |
|
{ |
239 |
0 |
java.lang.String key = (java.lang.String) keys.nextElement(); |
240 |
0 |
_call.setProperty(key, super.cachedProperties.get(key)); |
241 |
|
} |
242 |
|
|
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
|
247 |
0 |
synchronized (this) |
248 |
|
{ |
249 |
0 |
if (firstCall()) |
250 |
|
{ |
251 |
|
|
252 |
0 |
_call.setEncodingStyle(null); |
253 |
0 |
for (int i = 0; i < cachedSerFactories.size(); ++i) |
254 |
|
{ |
255 |
0 |
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i); |
256 |
0 |
javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames |
257 |
|
.get(i); |
258 |
0 |
java.lang.Class sf = (java.lang.Class) cachedSerFactories |
259 |
|
.get(i); |
260 |
0 |
java.lang.Class df = (java.lang.Class) cachedDeserFactories |
261 |
|
.get(i); |
262 |
0 |
_call.registerTypeMapping(cls, qName, sf, df, false); |
263 |
|
} |
264 |
|
} |
265 |
|
} |
266 |
0 |
return _call; |
267 |
|
} catch (java.lang.Throwable _t) |
268 |
|
{ |
269 |
0 |
throw new org.apache.axis.AxisFault( |
270 |
|
"Failure trying to get the Call object", _t); |
271 |
|
} |
272 |
|
} |
273 |
|
|
|
|
| 0% |
Uncovered Elements: 24 (24) |
Complexity: 4 |
Complexity Density: 0.2 |
|
274 |
0 |
public uk.ac.ebi.picr.model.UPEntry getUPIForSequence(... |
275 |
|
java.lang.String sequence, java.lang.String[] searchDatabases, |
276 |
|
java.lang.String taxonId, boolean onlyActive) |
277 |
|
throws java.rmi.RemoteException |
278 |
|
{ |
279 |
0 |
if (super.cachedEndpoint == null) |
280 |
|
{ |
281 |
0 |
throw new org.apache.axis.NoEndPointException(); |
282 |
|
} |
283 |
0 |
org.apache.axis.client.Call _call = createCall(); |
284 |
0 |
_call.setOperation(_operations[0]); |
285 |
0 |
_call.setUseSOAPAction(true); |
286 |
0 |
_call.setSOAPActionURI("getUPIForSequence"); |
287 |
0 |
_call.setEncodingStyle(null); |
288 |
0 |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, |
289 |
|
Boolean.FALSE); |
290 |
0 |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, |
291 |
|
Boolean.FALSE); |
292 |
0 |
_call.setSOAPVersion( |
293 |
|
org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
294 |
0 |
_call.setOperationName(new javax.xml.namespace.QName( |
295 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
296 |
|
"getUPIForSequence")); |
297 |
|
|
298 |
0 |
setRequestHeaders(_call); |
299 |
0 |
setAttachments(_call); |
300 |
0 |
java.lang.Object _resp = _call |
301 |
|
.invoke(new java.lang.Object[] |
302 |
|
{ sequence, searchDatabases, taxonId, |
303 |
|
java.lang.Boolean.valueOf(onlyActive) }); |
304 |
|
|
305 |
0 |
if (_resp instanceof java.rmi.RemoteException) |
306 |
|
{ |
307 |
0 |
throw (java.rmi.RemoteException) _resp; |
308 |
|
} |
309 |
|
else |
310 |
|
{ |
311 |
0 |
extractAttachments(_call); |
312 |
0 |
try |
313 |
|
{ |
314 |
0 |
return (uk.ac.ebi.picr.model.UPEntry) _resp; |
315 |
|
} catch (java.lang.Exception _exception) |
316 |
|
{ |
317 |
0 |
return (uk.ac.ebi.picr.model.UPEntry) org.apache.axis.utils.JavaUtils |
318 |
|
.convert(_resp, uk.ac.ebi.picr.model.UPEntry.class); |
319 |
|
} |
320 |
|
} |
321 |
|
} |
322 |
|
|
|
|
| 0% |
Uncovered Elements: 24 (24) |
Complexity: 4 |
Complexity Density: 0.2 |
|
323 |
0 |
public uk.ac.ebi.picr.model.UPEntry[] getUPIForAccession(... |
324 |
|
java.lang.String accession, java.lang.String ac_version, |
325 |
|
java.lang.String[] searchDatabases, java.lang.String taxonId, |
326 |
|
boolean onlyActive) throws java.rmi.RemoteException |
327 |
|
{ |
328 |
0 |
if (super.cachedEndpoint == null) |
329 |
|
{ |
330 |
0 |
throw new org.apache.axis.NoEndPointException(); |
331 |
|
} |
332 |
0 |
org.apache.axis.client.Call _call = createCall(); |
333 |
0 |
_call.setOperation(_operations[1]); |
334 |
0 |
_call.setUseSOAPAction(true); |
335 |
0 |
_call.setSOAPActionURI("getUPIForAccession"); |
336 |
0 |
_call.setEncodingStyle(null); |
337 |
0 |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, |
338 |
|
Boolean.FALSE); |
339 |
0 |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, |
340 |
|
Boolean.FALSE); |
341 |
0 |
_call.setSOAPVersion( |
342 |
|
org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
343 |
0 |
_call.setOperationName(new javax.xml.namespace.QName( |
344 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
345 |
|
"getUPIForAccession")); |
346 |
|
|
347 |
0 |
setRequestHeaders(_call); |
348 |
0 |
setAttachments(_call); |
349 |
0 |
java.lang.Object _resp = _call |
350 |
|
.invoke(new java.lang.Object[] |
351 |
|
{ accession, ac_version, searchDatabases, taxonId, |
352 |
|
java.lang.Boolean.valueOf(onlyActive) }); |
353 |
|
|
354 |
0 |
if (_resp instanceof java.rmi.RemoteException) |
355 |
|
{ |
356 |
0 |
throw (java.rmi.RemoteException) _resp; |
357 |
|
} |
358 |
|
else |
359 |
|
{ |
360 |
0 |
extractAttachments(_call); |
361 |
0 |
try |
362 |
|
{ |
363 |
0 |
return (uk.ac.ebi.picr.model.UPEntry[]) _resp; |
364 |
|
} catch (java.lang.Exception _exception) |
365 |
|
{ |
366 |
0 |
return (uk.ac.ebi.picr.model.UPEntry[]) org.apache.axis.utils.JavaUtils |
367 |
|
.convert(_resp, uk.ac.ebi.picr.model.UPEntry[].class); |
368 |
|
} |
369 |
|
} |
370 |
|
} |
371 |
|
|
|
|
| 0% |
Uncovered Elements: 24 (24) |
Complexity: 4 |
Complexity Density: 0.2 |
|
372 |
0 |
public java.lang.String[] getMappedDatabaseNames()... |
373 |
|
throws java.rmi.RemoteException |
374 |
|
{ |
375 |
0 |
if (super.cachedEndpoint == null) |
376 |
|
{ |
377 |
0 |
throw new org.apache.axis.NoEndPointException(); |
378 |
|
} |
379 |
0 |
org.apache.axis.client.Call _call = createCall(); |
380 |
0 |
_call.setOperation(_operations[2]); |
381 |
0 |
_call.setUseSOAPAction(true); |
382 |
0 |
_call.setSOAPActionURI("getMappedDatabaseNames"); |
383 |
0 |
_call.setEncodingStyle(null); |
384 |
0 |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, |
385 |
|
Boolean.FALSE); |
386 |
0 |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, |
387 |
|
Boolean.FALSE); |
388 |
0 |
_call.setSOAPVersion( |
389 |
|
org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
390 |
0 |
_call.setOperationName(new javax.xml.namespace.QName( |
391 |
|
"http://www.ebi.ac.uk/picr/AccessionMappingService", |
392 |
|
"getMappedDatabaseNames")); |
393 |
|
|
394 |
0 |
setRequestHeaders(_call); |
395 |
0 |
setAttachments(_call); |
396 |
0 |
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {}); |
397 |
|
|
398 |
0 |
if (_resp instanceof java.rmi.RemoteException) |
399 |
|
{ |
400 |
0 |
throw (java.rmi.RemoteException) _resp; |
401 |
|
} |
402 |
|
else |
403 |
|
{ |
404 |
0 |
extractAttachments(_call); |
405 |
0 |
try |
406 |
|
{ |
407 |
0 |
return (java.lang.String[]) _resp; |
408 |
|
} catch (java.lang.Exception _exception) |
409 |
|
{ |
410 |
0 |
return (java.lang.String[]) org.apache.axis.utils.JavaUtils |
411 |
|
.convert(_resp, java.lang.String[].class); |
412 |
|
} |
413 |
|
} |
414 |
|
} |
415 |
|
|
416 |
|
} |