9bb671e761b83d236b02ecc9bcbca477c43d4714
[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
11     implements java.io.Serializable
12 {
13   private java.lang.String type;
14   private java.lang.String content;
15
16   public Data()
17   {
18   }
19
20   public java.lang.String getType()
21   {
22     return type;
23   }
24
25   public void setType(java.lang.String type)
26   {
27     this.type = type;
28   }
29
30   public java.lang.String getContent()
31   {
32     return content;
33   }
34
35   public void setContent(java.lang.String content)
36   {
37     this.content = content;
38   }
39
40   private java.lang.Object __equalsCalc = null;
41   public synchronized boolean equals(java.lang.Object obj)
42   {
43     if (! (obj instanceof Data))
44     {
45       return false;
46     }
47     Data other = (Data) obj;
48     if (obj == null)
49     {
50       return false;
51     }
52     if (this == obj)
53     {
54       return true;
55     }
56     if (__equalsCalc != null)
57     {
58       return (__equalsCalc == obj);
59     }
60     __equalsCalc = obj;
61     boolean _equals;
62     _equals = true &&
63         ( (type == null && other.getType() == null) ||
64          (type != null &&
65           type.equals(other.getType()))) &&
66         ( (content == null && other.getContent() == null) ||
67          (content != null &&
68           content.equals(other.getContent())));
69     __equalsCalc = null;
70     return _equals;
71   }
72
73   private boolean __hashCodeCalc = false;
74   public synchronized int hashCode()
75   {
76     if (__hashCodeCalc)
77     {
78       return 0;
79     }
80     __hashCodeCalc = true;
81     int _hashCode = 1;
82     if (getType() != null)
83     {
84       _hashCode += getType().hashCode();
85     }
86     if (getContent() != null)
87     {
88       _hashCode += getContent().hashCode();
89     }
90     __hashCodeCalc = false;
91     return _hashCode;
92   }
93
94   // Type metadata
95   private static org.apache.axis.description.TypeDesc typeDesc =
96       new org.apache.axis.description.TypeDesc(Data.class);
97
98   static
99   {
100     org.apache.axis.description.FieldDesc field = new org.apache.axis.
101         description.ElementDesc();
102     field.setFieldName("type");
103     field.setXmlName(new javax.xml.namespace.QName("", "type"));
104     field.setXmlType(new javax.xml.namespace.QName(
105         "http://www.w3.org/2001/XMLSchema", "string"));
106     typeDesc.addFieldDesc(field);
107     field = new org.apache.axis.description.ElementDesc();
108     field.setFieldName("content");
109     field.setXmlName(new javax.xml.namespace.QName("", "content"));
110     field.setXmlType(new javax.xml.namespace.QName(
111         "http://www.w3.org/2001/XMLSchema", "string"));
112     typeDesc.addFieldDesc(field);
113   };
114
115   /**
116    * Return type metadata object
117    */
118   public static org.apache.axis.description.TypeDesc getTypeDesc()
119   {
120     return typeDesc;
121   }
122
123   /**
124    * Get Custom Serializer
125    */
126   public static org.apache.axis.encoding.Serializer getSerializer(
127       java.lang.String mechType,
128       java.lang.Class _javaType,
129       javax.xml.namespace.QName _xmlType)
130   {
131     return
132         new org.apache.axis.encoding.ser.BeanSerializer(
133             _javaType, _xmlType, typeDesc);
134   }
135
136   /**
137    * Get Custom Deserializer
138    */
139   public static org.apache.axis.encoding.Deserializer getDeserializer(
140       java.lang.String mechType,
141       java.lang.Class _javaType,
142       javax.xml.namespace.QName _xmlType)
143   {
144     return
145         new org.apache.axis.encoding.ser.BeanDeserializer(
146             _javaType, _xmlType, typeDesc);
147   }
148
149 }