updated to jalview 2.1 and begun ArchiveClient/VamsasClient/VamsasStore updates.
[jalview.git] / src / vamsas / objects / simple / WsJobId.java
1 /**
2  * WsJobId.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) 2006 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 package vamsas.objects.simple;
27
28 public class WsJobId implements java.io.Serializable {
29     private java.lang.String jobId;
30     private int status;
31     private java.lang.Object __equalsCalc = null;
32     private boolean __hashCodeCalc = false;
33
34     public WsJobId() {
35     }
36
37     public WsJobId(java.lang.String jobId, int status) {
38         this.jobId = jobId;
39         this.status = status;
40     }
41
42     /**
43  * Gets the jobId value for this WsJobId.
44  *
45  * @return jobId
46  */
47     public java.lang.String getJobId() {
48         return jobId;
49     }
50
51     /**
52  * Sets the jobId value for this WsJobId.
53  *
54  * @param jobId
55  */
56     public void setJobId(java.lang.String jobId) {
57         this.jobId = jobId;
58     }
59
60     /**
61  * Gets the status value for this WsJobId.
62  *
63  * @return status
64  */
65     public int getStatus() {
66         return status;
67     }
68
69     /**
70  * Sets the status value for this WsJobId.
71  *
72  * @param status
73  */
74     public void setStatus(int status) {
75         this.status = status;
76     }
77
78     public synchronized boolean equals(java.lang.Object obj) {
79         if (!(obj instanceof WsJobId)) {
80             return false;
81         }
82
83         WsJobId other = (WsJobId) obj;
84
85         if (obj == null) {
86             return false;
87         }
88
89         if (this == obj) {
90             return true;
91         }
92
93         if (__equalsCalc != null) {
94             return (__equalsCalc == obj);
95         }
96
97         __equalsCalc = obj;
98
99         boolean _equals;
100         _equals = true &&
101             (((this.jobId == null) && (other.getJobId() == null)) ||
102             ((this.jobId != null) && this.jobId.equals(other.getJobId()))) &&
103             (this.status == other.getStatus());
104         __equalsCalc = null;
105
106         return _equals;
107     }
108
109     public synchronized int hashCode() {
110         if (__hashCodeCalc) {
111             return 0;
112         }
113
114         __hashCodeCalc = true;
115
116         int _hashCode = 1;
117
118         if (getJobId() != null) {
119             _hashCode += getJobId().hashCode();
120         }
121
122         _hashCode += getStatus();
123         __hashCodeCalc = false;
124
125         return _hashCode;
126     }
127 }