Formatting
[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) 2007 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\r
29     implements java.io.Serializable\r
30 {\r
31   private java.lang.String jobId;\r
32   private int status;\r
33   private java.lang.Object __equalsCalc = null;\r
34   private boolean __hashCodeCalc = false;\r
35 \r
36   public WsJobId()\r
37   {\r
38   }\r
39 \r
40   public WsJobId(java.lang.String jobId, int status)\r
41   {\r
42     this.jobId = jobId;\r
43     this.status = status;\r
44   }\r
45 \r
46   /**\r
47    * Gets the jobId value for this WsJobId.\r
48    *\r
49    * @return jobId\r
50    */\r
51   public java.lang.String getJobId()\r
52   {\r
53     return jobId;\r
54   }\r
55 \r
56   /**\r
57    * Sets the jobId value for this WsJobId.\r
58    *\r
59    * @param jobId\r
60    */\r
61   public void setJobId(java.lang.String jobId)\r
62   {\r
63     this.jobId = jobId;\r
64   }\r
65 \r
66   /**\r
67    * Gets the status value for this WsJobId.\r
68    *\r
69    * @return status\r
70    */\r
71   public int getStatus()\r
72   {\r
73     return status;\r
74   }\r
75 \r
76   /**\r
77    * Sets the status value for this WsJobId.\r
78    *\r
79    * @param status\r
80    */\r
81   public void setStatus(int status)\r
82   {\r
83     this.status = status;\r
84   }\r
85 \r
86   public synchronized boolean equals(java.lang.Object obj)\r
87   {\r
88     if (! (obj instanceof WsJobId))\r
89     {\r
90       return false;\r
91     }\r
92 \r
93     WsJobId other = (WsJobId) obj;\r
94 \r
95     if (obj == null)\r
96     {\r
97       return false;\r
98     }\r
99 \r
100     if (this == obj)\r
101     {\r
102       return true;\r
103     }\r
104 \r
105     if (__equalsCalc != null)\r
106     {\r
107       return (__equalsCalc == obj);\r
108     }\r
109 \r
110     __equalsCalc = obj;\r
111 \r
112     boolean _equals;\r
113     _equals = true &&\r
114         ( ( (this.jobId == null) && (other.getJobId() == null)) ||\r
115          ( (this.jobId != null) && this.jobId.equals(other.getJobId()))) &&\r
116         (this.status == other.getStatus());\r
117     __equalsCalc = null;\r
118 \r
119     return _equals;\r
120   }\r
121 \r
122   public synchronized int hashCode()\r
123   {\r
124     if (__hashCodeCalc)\r
125     {\r
126       return 0;\r
127     }\r
128 \r
129     __hashCodeCalc = true;\r
130 \r
131     int _hashCode = 1;\r
132 \r
133     if (getJobId() != null)\r
134     {\r
135       _hashCode += getJobId().hashCode();\r
136     }\r
137 \r
138     _hashCode += getStatus();\r
139     __hashCodeCalc = false;\r
140 \r
141     return _hashCode;\r
142   }\r
143 }\r