Clover icon

Coverage Report

  1. Project Clover database Wed Nov 13 2024 16:12:26 GMT
  2. Package uk.ac.ebi.www.picr.AccessionMappingService

File AccessionMapperBindingStub.java

 

Coverage histogram

../../../../../../img/srcFileCovDistChart0.png
59% of files have more coverage

Code metrics

32
155
9
1
416
364
29
0.19
17.22
9
3.22

Classes

Class Line # Actions
AccessionMapperBindingStub 23 155 29
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3    * Copyright (C) $$Year-Rel$$ The Jalview Authors
4    *
5    * This file is part of Jalview.
6    *
7    * Jalview is free software: you can redistribute it and/or
8    * modify it under the terms of the GNU General Public License
9    * as published by the Free Software Foundation, either version 3
10    * of the License, or (at your option) any later version.
11    *
12    * Jalview is distributed in the hope that it will be useful, but
13    * WITHOUT ANY WARRANTY; without even the implied warranty
14    * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15    * PURPOSE. See the GNU General Public License for more details.
16    *
17    * You should have received a copy of the GNU General Public License
18    * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19    * The Jalview Authors are detailed in the 'AUTHORS' file.
20    */
21    package uk.ac.ebi.www.picr.AccessionMappingService;
22   
 
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   
 
37  0 toggle static
38    {
39  0 _operations = new org.apache.axis.description.OperationDesc[3];
40  0 _initOperationDesc1();
41    }
42   
 
43  0 toggle 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   
 
152  0 toggle public AccessionMapperBindingStub() throws org.apache.axis.AxisFault
153    {
154  0 this(null);
155    }
156   
 
157  0 toggle 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   
 
164  0 toggle 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   
 
205  0 toggle 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    // All the type mapping information is registered
243    // when the first call is made.
244    // The type mapping information is actually registered in
245    // the TypeMappingRegistry of the service, which
246    // is the reason why registration is only needed for the first call.
247  0 synchronized (this)
248    {
249  0 if (firstCall())
250    {
251    // must set encoding style before registering serializers
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   
 
274  0 toggle 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   
 
323  0 toggle 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   
 
372  0 toggle 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    }