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