JAL-3438 spotless for 2.11.2.0
[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 && ((program == null && other.getProgram() == null)
246             || (program != null && program.equals(other.getProgram())))
247             && ((database == null && other.getDatabase() == null)
248                     || (database != null
249                             && database.equals(other.getDatabase())))
250             && ((matrix == null && other.getMatrix() == null)
251                     || (matrix != null && matrix.equals(other.getMatrix())))
252             && exp == other.getExp() && echofilter == other.isEchofilter()
253             && ((filter == null && other.getFilter() == null)
254                     || (filter != null && filter.equals(other.getFilter())))
255             && numal == other.getNumal() && scores == other.getScores()
256             && ((sensitivity == null && other.getSensitivity() == null)
257                     || (sensitivity != null
258                             && sensitivity.equals(other.getSensitivity())))
259             && ((sort == null && other.getSort() == null)
260                     || (sort != null && sort.equals(other.getSort())))
261             && ((stats == null && other.getStats() == null)
262                     || (stats != null && stats.equals(other.getStats())))
263             && ((strand == null && other.getStrand() == null)
264                     || (strand != null && strand.equals(other.getStrand())))
265             && ((outformat == null && other.getOutformat() == null)
266                     || (outformat != null
267                             && outformat.equals(other.getOutformat())))
268             && topcombon == other.getTopcombon() && async == other.isAsync()
269             && ((email == null && other.getEmail() == null)
270                     || (email != null && email.equals(other.getEmail())));
271     __equalsCalc = null;
272     return _equals;
273   }
274
275   private boolean __hashCodeCalc = false;
276
277   @Override
278   public synchronized int hashCode()
279   {
280     if (__hashCodeCalc)
281     {
282       return 0;
283     }
284     __hashCodeCalc = true;
285     int _hashCode = 1;
286     if (getProgram() != null)
287     {
288       _hashCode += getProgram().hashCode();
289     }
290     if (getDatabase() != null)
291     {
292       _hashCode += getDatabase().hashCode();
293     }
294     if (getMatrix() != null)
295     {
296       _hashCode += getMatrix().hashCode();
297     }
298     _hashCode += Float.valueOf(getExp()).hashCode();
299     _hashCode += Boolean.valueOf(isEchofilter()).hashCode();
300     if (getFilter() != null)
301     {
302       _hashCode += getFilter().hashCode();
303     }
304     _hashCode += getNumal();
305     _hashCode += getScores();
306     if (getSensitivity() != null)
307     {
308       _hashCode += getSensitivity().hashCode();
309     }
310     if (getSort() != null)
311     {
312       _hashCode += getSort().hashCode();
313     }
314     if (getStats() != null)
315     {
316       _hashCode += getStats().hashCode();
317     }
318     if (getStrand() != null)
319     {
320       _hashCode += getStrand().hashCode();
321     }
322     if (getOutformat() != null)
323     {
324       _hashCode += getOutformat().hashCode();
325     }
326     _hashCode += getTopcombon();
327     _hashCode += Boolean.valueOf(isAsync()).hashCode();
328     if (getEmail() != null)
329     {
330       _hashCode += getEmail().hashCode();
331     }
332     __hashCodeCalc = false;
333     return _hashCode;
334   }
335
336   // Type metadata
337   private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
338           InputParams.class);
339
340   static
341   {
342     org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
343     field.setFieldName("program");
344     field.setXmlName(new javax.xml.namespace.QName("", "program"));
345     field.setXmlType(new javax.xml.namespace.QName(
346             "http://www.w3.org/2001/XMLSchema", "string"));
347     typeDesc.addFieldDesc(field);
348     field = new org.apache.axis.description.ElementDesc();
349     field.setFieldName("database");
350     field.setXmlName(new javax.xml.namespace.QName("", "database"));
351     field.setXmlType(new javax.xml.namespace.QName(
352             "http://www.w3.org/2001/XMLSchema", "string"));
353     typeDesc.addFieldDesc(field);
354     field = new org.apache.axis.description.ElementDesc();
355     field.setFieldName("matrix");
356     field.setXmlName(new javax.xml.namespace.QName("", "matrix"));
357     field.setXmlType(new javax.xml.namespace.QName(
358             "http://www.w3.org/2001/XMLSchema", "string"));
359     typeDesc.addFieldDesc(field);
360     field = new org.apache.axis.description.ElementDesc();
361     field.setFieldName("exp");
362     field.setXmlName(new javax.xml.namespace.QName("", "exp"));
363     field.setXmlType(new javax.xml.namespace.QName(
364             "http://www.w3.org/2001/XMLSchema", "float"));
365     typeDesc.addFieldDesc(field);
366     field = new org.apache.axis.description.ElementDesc();
367     field.setFieldName("echofilter");
368     field.setXmlName(new javax.xml.namespace.QName("", "echofilter"));
369     field.setXmlType(new javax.xml.namespace.QName(
370             "http://www.w3.org/2001/XMLSchema", "boolean"));
371     typeDesc.addFieldDesc(field);
372     field = new org.apache.axis.description.ElementDesc();
373     field.setFieldName("filter");
374     field.setXmlName(new javax.xml.namespace.QName("", "filter"));
375     field.setXmlType(new javax.xml.namespace.QName(
376             "http://www.w3.org/2001/XMLSchema", "string"));
377     typeDesc.addFieldDesc(field);
378     field = new org.apache.axis.description.ElementDesc();
379     field.setFieldName("numal");
380     field.setXmlName(new javax.xml.namespace.QName("", "numal"));
381     field.setXmlType(new javax.xml.namespace.QName(
382             "http://www.w3.org/2001/XMLSchema", "int"));
383     typeDesc.addFieldDesc(field);
384     field = new org.apache.axis.description.ElementDesc();
385     field.setFieldName("scores");
386     field.setXmlName(new javax.xml.namespace.QName("", "scores"));
387     field.setXmlType(new javax.xml.namespace.QName(
388             "http://www.w3.org/2001/XMLSchema", "int"));
389     typeDesc.addFieldDesc(field);
390     field = new org.apache.axis.description.ElementDesc();
391     field.setFieldName("sensitivity");
392     field.setXmlName(new javax.xml.namespace.QName("", "sensitivity"));
393     field.setXmlType(new javax.xml.namespace.QName(
394             "http://www.w3.org/2001/XMLSchema", "string"));
395     typeDesc.addFieldDesc(field);
396     field = new org.apache.axis.description.ElementDesc();
397     field.setFieldName("sort");
398     field.setXmlName(new javax.xml.namespace.QName("", "sort"));
399     field.setXmlType(new javax.xml.namespace.QName(
400             "http://www.w3.org/2001/XMLSchema", "string"));
401     typeDesc.addFieldDesc(field);
402     field = new org.apache.axis.description.ElementDesc();
403     field.setFieldName("stats");
404     field.setXmlName(new javax.xml.namespace.QName("", "stats"));
405     field.setXmlType(new javax.xml.namespace.QName(
406             "http://www.w3.org/2001/XMLSchema", "string"));
407     typeDesc.addFieldDesc(field);
408     field = new org.apache.axis.description.ElementDesc();
409     field.setFieldName("strand");
410     field.setXmlName(new javax.xml.namespace.QName("", "strand"));
411     field.setXmlType(new javax.xml.namespace.QName(
412             "http://www.w3.org/2001/XMLSchema", "string"));
413     typeDesc.addFieldDesc(field);
414     field = new org.apache.axis.description.ElementDesc();
415     field.setFieldName("outformat");
416     field.setXmlName(new javax.xml.namespace.QName("", "outformat"));
417     field.setXmlType(new javax.xml.namespace.QName(
418             "http://www.w3.org/2001/XMLSchema", "string"));
419     typeDesc.addFieldDesc(field);
420     field = new org.apache.axis.description.ElementDesc();
421     field.setFieldName("topcombon");
422     field.setXmlName(new javax.xml.namespace.QName("", "topcombon"));
423     field.setXmlType(new javax.xml.namespace.QName(
424             "http://www.w3.org/2001/XMLSchema", "int"));
425     typeDesc.addFieldDesc(field);
426     field = new org.apache.axis.description.ElementDesc();
427     field.setFieldName("async");
428     field.setXmlName(new javax.xml.namespace.QName("", "async"));
429     field.setXmlType(new javax.xml.namespace.QName(
430             "http://www.w3.org/2001/XMLSchema", "boolean"));
431     typeDesc.addFieldDesc(field);
432     field = new org.apache.axis.description.ElementDesc();
433     field.setFieldName("email");
434     field.setXmlName(new javax.xml.namespace.QName("", "email"));
435     field.setXmlType(new javax.xml.namespace.QName(
436             "http://www.w3.org/2001/XMLSchema", "string"));
437     typeDesc.addFieldDesc(field);
438   };
439
440   /**
441    * Return type metadata object
442    */
443   public static org.apache.axis.description.TypeDesc getTypeDesc()
444   {
445     return typeDesc;
446   }
447
448   /**
449    * Get Custom Serializer
450    */
451   public static org.apache.axis.encoding.Serializer getSerializer(
452           java.lang.String mechType, java.lang.Class _javaType,
453           javax.xml.namespace.QName _xmlType)
454   {
455     return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
456             _xmlType, typeDesc);
457   }
458
459   /**
460    * Get Custom Deserializer
461    */
462   public static org.apache.axis.encoding.Deserializer getDeserializer(
463           java.lang.String mechType, java.lang.Class _javaType,
464           javax.xml.namespace.QName _xmlType)
465   {
466     return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
467             _xmlType, typeDesc);
468   }
469
470 }