2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ 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;
224 public synchronized boolean equals(java.lang.Object obj)
230 if (!(obj instanceof InputParams))
234 InputParams other = (InputParams) obj;
239 if (__equalsCalc != null)
241 return (__equalsCalc == obj);
245 _equals = true && ((program == null && other.getProgram() == null)
246 || (program != null && program.equals(other.getProgram())))
247 && ((database == null && other.getDatabase() == null)
249 && database.equals(other.getDatabase())))
250 && ((matrix == null && other.getMatrix() == null)
251 || (matrix != null && matrix.equals(other.getMatrix())))
252 && exp == other.getExp() && echofilter == other.isEchofilter()
253 && ((filter == null && other.getFilter() == null)
254 || (filter != null && filter.equals(other.getFilter())))
255 && numal == other.getNumal() && scores == other.getScores()
256 && ((sensitivity == null && other.getSensitivity() == null)
257 || (sensitivity != null
258 && sensitivity.equals(other.getSensitivity())))
259 && ((sort == null && other.getSort() == null)
260 || (sort != null && sort.equals(other.getSort())))
261 && ((stats == null && other.getStats() == null)
262 || (stats != null && stats.equals(other.getStats())))
263 && ((strand == null && other.getStrand() == null)
264 || (strand != null && strand.equals(other.getStrand())))
265 && ((outformat == null && other.getOutformat() == null)
266 || (outformat != null
267 && outformat.equals(other.getOutformat())))
268 && topcombon == other.getTopcombon() && async == other.isAsync()
269 && ((email == null && other.getEmail() == null)
270 || (email != null && email.equals(other.getEmail())));
275 private boolean __hashCodeCalc = false;
278 public synchronized int hashCode()
284 __hashCodeCalc = true;
286 if (getProgram() != null)
288 _hashCode += getProgram().hashCode();
290 if (getDatabase() != null)
292 _hashCode += getDatabase().hashCode();
294 if (getMatrix() != null)
296 _hashCode += getMatrix().hashCode();
298 _hashCode += Float.valueOf(getExp()).hashCode();
299 _hashCode += Boolean.valueOf(isEchofilter()).hashCode();
300 if (getFilter() != null)
302 _hashCode += getFilter().hashCode();
304 _hashCode += getNumal();
305 _hashCode += getScores();
306 if (getSensitivity() != null)
308 _hashCode += getSensitivity().hashCode();
310 if (getSort() != null)
312 _hashCode += getSort().hashCode();
314 if (getStats() != null)
316 _hashCode += getStats().hashCode();
318 if (getStrand() != null)
320 _hashCode += getStrand().hashCode();
322 if (getOutformat() != null)
324 _hashCode += getOutformat().hashCode();
326 _hashCode += getTopcombon();
327 _hashCode += Boolean.valueOf(isAsync()).hashCode();
328 if (getEmail() != null)
330 _hashCode += getEmail().hashCode();
332 __hashCodeCalc = false;
337 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
342 org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
343 field.setFieldName("program");
344 field.setXmlName(new javax.xml.namespace.QName("", "program"));
345 field.setXmlType(new javax.xml.namespace.QName(
346 "http://www.w3.org/2001/XMLSchema", "string"));
347 typeDesc.addFieldDesc(field);
348 field = new org.apache.axis.description.ElementDesc();
349 field.setFieldName("database");
350 field.setXmlName(new javax.xml.namespace.QName("", "database"));
351 field.setXmlType(new javax.xml.namespace.QName(
352 "http://www.w3.org/2001/XMLSchema", "string"));
353 typeDesc.addFieldDesc(field);
354 field = new org.apache.axis.description.ElementDesc();
355 field.setFieldName("matrix");
356 field.setXmlName(new javax.xml.namespace.QName("", "matrix"));
357 field.setXmlType(new javax.xml.namespace.QName(
358 "http://www.w3.org/2001/XMLSchema", "string"));
359 typeDesc.addFieldDesc(field);
360 field = new org.apache.axis.description.ElementDesc();
361 field.setFieldName("exp");
362 field.setXmlName(new javax.xml.namespace.QName("", "exp"));
363 field.setXmlType(new javax.xml.namespace.QName(
364 "http://www.w3.org/2001/XMLSchema", "float"));
365 typeDesc.addFieldDesc(field);
366 field = new org.apache.axis.description.ElementDesc();
367 field.setFieldName("echofilter");
368 field.setXmlName(new javax.xml.namespace.QName("", "echofilter"));
369 field.setXmlType(new javax.xml.namespace.QName(
370 "http://www.w3.org/2001/XMLSchema", "boolean"));
371 typeDesc.addFieldDesc(field);
372 field = new org.apache.axis.description.ElementDesc();
373 field.setFieldName("filter");
374 field.setXmlName(new javax.xml.namespace.QName("", "filter"));
375 field.setXmlType(new javax.xml.namespace.QName(
376 "http://www.w3.org/2001/XMLSchema", "string"));
377 typeDesc.addFieldDesc(field);
378 field = new org.apache.axis.description.ElementDesc();
379 field.setFieldName("numal");
380 field.setXmlName(new javax.xml.namespace.QName("", "numal"));
381 field.setXmlType(new javax.xml.namespace.QName(
382 "http://www.w3.org/2001/XMLSchema", "int"));
383 typeDesc.addFieldDesc(field);
384 field = new org.apache.axis.description.ElementDesc();
385 field.setFieldName("scores");
386 field.setXmlName(new javax.xml.namespace.QName("", "scores"));
387 field.setXmlType(new javax.xml.namespace.QName(
388 "http://www.w3.org/2001/XMLSchema", "int"));
389 typeDesc.addFieldDesc(field);
390 field = new org.apache.axis.description.ElementDesc();
391 field.setFieldName("sensitivity");
392 field.setXmlName(new javax.xml.namespace.QName("", "sensitivity"));
393 field.setXmlType(new javax.xml.namespace.QName(
394 "http://www.w3.org/2001/XMLSchema", "string"));
395 typeDesc.addFieldDesc(field);
396 field = new org.apache.axis.description.ElementDesc();
397 field.setFieldName("sort");
398 field.setXmlName(new javax.xml.namespace.QName("", "sort"));
399 field.setXmlType(new javax.xml.namespace.QName(
400 "http://www.w3.org/2001/XMLSchema", "string"));
401 typeDesc.addFieldDesc(field);
402 field = new org.apache.axis.description.ElementDesc();
403 field.setFieldName("stats");
404 field.setXmlName(new javax.xml.namespace.QName("", "stats"));
405 field.setXmlType(new javax.xml.namespace.QName(
406 "http://www.w3.org/2001/XMLSchema", "string"));
407 typeDesc.addFieldDesc(field);
408 field = new org.apache.axis.description.ElementDesc();
409 field.setFieldName("strand");
410 field.setXmlName(new javax.xml.namespace.QName("", "strand"));
411 field.setXmlType(new javax.xml.namespace.QName(
412 "http://www.w3.org/2001/XMLSchema", "string"));
413 typeDesc.addFieldDesc(field);
414 field = new org.apache.axis.description.ElementDesc();
415 field.setFieldName("outformat");
416 field.setXmlName(new javax.xml.namespace.QName("", "outformat"));
417 field.setXmlType(new javax.xml.namespace.QName(
418 "http://www.w3.org/2001/XMLSchema", "string"));
419 typeDesc.addFieldDesc(field);
420 field = new org.apache.axis.description.ElementDesc();
421 field.setFieldName("topcombon");
422 field.setXmlName(new javax.xml.namespace.QName("", "topcombon"));
423 field.setXmlType(new javax.xml.namespace.QName(
424 "http://www.w3.org/2001/XMLSchema", "int"));
425 typeDesc.addFieldDesc(field);
426 field = new org.apache.axis.description.ElementDesc();
427 field.setFieldName("async");
428 field.setXmlName(new javax.xml.namespace.QName("", "async"));
429 field.setXmlType(new javax.xml.namespace.QName(
430 "http://www.w3.org/2001/XMLSchema", "boolean"));
431 typeDesc.addFieldDesc(field);
432 field = new org.apache.axis.description.ElementDesc();
433 field.setFieldName("email");
434 field.setXmlName(new javax.xml.namespace.QName("", "email"));
435 field.setXmlType(new javax.xml.namespace.QName(
436 "http://www.w3.org/2001/XMLSchema", "string"));
437 typeDesc.addFieldDesc(field);
441 * Return type metadata object
443 public static org.apache.axis.description.TypeDesc getTypeDesc()
449 * Get Custom Serializer
451 public static org.apache.axis.encoding.Serializer getSerializer(
452 java.lang.String mechType, java.lang.Class _javaType,
453 javax.xml.namespace.QName _xmlType)
455 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
460 * Get Custom Deserializer
462 public static org.apache.axis.encoding.Deserializer getDeserializer(
463 java.lang.String mechType, java.lang.Class _javaType,
464 javax.xml.namespace.QName _xmlType)
466 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,