4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
9 * Jalview - A Sequence Alignment Editor and Viewer
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
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.
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.
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
28 public class Sequence implements java.io.Serializable {
\r
30 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(Sequence.class,
\r
34 typeDesc.setXmlType(new javax.xml.namespace.QName(
\r
35 "http://dataTypes.vamsas", "Sequence"));
\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
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
61 public Sequence(java.lang.String id, java.lang.String seq) {
\r
67 * Gets the id value for this Sequence.
71 public java.lang.String getId() {
\r
76 * Sets the id value for this Sequence.
80 public void setId(java.lang.String id) {
\r
85 * Gets the seq value for this Sequence.
89 public java.lang.String getSeq() {
\r
94 * Sets the seq value for this Sequence.
98 public void setSeq(java.lang.String seq) {
\r
102 public synchronized boolean equals(java.lang.Object obj) {
\r
103 if (!(obj instanceof Sequence)) {
\r
107 Sequence other = (Sequence) obj;
\r
117 if (__equalsCalc != null) {
\r
118 return (__equalsCalc == obj);
\r
121 __equalsCalc = obj;
\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
134 public synchronized int hashCode() {
\r
135 if (__hashCodeCalc) {
\r
139 __hashCodeCalc = true;
\r
143 if (getId() != null) {
\r
144 _hashCode += getId().hashCode();
\r
147 if (getSeq() != null) {
\r
148 _hashCode += getSeq().hashCode();
\r
151 __hashCodeCalc = false;
\r
157 * Return type metadata object
159 public static org.apache.axis.description.TypeDesc getTypeDesc() {
\r
164 * Get Custom Serializer
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
174 * Get Custom Deserializer
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