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 Phenomenon implements Serializable { 14 private PhenomenonType type; 15 private PhenomenonIntensity intensity; 16 private String string; 17 18 public Phenomenon() { 19 } 20 21 public PhenomenonType getType() { 22 return type; 23 } 24 25 public void setType(PhenomenonType type) { 26 this.type = type; 27 } 28 29 public PhenomenonIntensity getIntensity() { 30 return intensity; 31 } 32 33 public void setIntensity(PhenomenonIntensity intensity) { 34 this.intensity = intensity; 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 Phenomenon)) return false; 48 Phenomenon other = (Phenomenon) 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.type==null && other.getType()==null) || 58 (this.type!=null && 59 this.type.equals(other.getType()))) && 60 ((this.intensity==null && other.getIntensity()==null) || 61 (this.intensity!=null && 62 this.intensity.equals(other.getIntensity()))) && 63 ((this.string==null && other.getString()==null) || 64 (this.string!=null && 65 this.string.equals(other.getString()))); 66 __equalsCalc = null; 67 return _equals; 68 } 69 70 private boolean __hashCodeCalc = false; 71 public synchronized int hashCode() { 72 if (__hashCodeCalc) { 73 return 0; 74 } 75 __hashCodeCalc = true; 76 int _hashCode = 1; 77 if (getType() != null) { 78 _hashCode += getType().hashCode(); 79 } 80 if (getIntensity() != null) { 81 _hashCode += getIntensity().hashCode(); 82 } 83 if (getString() != null) { 84 _hashCode += getString().hashCode(); 85 } 86 __hashCodeCalc = false; 87 return _hashCode; 88 } 89 90 private static org.apache.axis.description.TypeDesc typeDesc = 92 new org.apache.axis.description.TypeDesc(Phenomenon.class); 93 94 static { 95 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.capeclear.com/GlobalWeather.xsd", "Phenomenon")); 96 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 97 elemField.setFieldName("type"); 98 elemField.setXmlName(new javax.xml.namespace.QName ("", "type")); 99 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.capeclear.com/GlobalWeather.xsd", "PhenomenonType")); 100 typeDesc.addFieldDesc(elemField); 101 elemField = new org.apache.axis.description.ElementDesc(); 102 elemField.setFieldName("intensity"); 103 elemField.setXmlName(new javax.xml.namespace.QName ("", "intensity")); 104 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.capeclear.com/GlobalWeather.xsd", "PhenomenonIntensity")); 105 typeDesc.addFieldDesc(elemField); 106 elemField = new org.apache.axis.description.ElementDesc(); 107 elemField.setFieldName("string"); 108 elemField.setXmlName(new javax.xml.namespace.QName ("", "string")); 109 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 110 typeDesc.addFieldDesc(elemField); 111 } 112 113 116 public static org.apache.axis.description.TypeDesc getTypeDesc() { 117 return typeDesc; 118 } 119 120 123 public static org.apache.axis.encoding.Serializer getSerializer( 124 String mechType, 125 Class _javaType, 126 QName _xmlType) { 127 return 128 new org.apache.axis.encoding.ser.BeanSerializer( 129 _javaType, _xmlType, typeDesc); 130 } 131 132 135 public static org.apache.axis.encoding.Deserializer getDeserializer( 136 String mechType, 137 Class _javaType, 138 QName _xmlType) { 139 return 140 new org.apache.axis.encoding.ser.BeanDeserializer( 141 _javaType, _xmlType, typeDesc); 142 } 143 144 } 145 | Popular Tags |