KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * Layer.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 Layer implements Serializable JavaDoc {
14     private double altitude;
15     private int extent;
16     private PhenomenonType type;
17     private String JavaDoc string;
18
19     public Layer() {
20     }
21
22     public double getAltitude() {
23         return altitude;
24     }
25
26     public void setAltitude(double altitude) {
27         this.altitude = altitude;
28     }
29
30     public int getExtent() {
31         return extent;
32     }
33
34     public void setExtent(int extent) {
35         this.extent = extent;
36     }
37
38     public PhenomenonType getType() {
39         return type;
40     }
41
42     public void setType(PhenomenonType type) {
43         this.type = type;
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(java.lang.Object JavaDoc obj) {
56         if (!(obj instanceof Layer)) return false;
57         Layer other = (Layer) 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.altitude == other.getAltitude() &&
67             this.extent == other.getExtent() &&
68             ((this.type==null && other.getType()==null) ||
69              (this.type!=null &&
70               this.type.equals(other.getType()))) &&
71             ((this.string==null && other.getString()==null) ||
72              (this.string!=null &&
73               this.string.equals(other.getString())));
74         __equalsCalc = null;
75         return _equals;
76     }
77
78     private boolean __hashCodeCalc = false;
79     public synchronized int hashCode() {
80         if (__hashCodeCalc) {
81             return 0;
82         }
83         __hashCodeCalc = true;
84         int _hashCode = 1;
85         _hashCode += new Double JavaDoc(getAltitude()).hashCode();
86         _hashCode += getExtent();
87         if (getType() != null) {
88             _hashCode += getType().hashCode();
89         }
90         if (getString() != null) {
91             _hashCode += getString().hashCode();
92         }
93         __hashCodeCalc = false;
94         return _hashCode;
95     }
96
97     // Type metadata
98
private static org.apache.axis.description.TypeDesc typeDesc =
99         new org.apache.axis.description.TypeDesc(Layer.class);
100
101     static {
102         typeDesc.setXmlType(new QName JavaDoc("http://www.capeclear.com/GlobalWeather.xsd", "Layer"));
103         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
104         elemField.setFieldName("altitude");
105         elemField.setXmlName(new QName JavaDoc("", "altitude"));
106         elemField.setXmlType(new QName JavaDoc("http://www.w3.org/2001/XMLSchema", "double"));
107         typeDesc.addFieldDesc(elemField);
108         elemField = new org.apache.axis.description.ElementDesc();
109         elemField.setFieldName("extent");
110         elemField.setXmlName(new QName JavaDoc("", "extent"));
111         elemField.setXmlType(new QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
112         typeDesc.addFieldDesc(elemField);
113         elemField = new org.apache.axis.description.ElementDesc();
114         elemField.setFieldName("type");
115         elemField.setXmlName(new QName JavaDoc("", "type"));
116         elemField.setXmlType(new QName JavaDoc("http://www.capeclear.com/GlobalWeather.xsd", "PhenomenonType"));
117         typeDesc.addFieldDesc(elemField);
118         elemField = new org.apache.axis.description.ElementDesc();
119         elemField.setFieldName("string");
120         elemField.setXmlName(new QName JavaDoc("", "string"));
121         elemField.setXmlType(new QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
122         typeDesc.addFieldDesc(elemField);
123     }
124
125     /**
126      * Return type metadata object
127      */

128     public static org.apache.axis.description.TypeDesc getTypeDesc() {
129         return typeDesc;
130     }
131
132     /**
133      * Get Custom Serializer
134      */

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

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