KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > wssample > gen > google > ResultElement


1 /**
2  * ResultElement.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC2 Dec 15, 2004 (10:53:17 CET) WSDL2Java emitter.
6  */

7
8 package org.objectweb.wssample.gen.google;
9
10 public class ResultElement implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc summary;
12     private java.lang.String JavaDoc URL;
13     private java.lang.String JavaDoc snippet;
14     private java.lang.String JavaDoc title;
15     private java.lang.String JavaDoc cachedSize;
16     private boolean relatedInformationPresent;
17     private java.lang.String JavaDoc hostName;
18     private org.objectweb.wssample.gen.google.DirectoryCategory directoryCategory;
19     private java.lang.String JavaDoc directoryTitle;
20
21     public ResultElement() {
22     }
23
24     public ResultElement(
25            java.lang.String JavaDoc summary,
26            java.lang.String JavaDoc URL,
27            java.lang.String JavaDoc snippet,
28            java.lang.String JavaDoc title,
29            java.lang.String JavaDoc cachedSize,
30            boolean relatedInformationPresent,
31            java.lang.String JavaDoc hostName,
32            org.objectweb.wssample.gen.google.DirectoryCategory directoryCategory,
33            java.lang.String JavaDoc directoryTitle) {
34            this.summary = summary;
35            this.URL = URL;
36            this.snippet = snippet;
37            this.title = title;
38            this.cachedSize = cachedSize;
39            this.relatedInformationPresent = relatedInformationPresent;
40            this.hostName = hostName;
41            this.directoryCategory = directoryCategory;
42            this.directoryTitle = directoryTitle;
43     }
44
45
46     /**
47      * Gets the summary value for this ResultElement.
48      *
49      * @return summary
50      */

51     public java.lang.String JavaDoc getSummary() {
52         return summary;
53     }
54
55
56     /**
57      * Sets the summary value for this ResultElement.
58      *
59      * @param summary
60      */

61     public void setSummary(java.lang.String JavaDoc summary) {
62         this.summary = summary;
63     }
64
65
66     /**
67      * Gets the URL value for this ResultElement.
68      *
69      * @return URL
70      */

71     public java.lang.String JavaDoc getURL() {
72         return URL;
73     }
74
75
76     /**
77      * Sets the URL value for this ResultElement.
78      *
79      * @param URL
80      */

81     public void setURL(java.lang.String JavaDoc URL) {
82         this.URL = URL;
83     }
84
85
86     /**
87      * Gets the snippet value for this ResultElement.
88      *
89      * @return snippet
90      */

91     public java.lang.String JavaDoc getSnippet() {
92         return snippet;
93     }
94
95
96     /**
97      * Sets the snippet value for this ResultElement.
98      *
99      * @param snippet
100      */

101     public void setSnippet(java.lang.String JavaDoc snippet) {
102         this.snippet = snippet;
103     }
104
105
106     /**
107      * Gets the title value for this ResultElement.
108      *
109      * @return title
110      */

111     public java.lang.String JavaDoc getTitle() {
112         return title;
113     }
114
115
116     /**
117      * Sets the title value for this ResultElement.
118      *
119      * @param title
120      */

121     public void setTitle(java.lang.String JavaDoc title) {
122         this.title = title;
123     }
124
125
126     /**
127      * Gets the cachedSize value for this ResultElement.
128      *
129      * @return cachedSize
130      */

131     public java.lang.String JavaDoc getCachedSize() {
132         return cachedSize;
133     }
134
135
136     /**
137      * Sets the cachedSize value for this ResultElement.
138      *
139      * @param cachedSize
140      */

141     public void setCachedSize(java.lang.String JavaDoc cachedSize) {
142         this.cachedSize = cachedSize;
143     }
144
145
146     /**
147      * Gets the relatedInformationPresent value for this ResultElement.
148      *
149      * @return relatedInformationPresent
150      */

151     public boolean isRelatedInformationPresent() {
152         return relatedInformationPresent;
153     }
154
155
156     /**
157      * Sets the relatedInformationPresent value for this ResultElement.
158      *
159      * @param relatedInformationPresent
160      */

