JAL-1432 updated copyright notices
[jalview.git] / src / uk / ac / ebi / www / InputParams.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3  * Copyright (C) 2014 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 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  * The Jalview Authors are detailed in the 'AUTHORS' file.
18  */
19 package uk.ac.ebi.www;
20
21 public class InputParams implements java.io.Serializable
22 {
23   private java.lang.String program;
24
25   private java.lang.String database;
26
27   private java.lang.String matrix;
28
29   private float exp;
30
31   private boolean echofilter;
32
33   private java.lang.String filter;
34
35   private int numal;
36
37   private int scores;
38
39   private java.lang.String sensitivity;
40
41   private java.lang.String sort;
42
43   private java.lang.String stats;
44
45   private java.lang.String strand;
46
47   private java.lang.String outformat;
48
49   private int topcombon;
50
51   private boolean async;
52
53   private java.lang.String email;
54
55   public InputParams()
56   {
57   }
58
59   public java.lang.String getProgram()
60   {
61     return program;
62   }
63
64   public void setProgram(java.lang.String program)
65   {
66     this.program = program;
67   }
68
69   public java.lang.String getDatabase()
70   {
71     return database;
72   }
73
74   public void setDatabase(java.lang.String database)
75   {
76     this.database = database;
77   }
78
79   public java.lang.String getMatrix()
80   {
81     return matrix;
82   }
83
84   public void setMatrix(java.lang.String matrix)
85   {
86     this.matrix = matrix;
87   }
88
89   public float getExp()
90   {
91     return exp;
92   }
93
94   public void setExp(float exp)
95   {
96     this.exp = exp;
97   }
98
99   public boolean isEchofilter()
100   {
101     return echofilter;
102   }
103
104   public void setEchofilter(boolean echofilter)
105   {
106     this.echofilter = echofilter;
107   }
108
109   public java.lang.String getFilter()
110   {
111     return filter;
112   }
113
114   public void setFilter(java.lang.String filter)
115   {
116     this.filter = filter;
117   }
118
119   public int getNumal()
120   {
121     return numal;
122   }
123
124   public void setNumal(int numal)
125   {
126     this.numal = numal;
127   }
128
129   public int getScores()
130   {
131     return scores;
132   }
133
134   public void setScores(int scores)
135   {
136     this.scores = scores;
137   }
138
139   public java.lang.String getSensitivity()
140   {
141     return sensitivity;
142   }
143
144   public void setSensitivity(java.lang.String sensitivity)
145   {
146     this.sensitivity = sensitivity;
147   }
148
149   public java.lang.String getSort()
150   {
151     return sort;
152   }
153
154   public void setSort(java.lang.String sort)
155   {
156     this.sort = sort;
157   }
158
159   public java.lang.String getStats()
160   {
161     return stats;
162   }
163
164   public void setStats(java.lang.String stats)
165   {
166     this.stats = stats;
167   }
168
169   public java.lang.String getStrand()
170   {
171     return strand;
172   }
173
174   public void setStrand(java.lang.String strand)
175   {
176     this.strand = strand;
177   }
178
179   public java.lang.String getOutformat()
180   {
181     return outformat;
182   }
183
184   public void setOutformat(java.lang.String outformat)
185   {
186     this.outformat = outformat;
187   }
188
189   public int getTopcombon()
190   {
191     return topcombon;
192   }
193
194   public void setTopcombon(int topcombon)
195   {
196     this.topcombon = topcombon;
197   }
198
199   public boolean isAsync()
200   {
201     return async;
202   }
203
204   public void setAsync(boolean async)
205   {
206     this.async = async;
207   }
208
209   public java.lang.String getEmail()
210   {
211     return email;
212   }
213
214   public void setEmail(java.lang.String email)
215   {
216     this.email = email;
217   }
218
219   private java.lang.Object __equalsCalc = null;
220
221   public synchronized boolean equals(java.lang.Object obj)
222   {
223     if (!(obj instanceof InputParams))
224     {
225       return false;
226     }
227     InputParams other = (InputParams) obj;
228     if (obj == null)
229     {
230       return false;
231     }
232     if (this == obj)
233     {
234       return true;
235     }
236     if (__equalsCalc != null)
237     {
238       return (__equalsCalc == obj);
239     }
240     __equalsCalc = obj;
241     boolean _equals;
242     _equals = true
243             && ((program == null && other.getProgram() == null) || (program != null && program
244                     .equals(other.getProgram())))
245             && ((database == null && other.getDatabase() == null) || (database != null && database
246                     .equals(other.getDatabase())))
247             && ((matrix == null && other.getMatrix() == null) || (matrix != null && matrix
248                     .equals(other.getMatrix())))
249             && exp == other.getExp()
250             && echofilter == other.isEchofilter()
251             && ((filter == null && other.getFilter() == null) || (filter != null && filter
252                     .equals(other.getFilter())))
253             && numal == other.getNumal()
254             && scores == other.getScores()
255             && ((sensitivity == null && other.getSensitivity() == null) || (sensitivity != null && sensitivity
256                     .equals(other.getSensitivity())))
257             && ((sort == null && other.getSort() == null) || (sort != null && sort
258                     .equals(other.getSort())))
259             && ((stats == null && other.getStats() == null) || (stats != null && stats
260                     .equals(other.getStats())))
261             && ((strand == null && other.getStrand() == null) || (strand != null && strand
262                     .equals(other.getStrand())))
263             && ((outformat == null && other.getOutformat() == null) || (outformat != null && outformat
264                     .equals(other.getOutformat())))
265             && topcombon == other.getTopcombon()
266             && async == other.isAsync()
267             && ((email == null && other.getEmail() == null) || (email != null && email
268                     .equals(other.getEmail())));
269     __equalsCalc = null;
270     return _equals;
271   }
272
273   private boolean __hashCodeCalc = false;
274
275   public synchronized int hashCode()
276   {
277     if (__hashCodeCalc)
278     {
279       return 0;
280     }
281     __hashCodeCalc = true;
282     int _hashCode = 1;
283     if (getProgram() != null)
284     {
285       _hashCode += getProgram().hashCode();
286     }
287     if (getDatabase() != null)
288     {
289       _hashCode += getDatabase().hashCode();
290     }
291     if (getMatrix() != null)
292     {
293       _hashCode += getMatrix().hashCode();
294     }
295     _hashCode += new Float(getExp()).hashCode();
296     _hashCode += new Boolean(isEchofilter()).hashCode();
297     if (getFilter() != null)
298     {
299       _hashCode += getFilter().hashCode();
300     }
301     _hashCode += getNumal();
302     _hashCode += getScores();
303     if (getSensitivity() != null)
304     {
305       _hashCode += getSensitivity().hashCode();
306     }
307     if (getSort() != null)
308     {
309       _hashCode += getSort().hashCode();
310     }
311     if (getStats() != null)
312     {
313       _hashCode += getStats().hashCode();
314     }
315     if (getStrand() != null)
316     {
317       _hashCode += getStrand().hashCode();
318     }
319     if (getOutformat() != null)
320     {
321       _hashCode += getOutformat().hashCode();
322     }
323     _hashCode += getTopcombon();
324     _hashCode += new Boolean(isAsync()).hashCode();
325     if (getEmail() != null)
326     {
327       _hashCode += getEmail().hashCode();
328     }
329     __hashCodeCalc = false;
330     return _hashCode;
331   }
332
333   // Type metadata
334   private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
335           InputParams.class);
336
337   static
338   {
339     org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
340     field.setFieldName("program");
341     field.setXmlName(new javax.xml.namespace.QName("", "program"));
342     field.setXmlType(new javax.xml.namespace.QName(
343             "http://www.w3.org/2001/XMLSchema", "string"));
344     typeDesc.addFieldDesc(field);
345     field = new org.apache.axis.description.ElementDesc();
346     field.setFieldName("database");
347     field.setXmlName(new javax.xml.namespace.QName("", "database"));
348     field.setXmlType(new javax.xml.namespace.QName(
349             "http://www.w3.org/2001/XMLSchema", "string"));
350     typeDesc.addFieldDesc(field);
351     field = new org.apache.axis.description.ElementDesc();
352     field.setFieldName("matrix");
353     field.setXmlName(new javax.xml.namespace.QName("", "matrix"));
354     field.setXmlType(new javax.xml.namespace.QName(
355             "http://www.w3.org/2001/XMLSchema", "string"));
356     typeDesc.addFieldDesc(field);
357     field = new org.apache.axis.description.ElementDesc();
358     field.setFieldName("exp");
359     field.setXmlName(new javax.xml.namespace.QName("", "exp"));
360     field.setXmlType(new javax.xml.namespace.QName(
361             "http://www.w3.org/2001/XMLSchema", "float"));
362     typeDesc.addFieldDesc(field);
363     field = new org.apache.axis.description.ElementDesc();
364     field.setFieldName("echofilter");
365     field.setXmlName(new javax.xml.namespace.QName("", "echofilter"));
366     field.setXmlType(new javax.xml.namespace.QName(
367             "http://www.w3.org/2001/XMLSchema", "boolean"));
368     typeDesc.addFieldDesc(field);
369     field = new org.apache.axis.description.ElementDesc();
370     field.setFieldName("filter");
371     field.setXmlName(new javax.xml.namespace.QName("", "filter"));
372     field.setXmlType(new javax.xml.namespace.QName(
373             "http://www.w3.org/2001/XMLSchema", "string"));
374     typeDesc.addFieldDesc(field);
375     field = new org.apache.axis.description.ElementDesc();
376     field.setFieldName("numal");
377     field.setXmlName(new javax.xml.namespace.QName("", "numal"));
378     field.setXmlType(new javax.xml.namespace.QName(
379             "http://www.w3.org/2001/XMLSchema", "int"));
380     typeDesc.addFieldDesc(field);
381     field = new org.apache.axis.description.ElementDesc();
382     field.setFieldName("scores");
383     field.setXmlName(new javax.xml.namespace.QName("", "scores"));
384     field.setXmlType(new javax.xml.namespace.QName(
385             "http://www.w3.org/2001/XMLSchema", "int"));
386     typeDesc.addFieldDesc(field);
387     field = new org.apache.axis.description.ElementDesc();
388     field.setFieldName("sensitivity");
389     field.setXmlName(new javax.xml.namespace.QName("", "sensitivity"));
390     field.setXmlType(new javax.xml.namespace.QName(
391             "http://www.w3.org/2001/XMLSchema", "string"));
392     typeDesc.addFieldDesc(field);
393     field = new org.apache.axis.description.ElementDesc();
394     field.setFieldName("sort");
395     field.setXmlName(new javax.xml.namespace.QName("", "sort"));
396     field.setXmlType(new javax.xml.namespace.QName(
397             "http://www.w3.org/2001/XMLSchema", "string"));
398     typeDesc.addFieldDesc(field);
399     field = new org.apache.axis.description.ElementDesc();
400     field.setFieldName("stats");
401     field.setXmlName(new javax.xml.namespace.QName("", "stats"));
402     field.setXmlType(new javax.xml.namespace.QName(
403             "http://www.w3.org/2001/XMLSchema", "string"));
404     typeDesc.addFieldDesc(field);
405     field = new org.apache.axis.description.ElementDesc();
406     field.setFieldName("strand");
407     field.setXmlName(new javax.xml.namespace.QName("", "strand"));
408     field.setXmlType(new javax.xml.namespace.QName(
409             "http://www.w3.org/2001/XMLSchema", "string"));
410     typeDesc.addFieldDesc(field);
411     field = new org.apache.axis.description.ElementDesc();
412     field.setFieldName("outformat");
413     field.setXmlName(new javax.xml.namespace.QName("", "outformat"));
414     field.setXmlType(new javax.xml.namespace.QName(
415             "http://www.w3.org/2001/XMLSchema", "string"));
416     typeDesc.addFieldDesc(field);
417     field = new org.apache.axis.description.ElementDesc();
418     field.setFieldName("topcombon");
419     field.setXmlName(new javax.xml.namespace.QName("", "topcombon"));
420     field.setXmlType(new javax.xml.namespace.QName(
421             "http://www.w3.org/2001/XMLSchema", "int"));
422     typeDesc.addFieldDesc(field);
423     field = new org.apache.axis.description.ElementDesc();
424     field.setFieldName("async");
425     field.setXmlName(new javax.xml.namespace.QName("", "async"));
426     field.setXmlType(new javax.xml.namespace.QName(
427             "http://www.w3.org/2001/XMLSchema", "boolean"));
428     typeDesc.addFieldDesc(field);
429     field = new org.apache.axis.description.ElementDesc();
430     field.setFieldName("email");
431     field.setXmlName(new javax.xml.namespace.QName("", "email"));
432     field.setXmlType(new javax.xml.namespace.QName(
433             "http://www.w3.org/2001/XMLSchema", "string"));
434     typeDesc.addFieldDesc(field);
435   };
436
437   /**
438    * Return type metadata object
439    */
440   public static org.apache.axis.description.TypeDesc getTypeDesc()
441   {
442     return typeDesc;
443   }
444
445   /**
446    * Get Custom Serializer
447    */
448   public static org.apache.axis.encoding.Serializer getSerializer(
449           java.lang.String mechType, java.lang.Class _javaType,
450           javax.xml.namespace.QName _xmlType)
451   {
452     return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
453             _xmlType, typeDesc);
454   }
455
456   /**
457    * Get Custom Deserializer
458    */
459   public static org.apache.axis.encoding.Deserializer getDeserializer(
460           java.lang.String mechType, java.lang.Class _javaType,
461           javax.xml.namespace.QName _xmlType)
462   {
463     return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
464             _xmlType, typeDesc);
465   }
466
467 }