0dd62b1236a6887cc67c0f773d8ef844e89e3f2d
[jalview.git] / src / uk / ac / ebi / www / WSFile.java
1 /**
2  * WSFile.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 WSFile implements java.io.Serializable
11 {
12   private java.lang.String type;
13
14   private java.lang.String ext;
15
16   public WSFile()
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 getExt()
31   {
32     return ext;
33   }
34
35   public void setExt(java.lang.String ext)
36   {
37     this.ext = ext;
38   }
39
40   private java.lang.Object __equalsCalc = null;
41
42   public synchronized boolean equals(java.lang.Object obj)
43   {
44     if (!(obj instanceof WSFile))
45     {
46       return false;
47     }
48     WSFile other = (WSFile) obj;
49     if (obj == null)
50     {
51       return false;
52     }
53     if (this == obj)
54     {
55       return true;
56     }
57     if (__equalsCalc != null)
58     {
59       return (__equalsCalc == obj);
60     }
61     __equalsCalc = obj;
62     boolean _equals;
63     _equals = true
64             && ((type == null && other.getType() == null) || (type != null && type
65                     .equals(other.getType())))
66             && ((ext == null && other.getExt() == null) || (ext != null && ext
67                     .equals(other.getExt())));
68     __equalsCalc = null;
69     return _equals;
70   }
71
72   private boolean __hashCodeCalc = false;
73
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 (getExt() != null)
87     {
88       _hashCode += getExt().hashCode();
89     }
90     __hashCodeCalc = false;
91     return _hashCode;
92   }
93
94   // Type metadata
95   private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
96           WSFile.class);
97
98   static
99   {
100     org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
101     field.setFieldName("type");
102     field.setXmlName(new javax.xml.namespace.QName("", "type"));
103     field.setXmlType(new javax.xml.namespace.QName(
104             "http://www.w3.org/2001/XMLSchema", "string"));
105     typeDesc.addFieldDesc(field);
106     field = new org.apache.axis.description.ElementDesc();
107     field.setFieldName("ext");
108     field.setXmlName(new javax.xml.namespace.QName("", "ext"));
109     field.setXmlType(new javax.xml.namespace.QName(
110             "http://www.w3.org/2001/XMLSchema", "string"));
111     typeDesc.addFieldDesc(field);
112   };
113
114   /**
115    * Return type metadata object
116    */
117   public static org.apache.axis.description.TypeDesc getTypeDesc()
118   {
119     return typeDesc;
120   }
121
122   /**
123    * Get Custom Serializer
124    */
125   public static org.apache.axis.encoding.Serializer getSerializer(
126           java.lang.String mechType, java.lang.Class _javaType,
127           javax.xml.namespace.QName _xmlType)
128   {
129     return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
130             _xmlType, typeDesc);
131   }
132
133   /**
134    * Get Custom Deserializer
135    */
136   public static org.apache.axis.encoding.Deserializer getDeserializer(
137           java.lang.String mechType, java.lang.Class _javaType,
138           javax.xml.namespace.QName _xmlType)
139   {
140     return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
141             _xmlType, typeDesc);
142   }
143
144 }