bc8ec84bd524f8c7c6487afd768167ebbbcc5b0a
[jalview.git] / src / uk / ac / ebi / www / Data.java
1 /**
2  * Data.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */
7
8 package uk.ac.ebi.www;
9
10 public class Data  implements java.io.Serializable {
11     private java.lang.String type;
12     private java.lang.String content;
13
14     public Data() {
15     }
16
17     public java.lang.String getType() {
18         return type;
19     }
20
21     public void setType(java.lang.String type) {
22         this.type = type;
23     }
24
25     public java.lang.String getContent() {
26         return content;
27     }
28
29     public void setContent(java.lang.String content) {
30         this.content = content;
31     }
32
33     private java.lang.Object __equalsCalc = null;
34     public synchronized boolean equals(java.lang.Object obj) {
35         if (!(obj instanceof Data)) return false;
36         Data other = (Data) 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             ((type==null && other.getType()==null) || 
46              (type!=null &&
47               type.equals(other.getType()))) &&
48             ((content==null && other.getContent()==null) || 
49              (content!=null &&
50               content.equals(other.getContent())));
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 (getType() != null) {
63             _hashCode += getType().hashCode();
64         }
65         if (getContent() != null) {
66             _hashCode += getContent().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(Data.class);
75
76     static {
77         org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
78         field.setFieldName("type");
79         field.setXmlName(new javax.xml.namespace.QName("", "type"));
80         field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
81         typeDesc.addFieldDesc(field);
82         field = new org.apache.axis.description.ElementDesc();
83         field.setFieldName("content");
84         field.setXmlName(new javax.xml.namespace.QName("", "content"));
85         field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
86         typeDesc.addFieldDesc(field);
87     };
88
89     /**
90      * Return type metadata object
91      */
92     public static org.apache.axis.description.TypeDesc getTypeDesc() {
93         return typeDesc;
94     }
95
96     /**
97      * Get Custom Serializer
98      */
99     public static org.apache.axis.encoding.Serializer getSerializer(
100            java.lang.String mechType, 
101            java.lang.Class _javaType,  
102            javax.xml.namespace.QName _xmlType) {
103         return 
104           new  org.apache.axis.encoding.ser.BeanSerializer(
105             _javaType, _xmlType, typeDesc);
106     }
107
108     /**
109      * Get Custom Deserializer
110      */
111     public static org.apache.axis.encoding.Deserializer getDeserializer(
112            java.lang.String mechType, 
113            java.lang.Class _javaType,  
114            javax.xml.namespace.QName _xmlType) {
115         return 
116           new  org.apache.axis.encoding.ser.BeanDeserializer(
117             _javaType, _xmlType, typeDesc);
118     }
119
120 }