2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
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
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package uk.ac.ebi.www;
23 public class WSFile implements java.io.Serializable
25 private java.lang.String type;
27 private java.lang.String ext;
33 public java.lang.String getType()
38 public void setType(java.lang.String type)
43 public java.lang.String getExt()
48 public void setExt(java.lang.String ext)
53 private java.lang.Object __equalsCalc = null;
55 public synchronized boolean equals(java.lang.Object obj)
57 if (!(obj instanceof WSFile))
61 WSFile other = (WSFile) obj;
70 if (__equalsCalc != null)
72 return (__equalsCalc == obj);
77 && ((type == null && other.getType() == null) || (type != null && type
78 .equals(other.getType())))
79 && ((ext == null && other.getExt() == null) || (ext != null && ext
80 .equals(other.getExt())));
85 private boolean __hashCodeCalc = false;
87 public synchronized int hashCode()
93 __hashCodeCalc = true;
95 if (getType() != null)
97 _hashCode += getType().hashCode();
101 _hashCode += getExt().hashCode();
103 __hashCodeCalc = false;
108 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
113 org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
114 field.setFieldName("type");
115 field.setXmlName(new javax.xml.namespace.QName("", "type"));
116 field.setXmlType(new javax.xml.namespace.QName(
117 "http://www.w3.org/2001/XMLSchema", "string"));
118 typeDesc.addFieldDesc(field);
119 field = new org.apache.axis.description.ElementDesc();
120 field.setFieldName("ext");
121 field.setXmlName(new javax.xml.namespace.QName("", "ext"));
122 field.setXmlType(new javax.xml.namespace.QName(
123 "http://www.w3.org/2001/XMLSchema", "string"));
124 typeDesc.addFieldDesc(field);
128 * Return type metadata object
130 public static org.apache.axis.description.TypeDesc getTypeDesc()
136 * Get Custom Serializer
138 public static org.apache.axis.encoding.Serializer getSerializer(
139 java.lang.String mechType, java.lang.Class _javaType,
140 javax.xml.namespace.QName _xmlType)
142 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
147 * Get Custom Deserializer
149 public static org.apache.axis.encoding.Deserializer getDeserializer(
150 java.lang.String mechType, java.lang.Class _javaType,
151 javax.xml.namespace.QName _xmlType)
153 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,