GPL license added
[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  */
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 Sequence  implements java.io.Serializable {
30     private java.lang.String id;
31     private java.lang.String seq;
32
33     public Sequence() {
34     }
35
36     public Sequence(
37            java.lang.String id,
38            java.lang.String seq) {
39            this.id = id;
40            this.seq = seq;
41     }
42
43
44     /**
45      * Gets the id value for this Sequence.
46      *
47      * @return id
48      */
49     public java.lang.String getId() {
50         return id;
51     }
52
53
54     /**
55      * Sets the id value for this Sequence.
56      *
57      * @param id
58      */
59     public void setId(java.lang.String id) {
60         this.id = id;
61     }
62
63
64     /**
65      * Gets the seq value for this Sequence.
66      *
67      * @return seq
68      */
69     public java.lang.String getSeq() {
70         return seq;
71     }
72
73
74     /**
75      * Sets the seq value for this Sequence.
76      *
77      * @param seq
78      */
79     public void setSeq(java.lang.String seq) {
80         this.seq = seq;
81     }
82
83     private java.lang.Object __equalsCalc = null;
84     public synchronized boolean equals(java.lang.Object obj) {
85         if (!(obj instanceof Sequence)) return false;
86         Sequence other = (Sequence) 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.id==null && other.getId()==null) ||
96              (this.id!=null &&
97               this.id.equals(other.getId()))) &&
98             ((this.seq==null && other.getSeq()==null) ||
99              (this.seq!=null &&
100               this.seq.equals(other.getSeq())));
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 (getId() != null) {
113             _hashCode += getId().hashCode();
114         }
115         if (getSeq() != null) {
116             _hashCode += getSeq().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(Sequence.class, true);
125
126     static {
127         typeDesc.setXmlType(new javax.xml.namespace.QName("http://dataTypes.vamsas", "Sequence"));
128         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
129         elemField.setFieldName("id");
130         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "id"));
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("seq");
135         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "seq"));
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 }