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