update author list in license for (JAL-826)
[jalview.git] / src / uk / ac / ebi / www / Data.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3  * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
4  * 
5  * This file is part of Jalview.
6  * 
7  * Jalview is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License 
9  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
10  * 
11  * Jalview is distributed in the hope that it will be useful, but 
12  * WITHOUT ANY WARRANTY; without even the implied warranty 
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14  * PURPOSE.  See the GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 package uk.ac.ebi.www;
19
20 public class Data implements java.io.Serializable
21 {
22   private java.lang.String type;
23
24   private java.lang.String content;
25
26   public Data()
27   {
28   }
29
30   public java.lang.String getType()
31   {
32     return type;
33   }
34
35   public void setType(java.lang.String type)
36   {
37     this.type = type;
38   }
39
40   public java.lang.String getContent()
41   {
42     return content;
43   }
44
45   public void setContent(java.lang.String content)
46   {
47     this.content = content;
48   }
49
50   private java.lang.Object __equalsCalc = null;
51
52   public synchronized boolean equals(java.lang.Object obj)
53   {
54     if (!(obj instanceof Data))
55     {
56       return false;
57     }
58     Data other = (Data) obj;
59     if (obj == null)
60     {
61       return false;
62     }
63     if (this == obj)
64     {
65       return true;
66     }
67     if (__equalsCalc != null)
68     {
69       return (__equalsCalc == obj);
70     }
71     __equalsCalc = obj;
72     boolean _equals;
73     _equals = true
74             && ((type == null && other.getType() == null) || (type != null && type
75                     .equals(other.getType())))
76             && ((content == null && other.getContent() == null) || (content != null && content
77                     .equals(other.getContent())));
78     __equalsCalc = null;
79     return _equals;
80   }
81
82   private boolean __hashCodeCalc = false;
83
84   public synchronized int hashCode()
85   {
86     if (__hashCodeCalc)
87     {
88       return 0;
89     }
90     __hashCodeCalc = true;
91     int _hashCode = 1;
92     if (getType() != null)
93     {
94       _hashCode += getType().hashCode();
95     }
96     if (getContent() != null)
97     {
98       _hashCode += getContent().hashCode();
99     }
100     __hashCodeCalc = false;
101     return _hashCode;
102   }
103
104   // Type metadata
105   private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
106           Data.class);
107
108   static
109   {
110     org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
111     field.setFieldName("type");
112     field.setXmlName(new javax.xml.namespace.QName("", "type"));
113     field.setXmlType(new javax.xml.namespace.QName(
114             "http://www.w3.org/2001/XMLSchema", "string"));
115     typeDesc.addFieldDesc(field);
116     field = new org.apache.axis.description.ElementDesc();
117     field.setFieldName("content");
118     field.setXmlName(new javax.xml.namespace.QName("", "content"));
119     field.setXmlType(new javax.xml.namespace.QName(
120             "http://www.w3.org/2001/XMLSchema", "string"));
121     typeDesc.addFieldDesc(field);
122   };
123
124   /**
125    * Return type metadata object
126    */
127   public static org.apache.axis.description.TypeDesc getTypeDesc()
128   {
129     return typeDesc;
130   }
131
132   /**
133    * Get Custom Serializer
134    */
135   public static org.apache.axis.encoding.Serializer getSerializer(
136           java.lang.String mechType, java.lang.Class _javaType,
137           javax.xml.namespace.QName _xmlType)
138   {
139     return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
140             _xmlType, typeDesc);
141   }
142
143   /**
144    * Get Custom Deserializer
145    */
146   public static org.apache.axis.encoding.Deserializer getDeserializer(
147           java.lang.String mechType, java.lang.Class _javaType,
148           javax.xml.namespace.QName _xmlType)
149   {
150     return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
151             _xmlType, typeDesc);
152   }
153
154 }