KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * Wind.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 Wind implements Serializable JavaDoc {
14     private double prevailing_speed;
15     private double gust_speed;
16     private Direction prevailing_direction;
17     private Direction varying_from_direction;
18     private Direction varying_to_direction;
19     private String JavaDoc string;
20
21     public Wind() {
22     }
23
24     public double getPrevailing_speed() {
25         return prevailing_speed;
26     }
27
28     public void setPrevailing_speed(double prevailing_speed) {
29         this.prevailing_speed = prevailing_speed;
30     }
31
32     public double getGust_speed() {
33         return gust_speed;
34     }
35
36     public void setGust_speed(double gust_speed) {
37         this.gust_speed = gust_speed;
38     }
39
40     public Direction getPrevailing_direction() {
41         return prevailing_direction;
42     }
43
44     public void setPrevailing_direction(Direction prevailing_direction) {
45         this.prevailing_direction = prevailing_direction;
46     }
47
48     public Direction getVarying_from_direction() {
49         return varying_from_direction;
50     }
51
52     public void setVarying_from_direction(Direction varying_from_direction) {
53         this.varying_from_direction = varying_from_direction;
54     }
55
56     public Direction getVarying_to_direction() {
57         return varying_to_direction;
58     }
59
60     public void setVarying_to_direction(Direction varying_to_direction) {
61         this.varying_to_direction = varying_to_direction;
62     }
63
64     public String JavaDoc getString() {
65         return string;
66     }
67
68     public void setString(String JavaDoc string) {
69         this.string = string;
70     }
71
72     private Object JavaDoc __equalsCalc = null;
73     public synchronized boolean equals(Object JavaDoc obj) {
74         if (!(obj instanceof Wind)) return false;
75         Wind other = (Wind) obj;
76         if (obj == null) return false;
77         if (this == obj) return true;
78         if (__equalsCalc != null) {
79             return (__equalsCalc == obj);
80         }
81         __equalsCalc = obj;
82         boolean _equals;
83         _equals = true &&
84             this.prevailing_speed == other.getPrevailing_speed() &&
85             this.gust_speed == other.getGust_speed() &&
86             ((this.prevailing_direction==null && other.getPrevailing_direction()==null) ||
87              (this.prevailing_direction!=null &&
88               this.prevailing_direction.equals(other.getPrevailing_direction()))) &&
89             ((this.varying_from_direction==null && other.getVarying_from_direction()==null) ||
90              (this.varying_from_direction!=null &&
91               this.varying_from_direction.equals(other.getVarying_from_direction()))) &&
92             ((this.varying_to_direction==null && other.getVarying_to_direction()==null) ||
93              (this.varying_to_direction!=null &&
94               this.varying_to_direction.equals(other.getVarying_to_direction()))) &&
95             ((this.string==null && other.getString()==null) ||
96              (this.string!=null &&
97               this.string.equals(other.getString())));
98         __equalsCalc = null;
99         return _equals;
100     }
101
102     private boolean __hashCodeCalc = false;
103     public synchronized int hashCode() {
104         if (__hashCodeCalc) {
105             return 0;
106         }
107         __hashCodeCalc = true;
108         int _hashCode = 1;
109         _hashCode += new Double JavaDoc(getPrevailing_speed()).hashCode();
110         _hashCode += new Double JavaDoc(getGust_speed()).hashCode();
111         if (getPrevailing_direction() != null) {
112             _hashCode += getPrevailing_direction().hashCode();
113         }
114         if (getVarying_from_direction() != null) {
115             _hashCode += getVarying_from_direction().hashCode();
116         }
117         if (getVarying_to_direction() != null) {
118             _hashCode += getVarying_to_direction().hashCode();
119         }
120         if (getString() != null) {
121             _hashCode += getString().hashCode();
122         }
123         __hashCodeCalc = false;
124         return _hashCode;
125     }
126
127     // Type metadata
128
private static org.apache.axis.description.TypeDesc typeDesc =
129         new org.apache.axis.description.TypeDesc(Wind.class);
130
131     static {
132         typeDesc.setXmlType(new QName JavaDoc("http://www.capeclear.com/GlobalWeather.xsd", "Wind"));
133         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
134         elemField.setFieldName("prevailing_speed");
135         elemField.setXmlName(new QName JavaDoc("", "prevailing_speed"));
136         elemField.setXmlType(new QName JavaDoc("http://www.w3.org/2001/XMLSchema", "double"));
137         typeDesc.addFieldDesc(elemField);
138         elemField = new org.apache.axis.description.ElementDesc();
139         elemField.setFieldName("gust_speed");
140         elemField.setXmlName(new QName JavaDoc("", "gust_speed"));
141         elemField.setXmlType(new QName JavaDoc("http://www.w3.org/2001/XMLSchema", "double"));
142         typeDesc.addFieldDesc(elemField);
143         elemField = new org.apache.axis.description.ElementDesc();
144         elemField.setFieldName("prevailing_direction");
145         elemField.setXmlName(new QName JavaDoc("", "prevailing_direction"));
146         elemField.setXmlType(new QName JavaDoc("http://www.capeclear.com/GlobalWeather.xsd", "Direction"));
147         typeDesc.addFieldDesc(elemField);
148         elemField = new org.apache.axis.description.ElementDesc();
149         elemField.setFieldName("varying_from_direction");
150         elemField.setXmlName(new QName JavaDoc("", "varying_from_direction"));
151         elemField.setXmlType(new QName JavaDoc("http://www.capeclear.com/GlobalWeather.xsd", "Direction"));
152         typeDesc.addFieldDesc(elemField);
153         elemField = new org.apache.axis.description.ElementDesc();
154         elemField.setFieldName("varying_to_direction");
155         elemField.setXmlName(new QName JavaDoc("", "varying_to_direction"));
156         elemField.setXmlType(new QName JavaDoc("http://www.capeclear.com/GlobalWeather.xsd", "Direction"));
157         typeDesc.addFieldDesc(elemField);
158         elemField = new org.apache.axis.description.ElementDesc();
159         elemField.setFieldName("string");
160         elemField.setXmlName(new QName JavaDoc("", "string"));
161         elemField.setXmlType(new QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
162         typeDesc.addFieldDesc(elemField);
163     }
164
165     /**
166      * Return type metadata object
167      */

168     public static org.apache.axis.description.TypeDesc getTypeDesc() {
169         return typeDesc;
170     }
171
172     /**
173      * Get Custom Serializer
174      */

175     public static org.apache.axis.encoding.Serializer getSerializer(
176            String JavaDoc mechType,
177            Class JavaDoc _javaType,
178            QName JavaDoc _xmlType) {
179         return
180           new org.apache.axis.encoding.ser.BeanSerializer(
181             _javaType, _xmlType, typeDesc);
182     }
183
184     /**
185      * Get Custom Deserializer
186      */

187     public static org.apache.axis.encoding.Deserializer getDeserializer(
188            String JavaDoc mechType,
189            Class JavaDoc _javaType,
190            QName JavaDoc _xmlType) {
191         return
192           new org.apache.axis.encoding.ser.BeanDeserializer(
193             _javaType, _xmlType, typeDesc);
194     }
195
196 }
197
Popular Tags