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