161     public void setRelatedInformationPresent(boolean relatedInformationPresent) {
162         this.relatedInformationPresent = relatedInformationPresent;
163     }
164
165
166     /**
167      * Gets the hostName value for this ResultElement.
168      *
169      * @return hostName
170      */

171     public java.lang.String JavaDoc getHostName() {
172         return hostName;
173     }
174
175
176     /**
177      * Sets the hostName value for this ResultElement.
178      *
179      * @param hostName
180      */

181     public void setHostName(java.lang.String JavaDoc hostName) {
182         this.hostName = hostName;
183     }
184
185
186     /**
187      * Gets the directoryCategory value for this ResultElement.
188      *
189      * @return directoryCategory
190      */

191     public org.objectweb.wssample.gen.google.DirectoryCategory getDirectoryCategory() {
192         return directoryCategory;
193     }
194
195
196     /**
197      * Sets the directoryCategory value for this ResultElement.
198      *
199      * @param directoryCategory
200      */

201     public void setDirectoryCategory(org.objectweb.wssample.gen.google.DirectoryCategory directoryCategory) {
202         this.directoryCategory = directoryCategory;
203     }
204
205
206     /**
207      * Gets the directoryTitle value for this ResultElement.
208      *
209      * @return directoryTitle
210      */

211     public java.lang.String JavaDoc getDirectoryTitle() {
212         return directoryTitle;
213     }
214
215
216     /**
217      * Sets the directoryTitle value for this ResultElement.
218      *
219      * @param directoryTitle
220      */

