GPL license added
[jalview.git] / src / ext / vamsas / Result.java
1 /**
2  * Result.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
6  */
7
8 /*
9 * Jalview - A Sequence Alignment Editor and Viewer
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
25 */
26
27 package ext.vamsas;
28
29 public class Result  implements java.io.Serializable {
30     private boolean broken;
31     private boolean failed;
32     private boolean finished;
33     private boolean invalid;
34     private boolean jobFailed;
35     private boolean queued;
36     private boolean running;
37     private boolean serverError;
38     private int state;
39     private java.lang.String status;
40     private boolean suspended;
41
42     public Result() {
43     }
44
45     public Result(
46            boolean broken,
47            boolean failed,
48            boolean finished,
49            boolean invalid,
50            boolean jobFailed,
51            boolean queued,
52            boolean running,
53            boolean serverError,
54            int state,
55            java.lang.String status,
56            boolean suspended) {
57            this.broken = broken;
58            this.failed = failed;
59            this.finished = finished;
60            this.invalid = invalid;
61            this.jobFailed = jobFailed;
62            this.queued = queued;
63            this.running = running;
64            this.serverError = serverError;
65            this.state = state;
66            this.status = status;
67            this.suspended = suspended;
68     }
69
70
71     /**
72      * Gets the broken value for this Result.
73      *
74      * @return broken
75      */
76     public boolean isBroken() {
77         return broken;
78     }
79
80
81     /**
82      * Sets the broken value for this Result.
83      *
84      * @param broken
85      */
86     public void setBroken(boolean broken) {
87         this.broken = broken;
88     }
89
90
91     /**
92      * Gets the failed value for this Result.
93      *
94      * @return failed
95      */
96     public boolean isFailed() {
97         return failed;
98     }
99
100
101     /**
102      * Sets the failed value for this Result.
103      *
104      * @param failed
105      */
106     public void setFailed(boolean failed) {
107         this.failed = failed;
108     }
109
110
111     /**
112      * Gets the finished value for this Result.
113      *
114      * @return finished
115      */
116     public boolean isFinished() {
117         return finished;
118     }
119
120
121     /**
122      * Sets the finished value for this Result.
123      *
124      * @param finished
125      */
126     public void setFinished(boolean finished) {
127         this.finished = finished;
128     }
129
130
131     /**
132      * Gets the invalid value for this Result.
133      *
134      * @return invalid
135      */
136     public boolean isInvalid() {
137         return invalid;
138     }
139
140
141     /**
142      * Sets the invalid value for this Result.
143      *
144      * @param invalid
145      */
146     public void setInvalid(boolean invalid) {
147         this.invalid = invalid;
148     }
149
150
151     /**
152      * Gets the jobFailed value for this Result.
153      *
154      * @return jobFailed
155      */
156     public boolean isJobFailed() {
157         return jobFailed;
158     }
159
160
161     /**
162      * Sets the jobFailed value for this Result.
163      *
164      * @param jobFailed
165      */
166     public void setJobFailed(boolean jobFailed) {
167         this.jobFailed = jobFailed;
168     }
169
170
171     /**
172      * Gets the queued value for this Result.
173      *
174      * @return queued
175      */
176     public boolean isQueued() {
177         return queued;
178     }
179
180
181     /**
182      * Sets the queued value for this Result.
183      *
184      * @param queued
185      */
186     public void setQueued(boolean queued) {
187         this.queued = queued;
188     }
189
190
191     /**
192      * Gets the running value for this Result.
193      *
194      * @return running
195      */
196     public boolean isRunning() {
197         return running;
198     }
199
200
201     /**
202      * Sets the running value for this Result.
203      *
204      * @param running
205      */
206     public void setRunning(boolean running) {
207         this.running = running;
208     }
209
210
211     /**
212      * Gets the serverError value for this Result.
213      *
214      * @return serverError
215      */
216     public boolean isServerError() {
217         return serverError;
218     }
219
220
221     /**
222      * Sets the serverError value for this Result.
223      *
224      * @param serverError
225      */
226     public void setServerError(boolean serverError) {
227         this.serverError = serverError;
228     }
229
230
231     /**
232      * Gets the state value for this Result.
233      *
234      * @return state
235      */
236     public int getState() {
237         return state;
238     }
239
240
241     /**
242      * Sets the state value for this Result.
243      *
244      * @param state
245      */
246     public void setState(int state) {
247         this.state = state;
248     }
249
250
251     /**
252      * Gets the status value for this Result.
253      *
254      * @return status
255      */
256     public java.lang.String getStatus() {
257         return status;
258     }
259
260
261     /**
262      * Sets the status value for this Result.
263      *
264      * @param status
265      */
266     public void setStatus(java.lang.String status) {
267         this.status = status;
268     }
269
270
271     /**
272      * Gets the suspended value for this Result.
273      *
274      * @return suspended
275      */
276     public boolean isSuspended() {
277         return suspended;
278     }
279
280
281     /**
282      * Sets the suspended value for this Result.
283      *
284      * @param suspended
285      */
286     public void setSuspended(boolean suspended) {
287         this.suspended = suspended;
288     }
289
290     private java.lang.Object __equalsCalc = null;
291     public synchronized boolean equals(java.lang.Object obj) {
292         if (!(obj instanceof Result)) return false;
293         Result other = (Result) obj;
294         if (obj == null) return false;
295         if (this == obj) return true;
296         if (__equalsCalc != null) {
297             return (__equalsCalc == obj);
298         }
299         __equalsCalc = obj;
300         boolean _equals;
301         _equals = true &&
302             this.broken == other.isBroken() &&
303             this.failed == other.isFailed() &&
304             this.finished == other.isFinished() &&
305             this.invalid == other.isInvalid() &&
306             this.jobFailed == other.isJobFailed() &&
307             this.queued == other.isQueued() &&
308             this.running == other.isRunning() &&
309             this.serverError == other.isServerError() &&
310             this.state == other.getState() &&
311             ((this.status==null && other.getStatus()==null) ||
312              (this.status!=null &&
313               this.status.equals(other.getStatus()))) &&
314             this.suspended == other.isSuspended();
315         __equalsCalc = null;
316         return _equals;
317     }
318
319     private boolean __hashCodeCalc = false;
320     public synchronized int hashCode() {
321         if (__hashCodeCalc) {
322             return 0;
323         }
324         __hashCodeCalc = true;
325         int _hashCode = 1;
326         _hashCode += (isBroken() ? Boolean.TRUE : Boolean.FALSE).hashCode();
327         _hashCode += (isFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
328         _hashCode += (isFinished() ? Boolean.TRUE : Boolean.FALSE).hashCode();
329         _hashCode += (isInvalid() ? Boolean.TRUE : Boolean.FALSE).hashCode();
330         _hashCode += (isJobFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
331         _hashCode += (isQueued() ? Boolean.TRUE : Boolean.FALSE).hashCode();
332         _hashCode += (isRunning() ? Boolean.TRUE : Boolean.FALSE).hashCode();
333         _hashCode += (isServerError() ? Boolean.TRUE : Boolean.FALSE).hashCode();
334         _hashCode += getState();
335         if (getStatus() != null) {
336             _hashCode += getStatus().hashCode();
337         }
338         _hashCode += (isSuspended() ? Boolean.TRUE : Boolean.FALSE).hashCode();
339         __hashCodeCalc = false;
340         return _hashCode;
341     }
342
343     // Type metadata
344     private static org.apache.axis.description.TypeDesc typeDesc =
345         new org.apache.axis.description.TypeDesc(Result.class, true);
346
347     static {
348         typeDesc.setXmlType(new javax.xml.namespace.QName("http://dataTypes.vamsas", "Result"));
349         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
350         elemField.setFieldName("broken");
351         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "broken"));
352         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
353         typeDesc.addFieldDesc(elemField);
354         elemField = new org.apache.axis.description.ElementDesc();
355         elemField.setFieldName("failed");
356         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "failed"));
357         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
358         typeDesc.addFieldDesc(elemField);
359         elemField = new org.apache.axis.description.ElementDesc();
360         elemField.setFieldName("finished");
361         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "finished"));
362         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
363         typeDesc.addFieldDesc(elemField);
364         elemField = new org.apache.axis.description.ElementDesc();
365         elemField.setFieldName("invalid");
366         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "invalid"));
367         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
368         typeDesc.addFieldDesc(elemField);
369         elemField = new org.apache.axis.description.ElementDesc();
370         elemField.setFieldName("jobFailed");
371         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "jobFailed"));
372         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
373         typeDesc.addFieldDesc(elemField);
374         elemField = new org.apache.axis.description.ElementDesc();
375         elemField.setFieldName("queued");
376         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "queued"));
377         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
378         typeDesc.addFieldDesc(elemField);
379         elemField = new org.apache.axis.description.ElementDesc();
380         elemField.setFieldName("running");
381         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "running"));
382         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
383         typeDesc.addFieldDesc(elemField);
384         elemField = new org.apache.axis.description.ElementDesc();
385         elemField.setFieldName("serverError");
386         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "serverError"));
387         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
388         typeDesc.addFieldDesc(elemField);
389         elemField = new org.apache.axis.description.ElementDesc();
390         elemField.setFieldName("state");
391         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "state"));
392         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
393         typeDesc.addFieldDesc(elemField);
394         elemField = new org.apache.axis.description.ElementDesc();
395         elemField.setFieldName("status");
396         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "status"));
397         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
398         typeDesc.addFieldDesc(elemField);
399         elemField = new org.apache.axis.description.ElementDesc();
400         elemField.setFieldName("suspended");
401         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "suspended"));
402         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
403         typeDesc.addFieldDesc(elemField);
404     }
405
406     /**
407      * Return type metadata object
408      */
409     public static org.apache.axis.description.TypeDesc getTypeDesc() {
410         return typeDesc;
411     }
412
413     /**
414      * Get Custom Serializer
415      */
416     public static org.apache.axis.encoding.Serializer getSerializer(
417            java.lang.String mechType,
418            java.lang.Class _javaType,
419            javax.xml.namespace.QName _xmlType) {
420         return
421           new  org.apache.axis.encoding.ser.BeanSerializer(
422             _javaType, _xmlType, typeDesc);
423     }
424
425     /**
426      * Get Custom Deserializer
427      */
428     public static org.apache.axis.encoding.Deserializer getDeserializer(
429            java.lang.String mechType,
430            java.lang.Class _javaType,
431            javax.xml.namespace.QName _xmlType) {
432         return
433           new  org.apache.axis.encoding.ser.BeanDeserializer(
434             _javaType, _xmlType, typeDesc);
435     }
436
437 }