2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
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 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
18 package uk.ac.ebi.www;
20 public class InputParams implements java.io.Serializable
22 private java.lang.String program;
24 private java.lang.String database;
26 private java.lang.String matrix;
30 private boolean echofilter;
32 private java.lang.String filter;
38 private java.lang.String sensitivity;
40 private java.lang.String sort;
42 private java.lang.String stats;
44 private java.lang.String strand;
46 private java.lang.String outformat;
48 private int topcombon;
50 private boolean async;
52 private java.lang.String email;
58 public java.lang.String getProgram()
63 public void setProgram(java.lang.String program)
65 this.program = program;
68 public java.lang.String getDatabase()
73 public void setDatabase(java.lang.String database)
75 this.database = database;
78 public java.lang.String getMatrix()
83 public void setMatrix(java.lang.String matrix)
93 public void setExp(float exp)
98 public boolean isEchofilter()
103 public void setEchofilter(boolean echofilter)
105 this.echofilter = echofilter;
108 public java.lang.String getFilter()
113 public void setFilter(java.lang.String filter)
115 this.filter = filter;
118 public int getNumal()
123 public void setNumal(int numal)
128 public int getScores()
133 public void setScores(int scores)
135 this.scores = scores;
138 public java.lang.String getSensitivity()
143 public void setSensitivity(java.lang.String sensitivity)
145 this.sensitivity = sensitivity;
148 public java.lang.String getSort()
153 public void setSort(java.lang.String sort)
158 public java.lang.String getStats()
163 public void setStats(java.lang.String stats)
168 public java.lang.String getStrand()
173 public void setStrand(java.lang.String strand)
175 this.strand = strand;
178 public java.lang.String getOutformat()
183 public void setOutformat(java.lang.String outformat)
185 this.outformat = outformat;
188 public int getTopcombon()
193 public void setTopcombon(int topcombon)
195 this.topcombon = topcombon;
198 public boolean isAsync()
203 public void setAsync(boolean async)
208 public java.lang.String getEmail()
213 public void setEmail(java.lang.String email)
218 private java.lang.Object __equalsCalc = null;
220 public synchronized boolean equals(java.lang.Object obj)
222 if (!(obj instanceof InputParams))
226 InputParams other = (InputParams) obj;
235 if (__equalsCalc != null)
237 return (__equalsCalc == obj);
242 && ((program == null && other.getProgram() == null) || (program != null && program
243 .equals(other.getProgram())))
244 && ((database == null && other.getDatabase() == null) || (database != null && database
245 .equals(other.getDatabase())))
246 && ((matrix == null && other.getMatrix() == null) || (matrix != null && matrix
247 .equals(other.getMatrix())))
248 && exp == other.getExp()
249 && echofilter == other.isEchofilter()
250 && ((filter == null && other.getFilter() == null) || (filter != null && filter
251 .equals(other.getFilter())))
252 && numal == other.getNumal()
253 && scores == other.getScores()
254 && ((sensitivity == null && other.getSensitivity() == null) || (sensitivity != null && sensitivity
255 .equals(other.getSensitivity())))
256 && ((sort == null && other.getSort() == null) || (sort != null && sort
257 .equals(other.getSort())))
258 && ((stats == null && other.getStats() == null) || (stats != null && stats
259 .equals(other.getStats())))
260 && ((strand == null && other.getStrand() == null) || (strand != null && strand
261 .equals(other.getStrand())))
262 && ((outformat == null && other.getOutformat() == null) || (outformat != null && outformat
263 .equals(other.getOutformat())))
264 && topcombon == other.getTopcombon()
265 && async == other.isAsync()
266 && ((email == null && other.getEmail() == null) || (email != null && email
267 .equals(other.getEmail())));
272 private boolean __hashCodeCalc = false;
274 public synchronized int hashCode()
280 __hashCodeCalc = true;
282 if (getProgram() != null)
284 _hashCode += getProgram().hashCode();
286 if (getDatabase() != null)
288 _hashCode += getDatabase().hashCode();
290 if (getMatrix() != null)
292 _hashCode += getMatrix().hashCode();
294 _hashCode += new Float(getExp()).hashCode();
295 _hashCode += new Boolean(isEchofilter()).hashCode();
296 if (getFilter() != null)
298 _hashCode += getFilter().hashCode();
300 _hashCode += getNumal();
301 _hashCode += getScores();
302 if (getSensitivity() != null)
304 _hashCode += getSensitivity().hashCode();
306 if (getSort() != null)
308 _hashCode += getSort().hashCode();
310 if (getStats() != null)
312 _hashCode += getStats().hashCode();
314 if (getStrand() != null)
316 _hashCode += getStrand().hashCode();
318 if (getOutformat() != null)
320 _hashCode += getOutformat().hashCode();
322 _hashCode += getTopcombon();
323 _hashCode += new Boolean(isAsync()).hashCode();
324 if (getEmail() != null)
326 _hashCode += getEmail().hashCode();
328 __hashCodeCalc = false;
333 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
338 org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
339 field.setFieldName("program");
340 field.setXmlName(new javax.xml.namespace.QName("", "program"));
341 field.setXmlType(new javax.xml.namespace.QName(
342 "http://www.w3.org/2001/XMLSchema", "string"));
343 typeDesc.addFieldDesc(field);
344 field = new org.apache.axis.description.ElementDesc();
345 field.setFieldName("database");
346 field.setXmlName(new javax.xml.namespace.QName("", "database"));
347 field.setXmlType(new javax.xml.namespace.QName(
348 "http://www.w3.org/2001/XMLSchema", "string"));
349 typeDesc.addFieldDesc(field);
350 field = new org.apache.axis.description.ElementDesc();
351 field.setFieldName("matrix");
352 field.setXmlName(new javax.xml.namespace.QName("", "matrix"));
353 field.setXmlType(new javax.xml.namespace.QName(
354 "http://www.w3.org/2001/XMLSchema", "string"));
355 typeDesc.addFieldDesc(field);
356 field = new org.apache.axis.description.ElementDesc();
357 field.setFieldName("exp");
358 field.setXmlName(new javax.xml.namespace.QName("", "exp"));
359 field.setXmlType(new javax.xml.namespace.QName(
360 "http://www.w3.org/2001/XMLSchema", "float"));
361 typeDesc.addFieldDesc(field);
362 field = new org.apache.axis.description.ElementDesc();
363 field.setFieldName("echofilter");
364 field.setXmlName(new javax.xml.namespace.QName("", "echofilter"));
365 field.setXmlType(new javax.xml.namespace.QName(
366 "http://www.w3.org/2001/XMLSchema", "boolean"));
367 typeDesc.addFieldDesc(field);
368 field = new org.apache.axis.description.ElementDesc();
369 field.setFieldName("filter");
370 field.setXmlName(new javax.xml.namespace.QName("", "filter"));
371 field.setXmlType(new javax.xml.namespace.QName(
372 "http://www.w3.org/2001/XMLSchema", "string"));
373 typeDesc.addFieldDesc(field);
374 field = new org.apache.axis.description.ElementDesc();
375 field.setFieldName("numal");
376 field.setXmlName(new javax.xml.namespace.QName("", "numal"));
377 field.setXmlType(new javax.xml.namespace.QName(
378 "http://www.w3.org/2001/XMLSchema", "int"));
379 typeDesc.addFieldDesc(field);
380 field = new org.apache.axis.description.ElementDesc();
381 field.setFieldName("scores");
382 field.setXmlName(new javax.xml.namespace.QName("", "scores"));
383 field.setXmlType(new javax.xml.namespace.QName(
384 "http://www.w3.org/2001/XMLSchema", "int"));
385 typeDesc.addFieldDesc(field);
386 field = new org.apache.axis.description.ElementDesc();
387 field.setFieldName("sensitivity");
388 field.setXmlName(new javax.xml.namespace.QName("", "sensitivity"));
389 field.setXmlType(new javax.xml.namespace.QName(
390 "http://www.w3.org/2001/XMLSchema", "string"));
391 typeDesc.addFieldDesc(field);
392 field = new org.apache.axis.description.ElementDesc();
393 field.setFieldName("sort");
394 field.setXmlName(new javax.xml.namespace.QName("", "sort"));
395 field.setXmlType(new javax.xml.namespace.QName(
396 "http://www.w3.org/2001/XMLSchema", "string"));
397 typeDesc.addFieldDesc(field);
398 field = new org.apache.axis.description.ElementDesc();
399 field.setFieldName("stats");
400 field.setXmlName(new javax.xml.namespace.QName("", "stats"));
401 field.setXmlType(new javax.xml.namespace.QName(
402 "http://www.w3.org/2001/XMLSchema", "string"));
403 typeDesc.addFieldDesc(field);
404 field = new org.apache.axis.description.ElementDesc();
405 field.setFieldName("strand");
406 field.setXmlName(new javax.xml.namespace.QName("", "strand"));
407 field.setXmlType(new javax.xml.namespace.QName(
408 "http://www.w3.org/2001/XMLSchema", "string"));
409 typeDesc.addFieldDesc(field);
410 field = new org.apache.axis.description.ElementDesc();
411 field.setFieldName("outformat");
412 field.setXmlName(new javax.xml.namespace.QName("", "outformat"));
413 field.setXmlType(new javax.xml.namespace.QName(
414 "http://www.w3.org/2001/XMLSchema", "string"));
415 typeDesc.addFieldDesc(field);
416 field = new org.apache.axis.description.ElementDesc();
417 field.setFieldName("topcombon");
418 field.setXmlName(new javax.xml.namespace.QName("", "topcombon"));
419 field.setXmlType(new javax.xml.namespace.QName(
420 "http://www.w3.org/2001/XMLSchema", "int"));
421 typeDesc.addFieldDesc(field);
422 field = new org.apache.axis.description.ElementDesc();
423 field.setFieldName("async");
424 field.setXmlName(new javax.xml.namespace.QName("", "async"));
425 field.setXmlType(new javax.xml.namespace.QName(
426 "http://www.w3.org/2001/XMLSchema", "boolean"));
427 typeDesc.addFieldDesc(field);
428 field = new org.apache.axis.description.ElementDesc();
429 field.setFieldName("email");
430 field.setXmlName(new javax.xml.namespace.QName("", "email"));
431 field.setXmlType(new javax.xml.namespace.QName(
432 "http://www.w3.org/2001/XMLSchema", "string"));
433 typeDesc.addFieldDesc(field);
437 * Return type metadata object
439 public static org.apache.axis.description.TypeDesc getTypeDesc()
445 * Get Custom Serializer
447 public static org.apache.axis.encoding.Serializer getSerializer(
448 java.lang.String mechType, java.lang.Class _javaType,
449 javax.xml.namespace.QName _xmlType)
451 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
456 * Get Custom Deserializer
458 public static org.apache.axis.encoding.Deserializer getDeserializer(
459 java.lang.String mechType, java.lang.Class _javaType,
460 javax.xml.namespace.QName _xmlType)
462 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,