c9fbf8510621aa02f70e384e823bc8069699971d
[jalview.git] / src / ext / vamsas / Msfalignment.java
1 /**
2  * Msfalignment.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  */\r
7 \r
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 */\r
26 package ext.vamsas;\r
27 \r
28 public class Msfalignment implements java.io.Serializable {\r
29     // Type metadata\r
30     private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(Msfalignment.class,\r
31             true);\r
32 \r
33     static {\r
34         typeDesc.setXmlType(new javax.xml.namespace.QName(\r
35                 "http://dataTypes.vamsas", "Msfalignment"));\r
36 \r
37         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();\r
38         elemField.setFieldName("msf");\r
39         elemField.setXmlName(new javax.xml.namespace.QName(\r
40                 "http://dataTypes.vamsas", "msf"));\r
41         elemField.setXmlType(new javax.xml.namespace.QName(\r
42                 "http://www.w3.org/2001/XMLSchema", "string"));\r
43         typeDesc.addFieldDesc(elemField);\r
44         elemField = new org.apache.axis.description.ElementDesc();\r
45         elemField.setFieldName("notes");\r
46         elemField.setXmlName(new javax.xml.namespace.QName(\r
47                 "http://dataTypes.vamsas", "notes"));\r
48         elemField.setXmlType(new javax.xml.namespace.QName(\r
49                 "http://www.w3.org/2001/XMLSchema", "string"));\r
50         typeDesc.addFieldDesc(elemField);\r
51     }\r
52 \r
53     private java.lang.String msf;\r
54     private java.lang.String notes;\r
55     private java.lang.Object __equalsCalc = null;\r
56     private boolean __hashCodeCalc = false;\r
57 \r
58     public Msfalignment() {\r
59     }\r
60 \r
61     public Msfalignment(java.lang.String msf, java.lang.String notes) {\r
62         this.msf = msf;\r
63         this.notes = notes;\r
64     }\r
65 \r
66     /**
67  * Gets the msf value for this Msfalignment.
68  *
69  * @return msf
70  */\r
71     public java.lang.String getMsf() {\r
72         return msf;\r
73     }\r
74 \r
75     /**
76  * Sets the msf value for this Msfalignment.
77  *
78  * @param msf
79  */\r
80     public void setMsf(java.lang.String msf) {\r
81         this.msf = msf;\r
82     }\r
83 \r
84     /**
85  * Gets the notes value for this Msfalignment.
86  *
87  * @return notes
88  */\r
89     public java.lang.String getNotes() {\r
90         return notes;\r
91     }\r
92 \r
93     /**
94  * Sets the notes value for this Msfalignment.
95  *
96  * @param notes
97  */\r
98     public void setNotes(java.lang.String notes) {\r
99         this.notes = notes;\r
100     }\r
101 \r
102     public synchronized boolean equals(java.lang.Object obj) {\r
103         if (!(obj instanceof Msfalignment)) {\r
104             return false;\r
105         }\r
106 \r
107         Msfalignment other = (Msfalignment) obj;\r
108 \r
109         if (obj == null) {\r
110             return false;\r
111         }\r
112 \r
113         if (this == obj) {\r
114             return true;\r
115         }\r
116 \r
117         if (__equalsCalc != null) {\r
118             return (__equalsCalc == obj);\r
119         }\r
120 \r
121         __equalsCalc = obj;\r
122 \r
123         boolean _equals;\r
124         _equals = true &&\r
125             (((this.msf == null) && (other.getMsf() == null)) ||\r
126             ((this.msf != null) && this.msf.equals(other.getMsf()))) &&\r
127             (((this.notes == null) && (other.getNotes() == null)) ||\r
128             ((this.notes != null) && this.notes.equals(other.getNotes())));\r
129         __equalsCalc = null;\r
130 \r
131         return _equals;\r
132     }\r
133 \r
134     public synchronized int hashCode() {\r
135         if (__hashCodeCalc) {\r
136             return 0;\r
137         }\r
138 \r
139         __hashCodeCalc = true;\r
140 \r
141         int _hashCode = 1;\r
142 \r
143         if (getMsf() != null) {\r
144             _hashCode += getMsf().hashCode();\r
145         }\r
146 \r
147         if (getNotes() != null) {\r
148             _hashCode += getNotes().hashCode();\r
149         }\r
150 \r
151         __hashCodeCalc = false;\r
152 \r
153         return _hashCode;\r
154     }\r
155 \r
156     /**
157  * Return type metadata object
158  */\r
159     public static org.apache.axis.description.TypeDesc getTypeDesc() {\r
160         return typeDesc;\r
161     }\r
162 \r
163     /**
164  * Get Custom Serializer
165  */\r
166     public static org.apache.axis.encoding.Serializer getSerializer(\r
167         java.lang.String mechType, java.lang.Class _javaType,\r
168         javax.xml.namespace.QName _xmlType) {\r
169         return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,\r
170             _xmlType, typeDesc);\r
171     }\r
172 \r
173     /**
174  * Get Custom Deserializer
175  */\r
176     public static org.apache.axis.encoding.Deserializer getDeserializer(\r
177         java.lang.String mechType, java.lang.Class _javaType,\r
178         javax.xml.namespace.QName _xmlType) {\r
179         return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,\r
180             _xmlType, typeDesc);\r
181     }\r
182 }\r