e3e35a56534450e0f35a9f646c5c399568744d86
[jalview.git] / src / vamsas / objects / simple / WsJobId.java
1 /**\r
2  * WsJobId.java\r
3  *\r
4  * This file was auto-generated from WSDL\r
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
6  */\r
7 \r
8 /*\r
9 * Jalview - A Sequence Alignment Editor and Viewer\r
10 * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
11 *\r
12 * This program is free software; you can redistribute it and/or\r
13 * modify it under the terms of the GNU General Public License\r
14 * as published by the Free Software Foundation; either version 2\r
15 * of the License, or (at your option) any later version.\r
16 *\r
17 * This program is distributed in the hope that it will be useful,\r
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
20 * GNU General Public License for more details.\r
21 *\r
22 * You should have received a copy of the GNU General Public License\r
23 * along with this program; if not, write to the Free Software\r
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
25 */\r
26 package vamsas.objects.simple;\r
27 \r
28 public class WsJobId implements java.io.Serializable {\r
29     private java.lang.String jobId;\r
30     private int status;\r
31     private java.lang.Object __equalsCalc = null;\r
32     private boolean __hashCodeCalc = false;\r
33 \r
34     public WsJobId() {\r
35     }\r
36 \r
37     public WsJobId(java.lang.String jobId, int status) {\r
38         this.jobId = jobId;\r
39         this.status = status;\r
40     }\r
41 \r
42     /**\r
43  * Gets the jobId value for this WsJobId.\r
44  *\r
45  * @return jobId\r
46  */\r
47     public java.lang.String getJobId() {\r
48         return jobId;\r
49     }\r
50 \r
51     /**\r
52  * Sets the jobId value for this WsJobId.\r
53  *\r
54  * @param jobId\r
55  */\r
56     public void setJobId(java.lang.String jobId) {\r
57         this.jobId = jobId;\r
58     }\r
59 \r
60     /**\r
61  * Gets the status value for this WsJobId.\r
62  *\r
63  * @return status\r
64  */\r
65     public int getStatus() {\r
66         return status;\r
67     }\r
68 \r
69     /**\r
70  * Sets the status value for this WsJobId.\r
71  *\r
72  * @param status\r
73  */\r
74     public void setStatus(int status) {\r
75         this.status = status;\r
76     }\r
77 \r
78     public synchronized boolean equals(java.lang.Object obj) {\r
79         if (!(obj instanceof WsJobId)) {\r
80             return false;\r
81         }\r
82 \r
83         WsJobId other = (WsJobId) obj;\r
84 \r
85         if (obj == null) {\r
86             return false;\r
87         }\r
88 \r
89         if (this == obj) {\r
90             return true;\r
91         }\r
92 \r
93         if (__equalsCalc != null) {\r
94             return (__equalsCalc == obj);\r
95         }\r
96 \r
97         __equalsCalc = obj;\r
98 \r
99         boolean _equals;\r
100         _equals = true &&\r
101             (((this.jobId == null) && (other.getJobId() == null)) ||\r
102             ((this.jobId != null) && this.jobId.equals(other.getJobId()))) &&\r
103             (this.status == other.getStatus());\r
104         __equalsCalc = null;\r
105 \r
106         return _equals;\r
107     }\r
108 \r
109     public synchronized int hashCode() {\r
110         if (__hashCodeCalc) {\r
111             return 0;\r
112         }\r
113 \r
114         __hashCodeCalc = true;\r
115 \r
116         int _hashCode = 1;\r
117 \r
118         if (getJobId() != null) {\r
119             _hashCode += getJobId().hashCode();\r
120         }\r
121 \r
122         _hashCode += getStatus();\r
123         __hashCodeCalc = false;\r
124 \r
125         return _hashCode;\r
126     }\r
127 }\r