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);
246 && ((program == null && other.getProgram() == null) || (program != null && program
247 .equals(other.getProgram())))
248 && ((database == null && other.getDatabase() == null) || (database != null && database
249 .equals(other.getDatabase())))
250 && ((matrix == null && other.getMatrix() == null) || (matrix != null && matrix
251 .equals(other.getMatrix())))
252 && exp == other.getExp()
253 && echofilter == other.isEchofilter()
254 && ((filter == null && other.getFilter() == null) || (filter != null && filter
255 .equals(other.getFilter())))
256 && numal == other.getNumal()
257 && scores == other.getScores()
258 && ((sensitivity == null && other.getSensitivity() == null) || (sensitivity != null && sensitivity
259 .equals(other.getSensitivity())))
260 && ((sort == null && other.getSort() == null) || (sort != null && sort
261 .equals(other.getSort())))
262 && ((stats == null && other.getStats() == null) || (stats != null && stats
263 .equals(other.getStats())))
264 && ((strand == null && other.getStrand() == null) || (strand != null && strand
265 .equals(other.getStrand())))
266 && ((outformat == null && other.getOutformat() == null) || (outformat != null && outformat
267 .equals(other.getOutformat())))
268 && topcombon == other.getTopcombon()
269 && async == other.isAsync()
270 && ((email == null && other.getEmail() == null) || (email != null && email
271 .equals(other.getEmail())));
276 private boolean __hashCodeCalc = false;
279 public synchronized int hashCode()
285 __hashCodeCalc = true;
287 if (getProgram() != null)
289 _hashCode += getProgram().hashCode();
291 if (getDatabase() != null)
293 _hashCode += getDatabase().hashCode();
295 if (getMatrix() != null)
297 _hashCode += getMatrix().hashCode();
299 _hashCode += new Float(getExp()).hashCode();
300 _hashCode += new Boolean(isEchofilter()).hashCode();
301 if (getFilter() != null)
303 _hashCode += getFilter().hashCode();
305 _hashCode += getNumal();
306 _hashCode += getScores();
307 if (getSensitivity() != null)
309 _hashCode += getSensitivity().hashCode();
311 if (getSort() != null)
313 _hashCode += getSort().hashCode();
315 if (getStats() != null)
317 _hashCode += getStats().hashCode();
319 if (getStrand() != null)
321 _hashCode += getStrand().hashCode();
323 if (getOutformat() != null)
325 _hashCode += getOutformat().hashCode();
327 _hashCode += getTopcombon();
328 _hashCode += new Boolean(isAsync()).hashCode();
329 if (getEmail() != null)
331 _hashCode += getEmail().hashCode();
333 __hashCodeCalc = false;
338 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
343 org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
344 field.setFieldName("program");
345 field.setXmlName(new javax.xml.namespace.QName("", "program"));
346 field.setXmlType(new javax.xml.namespace.QName(
347 "http://www.w3.org/2001/XMLSchema", "string"));
348 typeDesc.addFieldDesc(field);
349 field = new org.apache.axis.description.ElementDesc();
350 field.setFieldName("database");
351 field.setXmlName(new javax.xml.namespace.QName("", "database"));
352 field.setXmlType(new javax.xml.namespace.QName(
353 "http://www.w3.org/2001/XMLSchema", "string"));
354 typeDesc.addFieldDesc(field);
355 field = new org.apache.axis.description.ElementDesc();
356 field.setFieldName("matrix");
357 field.setXmlName(new javax.xml.namespace.QName("", "matrix"));
358 field.setXmlType(new javax.xml.namespace.QName(
359 "http://www.w3.org/2001/XMLSchema", "string"));
360 typeDesc.addFieldDesc(field);
361 field = new org.apache.axis.description.ElementDesc();
362 field.setFieldName("exp");
363 field.setXmlName(new javax.xml.namespace.QName("", "exp"));
364 field.setXmlType(new javax.xml.namespace.QName(
365 "http://www.w3.org/2001/XMLSchema", "float"));
366 typeDesc.addFieldDesc(field);
367 field = new org.apache.axis.description.ElementDesc();
368 field.setFieldName("echofilter");
369 field.setXmlName(new javax.xml.namespace.QName("", "echofilter"));
370 field.setXmlType(new javax.xml.namespace.QName(
371 "http://www.w3.org/2001/XMLSchema", "boolean"));
372 typeDesc.addFieldDesc(field);
373 field = new org.apache.axis.description.ElementDesc();
374 field.setFieldName("filter");
375 field.setXmlName(new javax.xml.namespace.QName("", "filter"));
376 field.setXmlType(new javax.xml.namespace.QName(
377 "http://www.w3.org/2001/XMLSchema", "string"));
378 typeDesc.addFieldDesc(field);
379 field = new org.apache.axis.description.ElementDesc();
380 field.setFieldName("numal");
381 field.setXmlName(new javax.xml.namespace.QName("", "numal"));
382 field.setXmlType(new javax.xml.namespace.QName(
383 "http://www.w3.org/2001/XMLSchema", "int"));
384 typeDesc.addFieldDesc(field);
385 field = new org.apache.axis.description.ElementDesc();
386 field.setFieldName("scores");
387 field.setXmlName(new javax.xml.namespace.QName("", "scores"));
388 field.setXmlType(new javax.xml.namespace.QName(
389 "http://www.w3.org/2001/XMLSchema", "int"));
390 typeDesc.addFieldDesc(field);
391 field = new org.apache.axis.description.ElementDesc();
392 field.setFieldName("sensitivity");
393 field.setXmlName(new javax.xml.namespace.QName("", "sensitivity"));
394 field.setXmlType(new javax.xml.namespace.QName(
395 "http://www.w3.org/2001/XMLSchema", "string"));
396 typeDesc.addFieldDesc(field);
397 field = new org.apache.axis.description.ElementDesc();
398 field.setFieldName("sort");
399 field.setXmlName(new javax.xml.namespace.QName("", "sort"));
400 field.setXmlType(new javax.xml.namespace.QName(
401 "http://www.w3.org/2001/XMLSchema", "string"));
402 typeDesc.addFieldDesc(field);
403 field = new org.apache.axis.description.ElementDesc();
404 field.setFieldName("stats");
405 field.setXmlName(new javax.xml.namespace.QName("", "stats"));
406 field.setXmlType(new javax.xml.namespace.QName(
407 "http://www.w3.org/2001/XMLSchema", "string"));
408 typeDesc.addFieldDesc(field);
409 field = new org.apache.axis.description.ElementDesc();
410 field.setFieldName("strand");
411 field.setXmlName(new javax.xml.namespace.QName("", "strand"));
412 field.setXmlType(new javax.xml.namespace.QName(
413 "http://www.w3.org/2001/XMLSchema", "string"));
414 typeDesc.addFieldDesc(field);
415 field = new org.apache.axis.description.ElementDesc();
416 field.setFieldName("outformat");
417 field.setXmlName(new javax.xml.namespace.QName("", "outformat"));
418 field.setXmlType(new javax.xml.namespace.QName(
419 "http://www.w3.org/2001/XMLSchema", "string"));
420 typeDesc.addFieldDesc(field);
421 field = new org.apache.axis.description.ElementDesc();
422 field.setFieldName("topcombon");
423 field.setXmlName(new javax.xml.namespace.QName("", "topcombon"));
424 field.setXmlType(new javax.xml.namespace.QName(
425 "http://www.w3.org/2001/XMLSchema", "int"));
426 typeDesc.addFieldDesc(field);
427 field = new org.apache.axis.description.ElementDesc();
428 field.setFieldName("async");
429 field.setXmlName(new javax.xml.namespace.QName("", "async"));
430 field.setXmlType(new javax.xml.namespace.QName(
431 "http://www.w3.org/2001/XMLSchema", "boolean"));
432 typeDesc.addFieldDesc(field);
433 field = new org.apache.axis.description.ElementDesc();
434 field.setFieldName("email");
435 field.setXmlName(new javax.xml.namespace.QName("", "email"));
436 field.setXmlType(new javax.xml.namespace.QName(
437 "http://www.w3.org/2001/XMLSchema", "string"));
438 typeDesc.addFieldDesc(field);
442 * Return type metadata object
444 public static org.apache.axis.description.TypeDesc getTypeDesc()
450 * Get Custom Serializer
452 public static org.apache.axis.encoding.Serializer getSerializer(
453 java.lang.String mechType, java.lang.Class _javaType,
454 javax.xml.namespace.QName _xmlType)
456 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
461 * Get Custom Deserializer
463 public static org.apache.axis.encoding.Deserializer getDeserializer(
464 java.lang.String mechType, java.lang.Class _javaType,
465 javax.xml.namespace.QName _xmlType)
467 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,