regenerated from wsdl.
[jalview.git] / src / ext / vamsas / Sequence.java
1 /**
2  * Sequence.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 Sequence implements java.io.Serializable {\r
29     // Type metadata\r
30     private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(Sequence.class,\r
31             true);\r
32 \r
33     static {\r
34         typeDesc.setXmlType(new javax.xml.namespace.QName(\r
35                 "http://dataTypes.vamsas", "Sequence"));\r
36 \r
37         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();\r
38         elemField.setFieldName("id");\r
39         elemField.setXmlName(new javax.xml.namespace.QName(\r
40                 "http://dataTypes.vamsas", "id"));\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("seq");\r
46         elemField.setXmlName(new javax.xml.namespace.QName(\r
47                 "http://dataTypes.vamsas", "seq"));\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 id;\r
54     private java.lang.String seq;\r
55     private java.lang.Object __equalsCalc = null;\r
56     private boolean __hashCodeCalc = false;\r
57 \r
58     public Sequence() {\r
59     }\r
60 \r
61     public Sequence(java.lang.String id, java.lang.String seq) {\r
62         this.id = id;\r
63         this.seq = seq;\r
64     }\r
65 \r
66     /**
67  * Gets the id value for this Sequence.
68  *
69  * @return id
70  */\r
71     public java.lang.String getId() {\r
72         return id;\r
73     }\r
74 \r
75     /**
76  * Sets the id value for this Sequence.
77  *
78  * @param id
79  */\r
80     public void setId(java.lang.String id) {\r
81         this.id = id;\r
82     }\r
83 \r
84     /**
85  * Gets the seq value for this Sequence.
86  *
87  * @return seq
88  */\r
89     public java.lang.String getSeq() {\r
90         return seq;\r
91     }\r
92 \r
93     /**
94  * Sets the seq value for this Sequence.
95  *
96  * @param seq
97  */\r
98     public void setSeq(java.lang.String seq) {\r
99         this.seq = seq;\r
100     }\r
101 \r
102     public synchronized boolean equals(java.lang.Object obj) {\r
103         if (!(obj instanceof Sequence)) {\r
104             return false;\r
105         }\r
106 \r
107         Sequence other = (Sequence) 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.id == null) && (other.getId() == null)) ||\r
126             ((this.id != null) && this.id.equals(other.getId()))) &&\r
127             (((this.seq == null) && (other.getSeq() == null)) ||\r
128             ((this.seq != null) && this.seq.equals(other.getSeq())));\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 (getId() != null) {\r
144             _hashCode += getId().hashCode();\r
145         }\r
146 \r
147         if (getSeq() != null) {\r
148             _hashCode += getSeq().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