JAL-1620 version bump and release notes
[jalview.git] / src / uk / ac / ebi / www / WSFile.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1)
3  * Copyright (C) 2014 The Jalview Authors
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
10  * of the License, or (at your option) any later version.
11  *  
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.
16  * 
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.
20  */
21 package uk.ac.ebi.www;
22
23 public class WSFile implements java.io.Serializable
24 {
25   private java.lang.String type;
26
27   private java.lang.String ext;
28
29   public WSFile()
30   {
31   }
32
33   public java.lang.String getType()
34   {
35     return type;
36   }
37
38   public void setType(java.lang.String type)
39   {
40     this.type = type;
41   }
42
43   public java.lang.String getExt()
44   {
45     return ext;
46   }
47
48   public void setExt(java.lang.String ext)
49   {
50     this.ext = ext;
51   }
52
53   private java.lang.Object __equalsCalc = null;
54
55   public synchronized boolean equals(java.lang.Object obj)
56   {
57     if (!(obj instanceof WSFile))
58     {
59       return false;
60     }
61     WSFile other = (WSFile) obj;
62     if (obj == null)
63     {
64       return false;
65     }
66     if (this == obj)
67     {
68       return true;
69     }
70     if (__equalsCalc != null)
71     {
72       return (__equalsCalc == obj);
73     }
74     __equalsCalc = obj;
75     boolean _equals;
76     _equals = true
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())));
81     __equalsCalc = null;
82     return _equals;
83   }
84
85   private boolean __hashCodeCalc = false;
86
87   public synchronized int hashCode()
88   {
89     if (__hashCodeCalc)
90     {
91       return 0;
92     }
93     __hashCodeCalc = true;
94     int _hashCode = 1;
95     if (getType() != null)
96     {
97       _hashCode += getType().hashCode();
98     }
99     if (getExt() != null)
100     {
101       _hashCode += getExt().hashCode();
102     }
103     __hashCodeCalc = false;
104     return _hashCode;
105   }
106
107   // Type metadata
108   private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
109           WSFile.class);
110
111   static
112   {
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);
125   };
126
127   /**
128    * Return type metadata object
129    */
130   public static org.apache.axis.description.TypeDesc getTypeDesc()
131   {
132     return typeDesc;
133   }
134
135   /**
136    * Get Custom Serializer
137    */
138   public static org.apache.axis.encoding.Serializer getSerializer(
139           java.lang.String mechType, java.lang.Class _javaType,
140           javax.xml.namespace.QName _xmlType)
141   {
142     return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
143             _xmlType, typeDesc);
144   }
145
146   /**
147    * Get Custom Deserializer
148    */
149   public static org.apache.axis.encoding.Deserializer getDeserializer(
150           java.lang.String mechType, java.lang.Class _javaType,
151           javax.xml.namespace.QName _xmlType)
152   {
153     return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
154             _xmlType, typeDesc);
155   }
156
157 }