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 Layer implements Serializable { 14 private double altitude; 15 private int extent; 16 private PhenomenonType type; 17 private String string; 18 19 public Layer() { 20 } 21 22 public double getAltitude() { 23 return altitude; 24 } 25 26 public void setAltitude(double altitude) { 27 this.altitude = altitude; 28 } 29 30 public int getExtent() { 31 return extent; 32 } 33 34 public void setExtent(int extent) { 35 this.extent = extent; 36 } 37 38 public PhenomenonType getType() { 39 return type; 40 } 41 42 public void setType(PhenomenonType type) { 43 this.type = type; 44 } 45 46 public String getString() { 47 return string; 48 } 49 50 public void setString(String string) { 51 this.string = string; 52 } 53 54 private java.lang.Object __equalsCalc = null; 55 public synchronized boolean equals(java.lang.Object obj) { 56 if (!(obj instanceof Layer)) return false; 57 Layer other = (Layer) obj; 58 if (obj == null) return false; 59 if (this == obj) return true; 60 if (__equalsCalc != null) { 61 return (__equalsCalc == obj); 62 } 63 __equalsCalc = obj; 64 boolean _equals; 65 _equals = true && 66 this.altitude == other.getAltitude() && 67 this.extent == other.getExtent() && 68 ((this.type==null && other.getType()==null) || 69 (this.type!=null && 70 this.type.equals(other.getType()))) && 71 ((this.string==null && other.getString()==null) || 72 (this.string!=null && 73 this.string.equals(other.getString()))); 74 __equalsCalc = null; 75 return _equals; 76 } 77 78 private boolean __hashCodeCalc = false; 79 public synchronized int hashCode() { 80 if (__hashCodeCalc) { 81 return 0; 82 } 83 __hashCodeCalc = true; 84 int _hashCode = 1; 85 _hashCode += new Double (getAltitude()).hashCode(); 86 _hashCode += getExtent(); 87 if (getType() != null) { 88 _hashCode += getType().hashCode(); 89 } 90 if (getString() != null) { 91 _hashCode += getString().hashCode(); 92 } 93 __hashCodeCalc = false; 94 return _hashCode; 95 } 96 97 private static org.apache.axis.description.TypeDesc typeDesc = 99 new org.apache.axis.description.TypeDesc(Layer.class); 100 101 static { 102 typeDesc.setXmlType(new QName ("http://www.capeclear.com/GlobalWeather.xsd", "Layer")); 103 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 104 elemField.setFieldName("altitude"); 105 elemField.setXmlName(new QName ("", "altitude")); 106 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "double")); 107 typeDesc.addFieldDesc(elemField); 108 elemField = new org.apache.axis.description.ElementDesc(); 109 elemField.setFieldName("extent"); 110 elemField.setXmlName(new QName ("", "extent")); 111 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "int")); 112 typeDesc.addFieldDesc(elemField); 113 elemField = new org.apache.axis.description.ElementDesc(); 114 elemField.setFieldName("type"); 115 elemField.setXmlName(new QName ("", "type")); 116 elemField.setXmlType(new QName ("http://www.capeclear.com/GlobalWeather.xsd", "PhenomenonType")); 117 typeDesc.addFieldDesc(elemField); 118 elemField = new org.apache.axis.description.ElementDesc(); 119 elemField.setFieldName("string"); 120 elemField.setXmlName(new QName ("", "string")); 121 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "string")); 122 typeDesc.addFieldDesc(elemField); 123 } 124 125 128 public static org.apache.axis.description.TypeDesc getTypeDesc() { 129 return typeDesc; 130 } 131 132 135 public static org.apache.axis.encoding.Serializer getSerializer( 136 String mechType, 137 Class _javaType, 138 QName _xmlType) { 139 return 140 new org.apache.axis.encoding.ser.BeanSerializer( 141 _javaType, _xmlType, typeDesc); 142 } 143 144 147 public static org.apache.axis.encoding.Deserializer getDeserializer( 148 String mechType, 149 Class _javaType, 150 QName _xmlType) { 151 return 152 new org.apache.axis.encoding.ser.BeanDeserializer( 153 _javaType, _xmlType, typeDesc); 154 } 155 156 } 157 | Popular Tags |