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 Visibility implements Serializable { 14 private double distance; 15 private VisibilityQualifier qualifier; 16 private String string; 17 18 public Visibility() { 19 } 20 21 public double getDistance() { 22 return distance; 23 } 24 25 public void setDistance(double distance) { 26 this.distance = distance; 27 } 28 29 public VisibilityQualifier getQualifier() { 30 return qualifier; 31 } 32 33 public void setQualifier(VisibilityQualifier qualifier) { 34 this.qualifier = qualifier; 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 Visibility)) return false; 48 Visibility other = (Visibility) 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.distance == other.getDistance() && 58 ((this.qualifier==null && other.getQualifier()==null) || 59 (this.qualifier!=null && 60 this.qualifier.equals(other.getQualifier()))) && 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 (getDistance()).hashCode(); 76 if (getQualifier() != null) { 77 _hashCode += getQualifier().hashCode(); 78 } 79 if (getString() != null) { 80 _hashCode += getString().hashCode(); 81 } 82 __hashCodeCalc = false; 83 return _hashCode; 84 } 85 86 private static org.apache.axis.description.TypeDesc typeDesc = 88 new org.apache.axis.description.TypeDesc(Visibility.class); 89 90 static { 91 typeDesc.setXmlType(new QName ("http://www.capeclear.com/GlobalWeather.xsd", "Visibility")); 92 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 93 elemField.setFieldName("distance"); 94 elemField.setXmlName(new QName ("", "distance")); 95 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "double")); 96 typeDesc.addFieldDesc(elemField); 97 elemField = new org.apache.axis.description.ElementDesc(); 98 elemField.setFieldName("qualifier"); 99 elemField.setXmlName(new QName ("", "qualifier")); 100 elemField.setXmlType(new QName ("http://www.capeclear.com/GlobalWeather.xsd", "VisibilityQualifier")); 101 typeDesc.addFieldDesc(elemField); 102 elemField = new org.apache.axis.description.ElementDesc(); 103 elemField.setFieldName("string"); 104 elemField.setXmlName(new QName ("", "string")); 105 elemField.setXmlType(new QName ("http://www.w3.org/2001/XMLSchema", "string")); 106 typeDesc.addFieldDesc(elemField); 107 } 108 109 112 public static org.apache.axis.description.TypeDesc getTypeDesc() { 113 return typeDesc; 114 } 115 116 119 public static org.apache.axis.encoding.Serializer getSerializer( 120 String mechType, 121 Class _javaType, 122 QName _xmlType) { 123 return 124 new org.apache.axis.encoding.ser.BeanSerializer( 125 _javaType, _xmlType, typeDesc); 126 } 127 128 131 public static org.apache.axis.encoding.Deserializer getDeserializer( 132 String mechType, 133 Class _javaType, 134 QName _xmlType) { 135 return 136 new org.apache.axis.encoding.ser.BeanDeserializer( 137 _javaType, _xmlType, typeDesc); 138 } 139 140 } 141 | Popular Tags |