4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
9 * Jalview - A Sequence Alignment Editor and Viewer
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
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.
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.
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
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;
39 private java.lang.String status;
40 private boolean suspended;
55 java.lang.String status,
59 this.finished = finished;
60 this.invalid = invalid;
61 this.jobFailed = jobFailed;
63 this.running = running;
64 this.serverError = serverError;
67 this.suspended = suspended;
72 * Gets the broken value for this Result.
76 public boolean isBroken() {
82 * Sets the broken value for this Result.
86 public void setBroken(boolean broken) {
92 * Gets the failed value for this Result.
96 public boolean isFailed() {
102 * Sets the failed value for this Result.
106 public void setFailed(boolean failed) {
107 this.failed = failed;
112 * Gets the finished value for this Result.
116 public boolean isFinished() {
122 * Sets the finished value for this Result.
126 public void setFinished(boolean finished) {
127 this.finished = finished;
132 * Gets the invalid value for this Result.
136 public boolean isInvalid() {
142 * Sets the invalid value for this Result.
146 public void setInvalid(boolean invalid) {
147 this.invalid = invalid;
152 * Gets the jobFailed value for this Result.
156 public boolean isJobFailed() {
162 * Sets the jobFailed value for this Result.
166 public void setJobFailed(boolean jobFailed) {
167 this.jobFailed = jobFailed;
172 * Gets the queued value for this Result.
176 public boolean isQueued() {
182 * Sets the queued value for this Result.
186 public void setQueued(boolean queued) {
187 this.queued = queued;
192 * Gets the running value for this Result.
196 public boolean isRunning() {
202 * Sets the running value for this Result.
206 public void setRunning(boolean running) {
207 this.running = running;
212 * Gets the serverError value for this Result.
214 * @return serverError
216 public boolean isServerError() {
222 * Sets the serverError value for this Result.
226 public void setServerError(boolean serverError) {
227 this.serverError = serverError;
232 * Gets the state value for this Result.
236 public int getState() {
242 * Sets the state value for this Result.
246 public void setState(int state) {
252 * Gets the status value for this Result.
256 public java.lang.String getStatus() {
262 * Sets the status value for this Result.
266 public void setStatus(java.lang.String status) {
267 this.status = status;
272 * Gets the suspended value for this Result.
276 public boolean isSuspended() {
282 * Sets the suspended value for this Result.
286 public void setSuspended(boolean suspended) {
287 this.suspended = suspended;
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);
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();
319 private boolean __hashCodeCalc = false;
320 public synchronized int hashCode() {
321 if (__hashCodeCalc) {
324 __hashCodeCalc = true;
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();
338 _hashCode += (isSuspended() ? Boolean.TRUE : Boolean.FALSE).hashCode();
339 __hashCodeCalc = false;
344 private static org.apache.axis.description.TypeDesc typeDesc =
345 new org.apache.axis.description.TypeDesc(Result.class, true);
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);
407 * Return type metadata object
409 public static org.apache.axis.description.TypeDesc getTypeDesc() {
414 * Get Custom Serializer
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) {
421 new org.apache.axis.encoding.ser.BeanSerializer(
422 _javaType, _xmlType, typeDesc);
426 * Get Custom Deserializer
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) {
433 new org.apache.axis.encoding.ser.BeanDeserializer(
434 _javaType, _xmlType, typeDesc);