rough JPredService client copied from WebServices project.
[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 WSDL2Java emitter.
6  */
7
8 package ext.vamsas;
9
10 public class Sequence  implements java.io.Serializable {
11     private java.lang.String id;
12     private java.lang.String seq;
13
14     public Sequence() {
15     }
16
17     public java.lang.String getId() {
18         return id;
19     }
20
21     public void setId(java.lang.String id) {
22         this.id = id;
23     }
24
25     public java.lang.String getSeq() {
26         return seq;
27     }
28
29     public void setSeq(java.lang.String seq) {
30         this.seq = seq;
31     }
32
33     private java.lang.Object __equalsCalc = null;
34     public synchronized boolean equals(java.lang.Object obj) {
35         if (!(obj instanceof Sequence)) return false;
36         Sequence other = (Sequence) obj;
37         if (obj == null) return false;
38         if (this == obj) return true;
39         if (__equalsCalc != null) {
40             return (__equalsCalc == obj);
41         }
42         __equalsCalc = obj;
43         boolean _equals;
44         _equals = true && 
45             ((this.id==null && other.getId()==null) || 
46              (this.id!=null &&
47               this.id.equals(other.getId()))) &&
48             ((this.seq==null && other.getSeq()==null) || 
49              (this.seq!=null &&
50               this.seq.equals(other.getSeq())));
51         __equalsCalc = null;
52         return _equals;
53     }
54
55     private boolean __hashCodeCalc = false;
56     public synchronized int hashCode() {
57         if (__hashCodeCalc) {
58             return 0;
59         }
60         __hashCodeCalc = true;
61         int _hashCode = 1;
62         if (getId() != null) {
63             _hashCode += getId().hashCode();
64         }
65         if (getSeq() != null) {
66             _hashCode += getSeq().hashCode();
67         }
68         __hashCodeCalc = false;
69         return _hashCode;
70     }
71
72     // Type metadata
73     private static org.apache.axis.description.TypeDesc typeDesc =
74         new org.apache.axis.description.TypeDesc(Sequence.class);
75
76     static {
77         typeDesc.setXmlType(new javax.xml.namespace.QName("http://dataTypes.vamsas", "Sequence"));
78         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
79         elemField.setFieldName("id");
80         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "id"));
81         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
82         typeDesc.addFieldDesc(elemField);
83         elemField = new org.apache.axis.description.ElementDesc();
84         elemField.setFieldName("seq");
85         elemField.setXmlName(new javax.xml.namespace.QName("http://dataTypes.vamsas", "seq"));
86         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
87         typeDesc.addFieldDesc(elemField);
88     }
89
90     /**
91      * Return type metadata object
92      */
93     public static org.apache.axis.description.TypeDesc getTypeDesc() {
94         return typeDesc;
95     }
96
97     /**
98      * Get Custom Serializer
99      */
100     public static org.apache.axis.encoding.Serializer getSerializer(
101            java.lang.String mechType, 
102            java.lang.Class _javaType,  
103            javax.xml.namespace.QName _xmlType) {
104         return 
105           new  org.apache.axis.encoding.ser.BeanSerializer(
106             _javaType, _xmlType, typeDesc);
107     }
108
109     /**
110      * Get Custom Deserializer
111      */
112     public static org.apache.axis.encoding.Deserializer getDeserializer(
113            java.lang.String mechType, 
114            java.lang.Class _javaType,  
115            javax.xml.namespace.QName _xmlType) {
116         return 
117           new  org.apache.axis.encoding.ser.BeanDeserializer(
118             _javaType, _xmlType, typeDesc);
119     }
120
121 }