fe1c70c873263ed7eb07d3933a99cff2e3624f1f
[jalview.git] / src / uk / ac / ebi / www / InputParams.java
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;
22
23 public class InputParams implements java.io.Serializable
24 {
25   private java.lang.String program;
26
27   private java.lang.String database;
28
29   private java.lang.String matrix;
30
31   private float exp;
32
33   private boolean echofilter;
34
35   private java.lang.String filter;
36
37   private int numal;
38
39   private int scores;
40
41   private java.lang.String sensitivity;
42
43   private java.lang.String sort;
44
45   private java.lang.String stats;
46
47   private java.lang.String strand;
48
49   private java.lang.String outformat;
50
51   private int topcombon;
52
53   private boolean async;
54
55   private java.lang.String email;
56
57   public InputParams()
58   {
59   }
60
61   public java.lang.String getProgram()
62   {
63     return program;
64   }
65
66   public void setProgram(java.lang.String program)
67   {
68     this.program = program;
69   }
70
71   public java.lang.String getDatabase()
72   {
73     return database;
74   }
75
76   public void setDatabase(java.lang.String database)
77   {
78     this.database = database;
79   }
80
81   public java.lang.String getMatrix()
82   {
83     return matrix;
84   }
85
86   public void setMatrix(java.lang.String matrix)
87   {
88     this.matrix = matrix;
89   }
90
91   public float getExp()
92   {
93     return exp;
94   }
95
96   public void setExp(float exp)
97   {
98     this.exp = exp;
99   }
100
101   public boolean isEchofilter()
102   {
103     return echofilter;
104   }
105
106   public void setEchofilter(boolean echofilter)
107   {
108     this.echofilter = echofilter;
109   }
110
111   public java.lang.String getFilter()
112   {
113     return filter;
114   }
115
116   public void setFilter(java.lang.String filter)
117   {
118     this.filter = filter;
119   }
120
121   public int getNumal()
122   {
123     return numal;
124   }
125
126   public void setNumal(int numal)
127   {
128     this.numal = numal;
129   }
130
131   public int getScores()
132   {
133     return scores;
134   }
135
136   public void setScores(int scores)
137   {
138     this.scores = scores;
139   }
140
141   public java.lang.String getSensitivity()
142   {
143     return sensitivity;
144   }
145
146   public void setSensitivity(java.lang.String sensitivity)
147   {
148     this.sensitivity = sensitivity;
149   }
150
151   public java.lang.String getSort()
152   {
153     return sort;
154   }
155
156   public void setSort(java.lang.String sort)
157   {
158     this.sort = sort;
159   }
160
161   public java.lang.String getStats()
162   {
163     return stats;
164   }
165
166   public void setStats(java.lang.String stats)
167   {
168     this.stats = stats;
169   }
170
171   public java.lang.String getStrand()
172   {
173     return strand;
174   }
175
176   public void setStrand(java.lang.String strand)
177   {
178     this.strand = strand;
179   }
180
181   public java.lang.String getOutformat()
182   {
183     return outformat;
184   }
185
186   public void setOutformat(java.lang.String outformat)
187   {
188     this.outformat = outformat;
189   }
190
191   public int getTopcombon()
192   {
193     return topcombon;
194   }
195
196   public void setTopcombon(int topcombon)
197   {
198     this.topcombon = topcombon;
199   }
200
201   public boolean isAsync()
202   {
203     return async;
204   }
205
206   public void setAsync(boolean async)
207   {
208     this.async = async;
209   }
210
211   public java.lang.String getEmail()
212   {
213     return email;
214   }
215
216   public void setEmail(java.lang.String email)
217   {
218     this.email = email;
219   }
220
221   private java.lang.Object __equalsCalc = null;
222
223   @Override
224   public synchronized boolean equals(java.lang.Object obj)
225   {
226     if (obj == null)
227     {
228       return false;
229     }
230     if (!(obj instanceof InputParams))
231     {
232       return false;
233     }
234     InputParams other = (InputParams) obj;
235     if (this == obj)
236     {
237       return true;
238     }
239     if (__equalsCalc != null)
240     {
241       return (__equalsCalc == obj);
242     }
243     __equalsCalc = obj;
244     boolean _equals;
245     _equals = true
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())));
272     __equalsCalc = null;
273     return _equals;
274   }
275
276   private boolean __hashCodeCalc = false;
277
278   @Override
279   public synchronized int hashCode()
280   {
281     if (__hashCodeCalc)
282     {
283       return 0;
284     }
285     __hashCodeCalc = true;
286     int _hashCode = 1;
287     if (getProgram() != null)
288     {
289       _hashCode += getProgram().hashCode();
290     }
291     if (getDatabase() != null)
292     {
293       _hashCode += getDatabase().hashCode();
294     }
295     if (getMatrix() != null)
296     {
297       _hashCode += getMatrix().hashCode();
298     }
299     _hashCode += new Float(getExp()).hashCode();
300     _hashCode += new Boolean(isEchofilter()).hashCode();
301     if (getFilter() != null)
302     {
303       _hashCode += getFilter().hashCode();
304     }
305     _hashCode += getNumal();
306     _hashCode += getScores();
307     if (getSensitivity() != null)
308     {
309       _hashCode += getSensitivity().hashCode();
310     }
311     if (getSort() != null)
312     {
313       _hashCode += getSort().hashCode();
314     }
315     if (getStats() != null)
316     {
317       _hashCode += getStats().hashCode();
318     }
319     if (getStrand() != null)
320     {
321       _hashCode += getStrand().hashCode();
322     }
323     if (getOutformat() != null)
324     {
325       _hashCode += getOutformat().hashCode();
326     }
327     _hashCode += getTopcombon();
328     _hashCode += new Boolean(isAsync()).hashCode();
329     if (getEmail() != null)
330     {
331       _hashCode += getEmail().hashCode();
332     }
333     __hashCodeCalc = false;
334     return _hashCode;
335   }
336
337   // Type metadata
338   private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
339           InputParams.class);
340
341   static
342   {
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);
439   };
440
441   /**
442    * Return type metadata object
443    */
444   public static org.apache.axis.description.TypeDesc getTypeDesc()
445   {
446     return typeDesc;
447   }
448
449   /**
450    * Get Custom Serializer
451    */
452   public static org.apache.axis.encoding.Serializer getSerializer(
453           java.lang.String mechType, java.lang.Class _javaType,
454           javax.xml.namespace.QName _xmlType)
455   {
456     return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
457             _xmlType, typeDesc);
458   }
459
460   /**
461    * Get Custom Deserializer
462    */
463   public static org.apache.axis.encoding.Deserializer getDeserializer(
464           java.lang.String mechType, java.lang.Class _javaType,
465           javax.xml.namespace.QName _xmlType)
466   {
467     return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
468             _xmlType, typeDesc);
469   }
470
471 }