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