recent rebuild of the JPred client from WSDL2Java
[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 package ext.vamsas;
9
10 public class Result  implements java.io.Serializable {
11     private boolean broken;
12     private boolean failed;
13     private boolean finished;
14     private boolean invalid;
15     private boolean jobFailed;
16     private boolean queued;
17     private boolean running;
18     private boolean serverError;
19     private int state;
20     private java.lang.String status;
21     private boolean suspended;
22
23     public Result() {
24     }
25
26     public Result(
27            boolean broken,
28            boolean failed,
29            boolean finished,
30            boolean invalid,
31            boolean jobFailed,
32            boolean queued,
33            boolean running,
34            boolean serverError,
35            int state,
36            java.lang.String status,
37            boolean suspended) {
38            this.broken = broken;
39            this.failed = failed;
40            this.finished = finished;
41            this.invalid = invalid;
42            this.jobFailed = jobFailed;
43            this.queued = queued;
44            this.running = running;
45            this.serverError = serverError;
46            this.state = state;
47            this.status = status;
48            this.suspended = suspended;
49     }
50
51
52     /**
53      * Gets the broken value for this Result.
54      * 
55      * @return broken
56      */
57     public boolean isBroken() {
58         return broken;
59     }
60
61
62     /**
63      * Sets the broken value for this Result.
64      * 
65      * @param broken
66      */
67     public void setBroken(boolean broken) {
68         this.broken = broken;
69     }
70
71
72     /**
73      * Gets the failed value for this Result.
74      * 
75      * @return failed
76      */
77     public boolean isFailed() {
78         return failed;
79     }
80
81
82     /**
83      * Sets the failed value for this Result.
84      * 
85      * @param failed
86      */
87     public void setFailed(boolean failed) {
88         this.failed = failed;
89     }
90
91
92     /**
93      * Gets the finished value for this Result.
94      * 
95      * @return finished
96      */
97     public boolean isFinished() {
98         return finished;
99     }
100
101
102     /**
103      * Sets the finished value for this Result.
104      * 
105      * @param finished
106      */
107     public void setFinished(boolean finished) {
108         this.finished = finished;
109     }
110
111
112     /**
113      * Gets the invalid value for this Result.
114      * 
115      * @return invalid
116      */
117     public boolean isInvalid() {
118         return invalid;
119     }
120
121
122     /**
123      * Sets the invalid value for this Result.
124      * 
125      * @param invalid
126      */
127     public void setInvalid(boolean invalid) {
128         this.invalid = invalid;
129     }
130
131
132     /**
133      * Gets the jobFailed value for this Result.
134      * 
135      * @return jobFailed
136      */
137     public boolean isJobFailed() {
138         return jobFailed;
139     }
140
141
142     /**
143      * Sets the jobFailed value for this Result.
144      * 
145      * @param jobFailed
146      */
147     public void setJobFailed(boolean jobFailed) {
148         this.jobFailed = jobFailed;
149     }
150
151
152     /**
153      * Gets the queued value for this Result.
154      * 
155      * @return queued
156      */
157     public boolean isQueued() {
158         return queued;
159     }
160
161
162     /**
163      * Sets the queued value for this Result.
164      * 
165      * @param queued
166      */
167     public void setQueued(boolean queued) {
168         this.queued = queued;
169     }
170
171
172     /**
173      * Gets the running value for this Result.
174      * 
175      * @return running
176      */
177     public boolean isRunning() {
178         return running;
179     }
180
181
182     /**
183      * Sets the running value for this Result.
184      * 
185      * @param running
186      */
187     public void setRunning(boolean running) {
188         this.running = running;
189     }
190
191
192     /**
193      * Gets the serverError value for this Result.
194      * 
195      * @return serverError
196      */
197     public boolean isServerError() {
198         return serverError;
199     }
200
201
202     /**
203      * Sets the serverError value for this Result.
204      * 
205      * @param serverError
206      */
207     public void setServerError(boolean serverError) {
208         this.serverError = serverError;
209     }
210
211
212     /**
213      * Gets the state value for this Result.
214      * 
215      * @return state
216      */
217     public int getState() {
218         return state;
219     }
220
221
222     /**
223      * Sets the state value for this Result.
224      * 
225      * @param state
226      */
227     public void setState(int state) {
228         this.state = state;
229     }
230
231
232     /**
233      * Gets the status value for this Result.
234      * 
235      * @return status
236      */
237     public java.lang.String getStatus() {
238         return status;
239     }
240
241
242     /**
243      * Sets the status value for this Result.
244      * 
245      * @param status
246      */
247     public void setStatus(java.lang.String status) {
248         this.status = status;
249     }
250
251
252     /**
253      * Gets the suspended value for this Result.
254      * 
255      * @return suspended
256      */
257     public boolean isSuspended() {
258         return suspended;
259     }
260
261
262     /**
263      * Sets the suspended value for this Result.
264      * 
265      * @param suspended
266      */
267     public void setSuspended(boolean suspended) {
268         this.suspended = suspended;
269     }
270
271     private java.lang.Object __equalsCalc = null;
272     public synchronized boolean equals(java.lang.Object obj) {
273         if (!(obj instanceof Result)) return false;
274         Result other = (Result) obj;
275         if (obj == null) return false;
276         if (this == obj) return true;
277         if (__equalsCalc != null) {
278             return (__equalsCalc == obj);
279         }
280         __equalsCalc = obj;
281         boolean _equals;
282         _equals = true && 
283             this.broken == other.isBroken() &&
284             this.failed == other.isFailed() &&
285             this.finished == other.isFinished() &&
286             this.invalid == other.isInvalid() &&
287             this.jobFailed == other.isJobFailed() &&
288             this.queued == other.isQueued() &&
289             this.running == other.isRunning() &&
290             this.serverError == other.isServerError() &&
291             this.state == other.getState() &&
292             ((this.status==null && other.getStatus()==null) || 
293              (this.status!=null &&
294               this.status.equals(other.getStatus()))) &&
295             this.suspended == other.isSuspended();
296         __equalsCalc = null;
297         return _equals;
298     }
299
300     private boolean __hashCodeCalc = false;
301     public synchronized int hashCode() {
302         if (__hashCodeCalc) {
303             return 0;
304         }
305         __hashCodeCalc = true;
306         int _hashCode = 1;
307         _hashCode += (isBroken() ? Boolean.TRUE : Boolean.FALSE).hashCode();
308         _hashCode += (isFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
309         _hashCode += (isFinished() ? Boolean.TRUE : Boolean.FALSE).hashCode();
310         _hashCode += (isInvalid() ? Boolean.TRUE : Boolean.FALSE).hashCode();
311         _hashCode += (isJobFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
312         _hashCode += (isQueued() ? Boolean.TRUE : Boolean.FALSE).hashCode();
313         _hashCode += (isRunning() ? Boolean.TRUE : Boolean.FALSE).hashCode();
314         _hashCode += (isServerError() ? Boolean.TRUE : Boolean.FALSE).hashCode();
315         _hashCode += getState();
316         if (getStatus() != null) {
317             _hashCode += getStatus().hashCode();
318         }
319         _hashCode += (isSuspended() ? Boolean.TRUE : Boolean.FALSE).hashCode();
320         __hashCodeCalc = false;
321         return _hashCode;
322     }
323
324     // Type metadata
325     private static org.apache.axis.description.TypeDesc typeDesc =
326         new org.apache.axis.description.TypeDesc(Result.class, true);
327
328     static {
329         typeDesc.setXmlType(new javax.xml.namespace.QName("http://dataTypes.vamsas", "Result"));
330         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
331         elemField.setFieldName("broken");
332         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "broken"));
333         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
334         typeDesc.addFieldDesc(elemField);
335         elemField = new org.apache.axis.description.ElementDesc();
336         elemField.setFieldName("failed");
337         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "failed"));
338         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
339         typeDesc.addFieldDesc(elemField);
340         elemField = new org.apache.axis.description.ElementDesc();
341         elemField.setFieldName("finished");
342         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "finished"));
343         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
344         typeDesc.addFieldDesc(elemField);
345         elemField = new org.apache.axis.description.ElementDesc();
346         elemField.setFieldName("invalid");
347         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "invalid"));
348         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
349         typeDesc.addFieldDesc(elemField);
350         elemField = new org.apache.axis.description.ElementDesc();
351         elemField.setFieldName("jobFailed");
352         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "jobFailed"));
353         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
354         typeDesc.addFieldDesc(elemField);
355         elemField = new org.apache.axis.description.ElementDesc();
356         elemField.setFieldName("queued");
357         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "queued"));
358         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
359         typeDesc.addFieldDesc(elemField);
360         elemField = new org.apache.axis.description.ElementDesc();
361         elemField.setFieldName("running");
362         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "running"));
363         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
364         typeDesc.addFieldDesc(elemField);
365         elemField = new org.apache.axis.description.ElementDesc();
366         elemField.setFieldName("serverError");
367         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "serverError"));
368         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
369         typeDesc.addFieldDesc(elemField);
370         elemField = new org.apache.axis.description.ElementDesc();
371         elemField.setFieldName("state");
372         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "state"));
373         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
374         typeDesc.addFieldDesc(elemField);
375         elemField = new org.apache.axis.description.ElementDesc();
376         elemField.setFieldName("status");
377         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "status"));
378         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
379         typeDesc.addFieldDesc(elemField);
380         elemField = new org.apache.axis.description.ElementDesc();
381         elemField.setFieldName("suspended");
382         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "suspended"));
383         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
384         typeDesc.addFieldDesc(elemField);
385     }
386
387     /**
388      * Return type metadata object
389      */
390     public static org.apache.axis.description.TypeDesc getTypeDesc() {
391         return typeDesc;
392     }
393
394     /**
395      * Get Custom Serializer
396      */
397     public static org.apache.axis.encoding.Serializer getSerializer(
398            java.lang.String mechType, 
399            java.lang.Class _javaType,  
400            javax.xml.namespace.QName _xmlType) {
401         return 
402           new  org.apache.axis.encoding.ser.BeanSerializer(
403             _javaType, _xmlType, typeDesc);
404     }
405
406     /**
407      * Get Custom Deserializer
408      */
409     public static org.apache.axis.encoding.Deserializer getDeserializer(
410            java.lang.String mechType, 
411            java.lang.Class _javaType,  
412            javax.xml.namespace.QName _xmlType) {
413         return 
414           new  org.apache.axis.encoding.ser.BeanDeserializer(
415             _javaType, _xmlType, typeDesc);
416     }
417
418 }