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