KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > capeclear > www > GlobalWeather_xsd > Extreme


1 /**
2  * Extreme.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */

7
8 package com.capeclear.www.GlobalWeather_xsd;
9
10 import java.io.Serializable JavaDoc;
11 import javax.xml.namespace.QName JavaDoc;
12
13 public class Extreme implements Serializable JavaDoc {
14     private Temperature temperature;
15     private ExtremeType type;
16     private int hours;
17     private String JavaDoc string;
18
19     public Extreme() {
20     }
21
22     public Temperature getTemperature() {
23         return temperature;
24     }
25
26     public void setTemperature(Temperature temperature) {
27         this.temperature = temperature;
28     }
29
30     public ExtremeType getType() {
31         return type;
32     }
33
34     public void setType(ExtremeType type) {
35         this.type = type;
36     }
37
38     public int getHours() {
39         return hours;
40     }
41
42     public void setHours(int hours) {
43         this.hours = hours;
44     }
45
46     public String JavaDoc getString() {
47         return string;
48     }
49
50     public void setString(String JavaDoc string) {
51         this.string = string;
52     }
53
54     private java.lang.Object JavaDoc __equalsCalc = null;
55     public synchronized boolean equals(Object JavaDoc obj) {
56         if (!(obj instanceof Extreme)) return false;
57         Extreme other = (Extreme) 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.temperature==null && other.getTemperature()==null) ||
67              (this.temperature!=null &&
68               this.temperature.equals(other.getTemperature()))) &&
69             ((this.type==null && other.getType()==null) ||
70              (this.type!=null &&
71               this.type.equals(other.getType()))) &&
72             this.hours == other.getHours() &&
73             ((this.string==null && other.getString()==null) ||
74              (this.string!=null &&
75               this.string.equals(other.getString())));
76         __equalsCalc = null;
77         return _equals;
78     }
79
80     private boolean __hashCodeCalc = false;
81     public synchronized int hashCode() {
82         if (__hashCodeCalc) {
83             return 0;
84         }
85         __hashCodeCalc = true;
86         int _hashCode = 1;
87         if (getTemperature() != null) {
88             _hashCode += getTemperature().hashCode();
89         }
90         if (getType() != null) {
91             _hashCode += getType().hashCode();
92         }
93         _hashCode += getHours();
94         if (getString() != null) {
95             _hashCode += getString().hashCode();
96         }
97         __hashCodeCalc = false;
98         return _hashCode;
99     }
100
101     // Type metadata
102
private static org.apache.axis.description.TypeDesc typeDesc =
103         new org.apache.axis.description.TypeDesc(Extreme.class);
104
105     static {
106         typeDesc.setXmlType(new QName JavaDoc("http://www.capeclear.com/GlobalWeather.xsd", "Extreme"));
107         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
108         elemField.setFieldName("temperature");
109         elemField.setXmlName(new QName JavaDoc("", "temperature"));
110         elemField.setXmlType(new QName JavaDoc("http://www.capeclear.com/GlobalWeather.xsd", "Temperature"));
111         typeDesc.addFieldDesc(elemField);
112         elemField = new org.apache.axis.description.ElementDesc();
113         elemField.setFieldName("type");
114         elemField.setXmlName(new QName JavaDoc("", "type"));
115         elemField.setXmlType(new QName JavaDoc("http://www.capeclear.com/GlobalWeather.xsd", "ExtremeType"));
116         typeDesc.addFieldDesc(elemField);
117         elemField = new org.apache.axis.description.ElementDesc();
118         elemField.setFieldName("hours");
119         elemField.setXmlName(new QName JavaDoc("", "hours"));
120         elemField.setXmlType(new QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
121         typeDesc.addFieldDesc(elemField);
122         elemField = new org.apache.axis.description.ElementDesc();
123         elemField.setFieldName("string");
124         elemField.setXmlName(new QName JavaDoc("", "string"));
125         elemField.setXmlType(new QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
126         typeDesc.addFieldDesc(elemField);
127     }
128
129     /**
130      * Return type metadata object
131      */

132     public static org.apache.axis.description.TypeDesc getTypeDesc() {
133         return typeDesc;
134     }
135
136     /**
137      * Get Custom Serializer
138      */

139     public static org.apache.axis.encoding.Serializer getSerializer(
140            String JavaDoc mechType,
141            Class JavaDoc _javaType,
142            QName JavaDoc _xmlType) {
143         return
144           new org.apache.axis.encoding.ser.BeanSerializer(
145             _javaType, _xmlType, typeDesc);
146     }
147
148     /**
149      * Get Custom Deserializer
150      */

151     public static org.apache.axis.encoding.Deserializer getDeserializer(
152            String JavaDoc mechType,
153            Class JavaDoc _javaType,
154            QName JavaDoc _xmlType) {
155         return
156           new org.apache.axis.encoding.ser.BeanDeserializer(
157             _javaType, _xmlType, typeDesc);
158     }
159
160 }
161
Popular Tags