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