updated to jalview 2.1 and begun ArchiveClient/VamsasClient/VamsasStore updates.
[jalview.git] / src / vamsas / objects / simple / MsaResult.java
1 /**
2  * MsaResult.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 MsaResult extends vamsas.objects.simple.Result
29     implements java.io.Serializable {
30     private vamsas.objects.simple.Alignment msa;
31     private java.lang.Object __equalsCalc = null;
32     private boolean __hashCodeCalc = false;
33
34     public MsaResult() {
35     }
36
37     public MsaResult(vamsas.objects.simple.Alignment msa) {
38         this.msa = msa;
39     }
40
41     /**
42  * Gets the msa value for this MsaResult.
43  *
44  * @return msa
45  */
46     public vamsas.objects.simple.Alignment getMsa() {
47         return msa;
48     }
49
50     /**
51  * Sets the msa value for this MsaResult.
52  *
53  * @param msa
54  */
55     public void setMsa(vamsas.objects.simple.Alignment msa) {
56         this.msa = msa;
57     }
58
59     public synchronized boolean equals(java.lang.Object obj) {
60         if (!(obj instanceof MsaResult)) {
61             return false;
62         }
63
64         MsaResult other = (MsaResult) obj;
65
66         if (obj == null) {
67             return false;
68         }
69
70         if (this == obj) {
71             return true;
72         }
73
74         if (__equalsCalc != null) {
75             return (__equalsCalc == obj);
76         }
77
78         __equalsCalc = obj;
79
80         boolean _equals;
81         _equals = super.equals(obj) &&
82             (((this.msa == null) && (other.getMsa() == null)) ||
83             ((this.msa != null) && this.msa.equals(other.getMsa())));
84         __equalsCalc = null;
85
86         return _equals;
87     }
88
89     public synchronized int hashCode() {
90         if (__hashCodeCalc) {
91             return 0;
92         }
93
94         __hashCodeCalc = true;
95
96         int _hashCode = super.hashCode();
97
98         if (getMsa() != null) {
99             _hashCode += getMsa().hashCode();
100         }
101
102         __hashCodeCalc = false;
103
104         return _hashCode;
105     }
106 }