2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
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.
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.
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.
21 package uk.ac.ebi.www;
23 public class InputParams implements java.io.Serializable
25 private java.lang.String program;
27 private java.lang.String database;
29 private java.lang.String matrix;
33 private boolean echofilter;
35 private java.lang.String filter;
41 private java.lang.String sensitivity;
43 private java.lang.String sort;
45 private java.lang.String stats;
47 private java.lang.String strand;
49 private java.lang.String outformat;
51 private int topcombon;
53 private boolean async;
55 private java.lang.String email;
61 public java.lang.String getProgram()
66 public void setProgram(java.lang.String program)
68 this.program = program;
71 public java.lang.String getDatabase()
76 public void setDatabase(java.lang.String database)
78 this.database = database;
81 public java.lang.String getMatrix()
86 public void setMatrix(java.lang.String matrix)
96 public void setExp(float exp)
101 public boolean isEchofilter()
106 public void setEchofilter(boolean echofilter)
108 this.echofilter = echofilter;
111 public java.lang.String getFilter()
116 public void setFilter(java.lang.String filter)
118 this.filter = filter;
121 public int getNumal()
126 public void setNumal(int numal)
131 public int getScores()
136 public void setScores(int scores)
138 this.scores = scores;
141 public java.lang.String getSensitivity()
146 public void setSensitivity(java.lang.String sensitivity)
148 this.sensitivity = sensitivity;
151 public java.lang.String getSort()
156 public void setSort(java.lang.String sort)
161 public java.lang.String getStats()
166 public void setStats(java.lang.String stats)
171 public java.lang.String getStrand()
176 public void setStrand(java.lang.String strand)
178 this.strand = strand;
181 public java.lang.String getOutformat()
186 public void setOutformat(java.lang.String outformat)
188 this.outformat = outformat;
191 public int getTopcombon()
196 public void setTopcombon(int topcombon)
198 this.topcombon = topcombon;
201 public boolean isAsync()
206 public void setAsync(boolean async)
211 public java.lang.String getEmail()
216 public void setEmail(java.lang.String email)
221 private java.lang.Object __equalsCalc = null;
223 public synchronized boolean equals(java.lang.Object obj)
225 if (!(obj instanceof InputParams))
229 InputParams other = (InputParams) obj;
238 if (__equalsCalc != null)
240 return (__equalsCalc == obj);
245 && ((program == null && other.getProgram() == null) || (program != null && program
246 .equals(other.getProgram())))
247 && ((database == null && other.getDatabase() == null) || (database != null && database
248 .equals(other.getDatabase())))
249 && ((matrix == null && other.getMatrix() == null) || (matrix != null && matrix
250 .equals(other.getMatrix())))
251 && exp == other.getExp()
252 && echofilter == other.isEchofilter()
253 && ((filter == null && other.getFilter() == null) || (filter != null && filter
254 .equals(other.getFilter())))
255 && numal == other.getNumal()
256 && scores == other.getScores()
257 && ((sensitivity == null && other.getSensitivity() == null) || (sensitivity != null && sensitivity
258 .equals(other.getSensitivity())))
259 && ((sort == null && other.getSort() == null) || (sort != null && sort
260 .equals(other.getSort())))
261 && ((stats == null && other.getStats() == null) || (stats != null && stats
262 .equals(other.getStats())))
263 && ((strand == null && other.getStrand() == null) || (strand != null && strand
264 .equals(other.getStrand())))
265 && ((outformat == null && other.getOutformat() == null) || (outformat != null && outformat
266 .equals(other.getOutformat())))
267 && topcombon == other.getTopcombon()
268 && async == other.isAsync()
269 && ((email == null && other.getEmail() == null) || (email != null && email
270 .equals(other.getEmail())));
275 private boolean __hashCodeCalc = false;
277 public synchronized int hashCode()
283 __hashCodeCalc = true;
285 if (getProgram() != null)
287 _hashCode += getProgram().hashCode();
289 if (getDatabase() != null)
291 _hashCode += getDatabase().hashCode();
293 if (getMatrix() != null)
295 _hashCode += getMatrix().hashCode();
297 _hashCode += new Float(getExp()).hashCode();
298 _hashCode += new Boolean(isEchofilter()).hashCode();
299 if (getFilter() != null)
301 _hashCode += getFilter().hashCode();
303 _hashCode += getNumal();
304 _hashCode += getScores();
305 if (getSensitivity() != null)
307 _hashCode += getSensitivity().hashCode();
309 if (getSort() != null)
311 _hashCode += getSort().hashCode();
313 if (getStats() != null)
315 _hashCode += getStats().hashCode();
317 if (getStrand() != null)
319 _hashCode += getStrand().hashCode();
321 if (getOutformat() != null)
323 _hashCode += getOutformat().hashCode();
325 _hashCode += getTopcombon();
326 _hashCode += new Boolean(isAsync()).hashCode();
327 if (getEmail() != null)
329 _hashCode += getEmail().hashCode();
331 __hashCodeCalc = false;
336 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
341 org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
342 field.setFieldName("program");
343 field.setXmlName(new javax.xml.namespace.QName("", "program"));
344 field.setXmlType(new javax.xml.namespace.QName(
345 "http://www.w3.org/2001/XMLSchema", "string"));
346 typeDesc.addFieldDesc(field);
347 field = new org.apache.axis.description.ElementDesc();
348 field.setFieldName("database");
349 field.setXmlName(new javax.xml.namespace.QName("", "database"));
350 field.setXmlType(new javax.xml.namespace.QName(
351 "http://www.w3.org/2001/XMLSchema", "string"));
352 typeDesc.addFieldDesc(field);
353 field = new org.apache.axis.description.ElementDesc();
354 field.setFieldName("matrix");
355 field.setXmlName(new javax.xml.namespace.QName("", "matrix"));
356 field.setXmlType(new javax.xml.namespace.QName(
357 "http://www.w3.org/2001/XMLSchema", "string"));
358 typeDesc.addFieldDesc(field);
359 field = new org.apache.axis.description.ElementDesc();
360 field.setFieldName("exp");
361 field.setXmlName(new javax.xml.namespace.QName("", "exp"));
362 field.setXmlType(new javax.xml.namespace.QName(
363 "http://www.w3.org/2001/XMLSchema", "float"));
364 typeDesc.addFieldDesc(field);
365 field = new org.apache.axis.description.ElementDesc();
366 field.setFieldName("echofilter");
367 field.setXmlName(new javax.xml.namespace.QName("", "echofilter"));
368 field.setXmlType(new javax.xml.namespace.QName(
369 "http://www.w3.org/2001/XMLSchema", "boolean"));
370 typeDesc.addFieldDesc(field);
371 field = new org.apache.axis.description.ElementDesc();
372 field.setFieldName("filter");
373 field.setXmlName(new javax.xml.namespace.QName("", "filter"));
374 field.setXmlType(new javax.xml.namespace.QName(
375 "http://www.w3.org/2001/XMLSchema", "string"));
376 typeDesc.addFieldDesc(field);
377 field = new org.apache.axis.description.ElementDesc();
378 field.setFieldName("numal");
379 field.setXmlName(new javax.xml.namespace.QName("", "numal"));
380 field.setXmlType(new javax.xml.namespace.QName(
381 "http://www.w3.org/2001/XMLSchema", "int"));
382 typeDesc.addFieldDesc(field);
383 field = new org.apache.axis.description.ElementDesc();
384 field.setFieldName("scores");
385 field.setXmlName(new javax.xml.namespace.QName("", "scores"));
386 field.setXmlType(new javax.xml.namespace.QName(
387 "http://www.w3.org/2001/XMLSchema", "int"));
388 typeDesc.addFieldDesc(field);
389 field = new org.apache.axis.description.ElementDesc();
390 field.setFieldName("sensitivity");
391 field.setXmlName(new javax.xml.namespace.QName("", "sensitivity"));
392 field.setXmlType(new javax.xml.namespace.QName(
393 "http://www.w3.org/2001/XMLSchema", "string"));
394 typeDesc.addFieldDesc(field);
395 field = new org.apache.axis.description.ElementDesc();
396 field.setFieldName("sort");
397 field.setXmlName(new javax.xml.namespace.QName("", "sort"));
398 field.setXmlType(new javax.xml.namespace.QName(
399 "http://www.w3.org/2001/XMLSchema", "string"));
400 typeDesc.addFieldDesc(field);
401 field = new org.apache.axis.description.ElementDesc();
402 field.setFieldName("stats");
403 field.setXmlName(new javax.xml.namespace.QName("", "stats"));
404 field.setXmlType(new javax.xml.namespace.QName(
405 "http://www.w3.org/2001/XMLSchema", "string"));
406 typeDesc.addFieldDesc(field);
407 field = new org.apache.axis.description.ElementDesc();
408 field.setFieldName("strand");
409 field.setXmlName(new javax.xml.namespace.QName("", "strand"));
410 field.setXmlType(new javax.xml.namespace.QName(
411 "http://www.w3.org/2001/XMLSchema", "string"));
412 typeDesc.addFieldDesc(field);
413 field = new org.apache.axis.description.ElementDesc();
414 field.setFieldName("outformat");
415 field.setXmlName(new javax.xml.namespace.QName("", "outformat"));
416 field.setXmlType(new javax.xml.namespace.QName(
417 "http://www.w3.org/2001/XMLSchema", "string"));
418 typeDesc.addFieldDesc(field);
419 field = new org.apache.axis.description.ElementDesc();
420 field.setFieldName("topcombon");
421 field.setXmlName(new javax.xml.namespace.QName("", "topcombon"));
422 field.setXmlType(new javax.xml.namespace.QName(
423 "http://www.w3.org/2001/XMLSchema", "int"));
424 typeDesc.addFieldDesc(field);
425 field = new org.apache.axis.description.ElementDesc();
426 field.setFieldName("async");
427 field.setXmlName(new javax.xml.namespace.QName("", "async"));
428 field.setXmlType(new javax.xml.namespace.QName(
429 "http://www.w3.org/2001/XMLSchema", "boolean"));
430 typeDesc.addFieldDesc(field);
431 field = new org.apache.axis.description.ElementDesc();
432 field.setFieldName("email");
433 field.setXmlName(new javax.xml.namespace.QName("", "email"));
434 field.setXmlType(new javax.xml.namespace.QName(
435 "http://www.w3.org/2001/XMLSchema", "string"));
436 typeDesc.addFieldDesc(field);
440 * Return type metadata object
442 public static org.apache.axis.description.TypeDesc getTypeDesc()
448 * Get Custom Serializer
450 public static org.apache.axis.encoding.Serializer getSerializer(
451 java.lang.String mechType, java.lang.Class _javaType,
452 javax.xml.namespace.QName _xmlType)
454 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
459 * Get Custom Deserializer
461 public static org.apache.axis.encoding.Deserializer getDeserializer(
462 java.lang.String mechType, java.lang.Class _javaType,
463 javax.xml.namespace.QName _xmlType)
465 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,