221     public void setDirectoryTitle(java.lang.String JavaDoc directoryTitle) {
222         this.directoryTitle = directoryTitle;
223     }
224
225     private java.lang.Object JavaDoc __equalsCalc = null;
226     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
227         if (!(obj instanceof ResultElement)) return false;
228         ResultElement other = (ResultElement) obj;
229         if (obj == null) return false;
230         if (this == obj) return true;
231         if (__equalsCalc != null) {
232             return (__equalsCalc == obj);
233         }
234         __equalsCalc = obj;
235         boolean _equals;
236         _equals = true &&
237             ((this.summary==null && other.getSummary()==null) ||
238              (this.summary!=null &&
239               this.summary.equals(other.getSummary()))) &&
240             ((this.URL==null && other.getURL()==null) ||
241              (this.URL!=null &&
242               this.URL.equals(other.getURL()))) &&
243             ((this.snippet==null && other.getSnippet()==null) ||
244              (this.snippet!=null &&
245               this.snippet.equals(other.getSnippet()))) &&
246             ((this.title==null && other.getTitle()==null) ||
247              (this.title!=null &&
248               this.title.equals(other.getTitle()))) &&
249             ((this.cachedSize==null && other.getCachedSize()==null) ||
250              (this.cachedSize!=null &&
251               this.cachedSize.equals(other.getCachedSize()))) &&
252             this.relatedInformationPresent == other.isRelatedInformationPresent() &&
253             ((this.hostName==null && other.getHostName()==null) ||
254              (this.hostName!=null &&
255               this.hostName.equals(other.getHostName()))) &&
256             ((this.directoryCategory==null && other.getDirectoryCategory()==null) ||
257              (this.directoryCategory!=null &&
258               this.directoryCategory.equals(other.getDirectoryCategory()))) &&
259             ((this.directoryTitle==null && other.getDirectoryTitle()==null) ||
260              (this.directoryTitle!=null &&
261               this.directoryTitle.equals(other.getDirectoryTitle())));
262         __equalsCalc = null;
263         return _equals;
264     }
265
266     private boolean __hashCodeCalc = false;
267     public synchronized int hashCode() {
268         if (__hashCodeCalc) {
269             return 0;
270         }
271         __hashCodeCalc = true;
272         int _hashCode = 1;
273         if (getSummary() != null) {
274             _hashCode += getSummary().hashCode();
275         }
276         if (getURL() != null) {
277             _hashCode += getURL().hashCode();
278         }
279         if (getSnippet() != null) {
280             _hashCode += getSnippet().hashCode();
281         }
282         if (getTitle() != null) {
283             _hashCode += getTitle().hashCode();
284         }
285         if (getCachedSize() != null) {
286             _hashCode += getCachedSize().hashCode();
287         }
288         _hashCode += (isRelatedInformationPresent() ? Boolean.TRUE : Boolean.FALSE).hashCode();
289         if (getHostName() != null) {
290             _hashCode += getHostName().hashCode();
291         }
292         if (getDirectoryCategory() != null) {
293             _hashCode += getDirectoryCategory().hashCode();
294         }
295         if (getDirectoryTitle() != null) {
296             _hashCode += getDirectoryTitle().hashCode();
297         }
298         __hashCodeCalc = false;
299         return _hashCode;
300     }
301
302     // Type metadata
303
private static org.apache.axis.description.TypeDesc typeDesc =
304         new org.apache.axis.description.TypeDesc(ResultElement.class, true);
305
306     static {
307         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("urn:GoogleSearch", "ResultElement"));
308         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
309         elemField.setFieldName("summary");
310         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "summary"));
311         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
312         typeDesc.addFieldDesc(elemField);
313         elemField = new org.apache.axis.description.ElementDesc();
314         elemField.setFieldName("URL");
315         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "URL"));
316         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
317         typeDesc.addFieldDesc(elemField);
318         elemField = new org.apache.axis.description.ElementDesc();
319         elemField.setFieldName("snippet");
320         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "snippet"));
321         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
322         typeDesc.addFieldDesc(elemField);
323         elemField = new org.apache.axis.description.ElementDesc();
324         elemField.setFieldName("title");
325         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "title"));
326         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
327         typeDesc.addFieldDesc(elemField);
328         elemField = new org.apache.axis.description.ElementDesc();
329         elemField.setFieldName("cachedSize");
330         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "cachedSize"));
331         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
332         typeDesc.addFieldDesc(elemField);
333         elemField = new org.apache.axis.description.ElementDesc();
334         elemField.setFieldName("relatedInformationPresent");
335         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "relatedInformationPresent"));
336         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
337         typeDesc.addFieldDesc(elemField);
338         elemField = new org.apache.axis.description.ElementDesc();
339         elemField.setFieldName("hostName");
340         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "hostName"));
341         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
342         typeDesc.addFieldDesc(elemField);
343         elemField = new org.apache.axis.description.ElementDesc();
344         elemField.setFieldName("directoryCategory");
345         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "directoryCategory"));
346         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("urn:GoogleSearch", "DirectoryCategory"));
347         typeDesc.addFieldDesc(elemField);
348         elemField = new org.apache.axis.description.ElementDesc();
349         elemField.setFieldName("directoryTitle");
350         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "directoryTitle"));
351         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
352         typeDesc.addFieldDesc(elemField);
353     }
354
355     /**
356      * Return type metadata object
357      */

358     public static org.apache.axis.description.TypeDesc getTypeDesc() {
359         return typeDesc;
360     }
361
362     /**
363      * Get Custom Serializer
364      */

365     public static org.apache.axis.encoding.Serializer getSerializer(
366            java.lang.String JavaDoc mechType,
367            java.lang.Class JavaDoc _javaType,
368            javax.xml.namespace.QName JavaDoc _xmlType) {
369         return
370           new org.apache.axis.encoding.ser.BeanSerializer(
371             _javaType, _xmlType, typeDesc);
372     }
373
374     /**
375      * Get Custom Deserializer
376      */

377     public static org.apache.axis.encoding.Deserializer getDeserializer(
378            java.lang.String JavaDoc mechType,
379            java.lang.Class JavaDoc _javaType,
380            javax.xml.namespace.QName JavaDoc _xmlType) {
381         return
382           new org.apache.axis.encoding.ser.BeanDeserializer(
383             _javaType, _xmlType, typeDesc);
384     }
385
386 }
387
Popular Tags