2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
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.
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.
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 * The Jalview Authors are detailed in the 'AUTHORS' file.
19 package uk.ac.ebi.www;
21 public class Data implements java.io.Serializable
23 private java.lang.String type;
25 private java.lang.String content;
31 public java.lang.String getType()
36 public void setType(java.lang.String type)
41 public java.lang.String getContent()
46 public void setContent(java.lang.String content)
48 this.content = content;
51 private java.lang.Object __equalsCalc = null;
53 public synchronized boolean equals(java.lang.Object obj)
55 if (!(obj instanceof Data))
59 Data other = (Data) obj;
68 if (__equalsCalc != null)
70 return (__equalsCalc == obj);
75 && ((type == null && other.getType() == null) || (type != null && type
76 .equals(other.getType())))
77 && ((content == null && other.getContent() == null) || (content != null && content
78 .equals(other.getContent())));
83 private boolean __hashCodeCalc = false;
85 public synchronized int hashCode()
91 __hashCodeCalc = true;
93 if (getType() != null)
95 _hashCode += getType().hashCode();
97 if (getContent() != null)
99 _hashCode += getContent().hashCode();
101 __hashCodeCalc = false;
106 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
111 org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
112 field.setFieldName("type");
113 field.setXmlName(new javax.xml.namespace.QName("", "type"));
114 field.setXmlType(new javax.xml.namespace.QName(
115 "http://www.w3.org/2001/XMLSchema", "string"));
116 typeDesc.addFieldDesc(field);
117 field = new org.apache.axis.description.ElementDesc();
118 field.setFieldName("content");
119 field.setXmlName(new javax.xml.namespace.QName("", "content"));
120 field.setXmlType(new javax.xml.namespace.QName(
121 "http://www.w3.org/2001/XMLSchema", "string"));
122 typeDesc.addFieldDesc(field);
126 * Return type metadata object
128 public static org.apache.axis.description.TypeDesc getTypeDesc()
134 * Get Custom Serializer
136 public static org.apache.axis.encoding.Serializer getSerializer(
137 java.lang.String mechType, java.lang.Class _javaType,
138 javax.xml.namespace.QName _xmlType)
140 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
145 * Get Custom Deserializer
147 public static org.apache.axis.encoding.Deserializer getDeserializer(
148 java.lang.String mechType, java.lang.Class _javaType,
149 javax.xml.namespace.QName _xmlType)
151 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,