1 7 8 package com.capeclear.www.GlobalWeather_xsd; 9 10 import java.io.Serializable ; 11 import javax.xml.namespace.QName ; 12 13 public class Station implements Serializable { 14 private String icao; 15 private String wmo; 16 private String iata; 17 private double elevation; 18 private double latitude; 19 private double longitude; 20 private String name; 21 private String region; 22 private String country; 23 private String string; 24 25 public Station() { 26 } 27 28 public String getIcao() { 29 return icao; 30 } 31 32 public void setIcao(String icao) { 33 this.icao = icao; 34 } 35 36 public String getWmo() { 37 return wmo; 38 } 39 40 public void setWmo(String wmo) { 41 this.wmo = wmo; 42 } 43 44 public String getIata() { 45 return iata; 46 } 47 48 public void setIata(String iata) { 49 this.iata = iata; 50 } 51 52 public double getElevation() { 53 return elevation; 54 } 55 56 public void setElevation(double elevation) { 57 this.elevation = elevation; 58 } 59 60 public double getLatitude() { 61 return latitude; 62 } 63 64 public void setLatitude(double latitude) { 65 this.latitude = latitude; 66 } 67 68 public double getLongitude() { 69 return longitude; 70 } 71 72 public void setLongitude(double longitude) { 73 this.longitude = longitude; 74 } 75 76 public String getName() { 77 return name; 78 } 79 80 public void setName(String name) { 81 this.name = name; 82 } 83 84 public String getRegion() { 85 return region; 86 } 87 88 public void setRegion(String region) { 89 this.region = region; 90 } 91 92 public String getCountry() { 93 return country; 94 } 95 96 public void setCountry(String country) { 97 this.country = country; 98 } 99 100 public String getString() { 101 return string; 102 } 103 104 public void setString(String string) { 105 this.string = string; 106 } 107 108 private Object __equalsCalc = null; 109 public synchronized boolean equals(Object obj) { 110 if (!(obj instanceof Station)) return false; 111 Station other = (Station) obj; 112 if (obj == null) return false; 113 if (this == obj) return true; 114 if (__equalsCalc != null) { 115 return (__equalsCalc == obj); 116 } 117 __equalsCalc = obj; 118 boolean _equals; 119 _equals = true && 120 ((this.icao==null && other.getIcao()==null) || 121 (this.icao!=null && 122 this.icao.equals(other.getIcao()))) && 123 ((this.wmo==null && other.getWmo()==null) || 124 (this.wmo!=null && 125 this.wmo.equals(other.getWmo()))) && 126 ((this.iata==null && other.getIata()==null) || 127 (this.iata!=null && 128 this.iata.equals(other.getIata()))) && 129 this.elevation == other.getElevation() && 130 this.latitude == other.getLatitude() && 131 this.longitude == other.getLongitude() && 132 ((this.name==null && other.getName()==null) || 133 (this.name!=null && 134 this.name.equals(other.getName()))) && 135 ((this.region==null && other.getRegion()==null) || 136 (this.region!=null && 137 this.region.equals(other.getRegion()))) && 138 ((this.country==null && other.getCountry()==null) || 139 (this.country!=null && 140 this.country.equals(other.getCountry()))) && 141 ((this.string==null && other.getString()==null) || 142 (this.string!=null && 143 this.string.equals(other.getString()))); 144 __equalsCalc = null; 145 return _equals; 146 } 147 148 private boolean __hashCodeCalc = false; 149 public synchronized int hashCode() { 150 if (__hashCodeCalc) { 151 return 0; 152 } 153 __hashCodeCalc = true; 154 int _hashCode = 1; 155 if (getIcao() != null) { 156 _hashCode += getIcao().hashCode(); 157 } 158 if (getWmo() != null) { 159 _hashCode += getWmo().hashCode(); 160 } 161 if (getIata() != null) { 162 _hashCode += getIata().hashCode(); 163 } 164 _hashCode += new Double (getElevation()).hashCode(); 165 _hashCode += new Double (getLatitude()).hashCode(); 166 _hashCode += new Double (getLongitude()).hashCode(); 167 if (getName() != null) { 168 _hashCode += getName().hashCode(); 169 } 170 if (getRegion() != null) { 171 _hashCode += getRegion().hashCode(); 172 } 173 if (getCountry() != null) { 174 _hashCode += getCountry().hashCode(); 175 } 176 if (getString() != null) { 177 _hashCode += getString().hashCode(); 178 } 179 __hashCodeCalc = false; 180 return _hashCode; 181 } 182 183 private static org.apache.axis.description.TypeDesc typeDesc = 185 new org.apache.axis.description.TypeDesc(Station.class); 186 187 static { 188 typeDesc.setXmlType(new QName ("http://www.capeclear.com/GlobalWeather.xsd", "Station")); 189 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 190 elemField.setFieldName("icao"); 191 elemField.setXmlName(new QName ("", "icao")); 192 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "string")); 193 typeDesc.addFieldDesc(elemField); 194 elemField = new org.apache.axis.description.ElementDesc(); 195 elemField.setFieldName("wmo"); 196 elemField.setXmlName(new QName ("", "wmo")); 197 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "string")); 198 typeDesc.addFieldDesc(elemField); 199 elemField = new org.apache.axis.description.ElementDesc(); 200 elemField.setFieldName("iata"); 201 elemField.setXmlName(new QName ("", "iata")); 202 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "string")); 203 typeDesc.addFieldDesc(elemField); 204 elemField = new org.apache.axis.description.ElementDesc(); 205 elemField.setFieldName("elevation"); 206 elemField.setXmlName(new QName ("", "elevation")); 207 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "double")); 208 typeDesc.addFieldDesc(elemField); 209 elemField = new org.apache.axis.description.ElementDesc(); 210 elemField.setFieldName("latitude"); 211 elemField.setXmlName(new QName ("", "latitude")); 212 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "double")); 213 typeDesc.addFieldDesc(elemField); 214 elemField = new org.apache.axis.description.ElementDesc(); 215 elemField.setFieldName("longitude"); 216 elemField.setXmlName(new QName ("", "longitude")); 217 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "double")); 218 typeDesc.addFieldDesc(elemField); 219 elemField = new org.apache.axis.description.ElementDesc(); 220 elemField.setFieldName("name"); 221 elemField.setXmlName(new QName ("", "name")); 222 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "string")); 223 typeDesc.addFieldDesc(elemField); 224 elemField = new org.apache.axis.description.ElementDesc(); 225 elemField.setFieldName("region"); 226 elemField.setXmlName(new QName ("", "region")); 227 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "string")); 228 typeDesc.addFieldDesc(elemField); 229 elemField = new org.apache.axis.description.ElementDesc(); 230 elemField.setFieldName("country"); 231 elemField.setXmlName(new QName ("", "country")); 232 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "string")); 233 typeDesc.addFieldDesc(elemField); 234 elemField = new org.apache.axis.description.ElementDesc(); 235 elemField.setFieldName("string"); 236 elemField.setXmlName(new QName ("", "string")); 237 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "string")); 238 typeDesc.addFieldDesc(elemField); 239 } 240 241 244 public static org.apache.axis.description.TypeDesc getTypeDesc() { 245 return typeDesc; 246 } 247 248 251 public static org.apache.axis.encoding.Serializer getSerializer( 252 String mechType, 253 Class _javaType, 254 QName _xmlType) { 255 return 256 new org.apache.axis.encoding.ser.BeanSerializer( 257 _javaType, _xmlType, typeDesc); 258 } 259 260 263 public static org.apache.axis.encoding.Deserializer getDeserializer( 264 String mechType, 265 Class _javaType, 266 QName _xmlType) { 267 return 268 new org.apache.axis.encoding.ser.BeanDeserializer( 269 _javaType, _xmlType, typeDesc); 270 } 271 272 } 273 | Popular Tags |