KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > wssample > genbean > google > GoogleSearchResult


1 /**
2  * GoogleSearchResult.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC1 Sep 29, 2004 (08:29:40 EDT) WSDL2Java emitter.
6  */

7
8 package org.objectweb.wssample.genbean.google;
9
10 public class GoogleSearchResult implements java.io.Serializable JavaDoc {
11     private boolean documentFiltering;
12     private java.lang.String JavaDoc searchComments;
13     private int estimatedTotalResultsCount;
14     private boolean estimateIsExact;
15     private org.objectweb.wssample.genbean.google.ResultElement[] resultElements;
16     private java.lang.String JavaDoc searchQuery;
17     private int startIndex;
18     private int endIndex;
19     private java.lang.String JavaDoc searchTips;
20     private org.objectweb.wssample.genbean.google.DirectoryCategory[] directoryCategories;
21     private double searchTime;
22
23     public GoogleSearchResult() {
24     }
25
26     public GoogleSearchResult(
27            boolean documentFiltering,
28            java.lang.String JavaDoc searchComments,
29            int estimatedTotalResultsCount,
30            boolean estimateIsExact,
31            org.objectweb.wssample.genbean.google.ResultElement[] resultElements,
32            java.lang.String JavaDoc searchQuery,
33            int startIndex,
34            int endIndex,
35            java.lang.String JavaDoc searchTips,
36            org.objectweb.wssample.genbean.google.DirectoryCategory[] directoryCategories,
37            double searchTime) {
38            this.documentFiltering = documentFiltering;
39            this.searchComments = searchComments;
40            this.estimatedTotalResultsCount = estimatedTotalResultsCount;
41            this.estimateIsExact = estimateIsExact;
42            this.resultElements = resultElements;
43            this.searchQuery = searchQuery;
44            this.startIndex = startIndex;
45            this.endIndex = endIndex;
46            this.searchTips = searchTips;
47            this.directoryCategories = directoryCategories;
48            this.searchTime = searchTime;
49     }
50
51
52     /**
53      * Gets the documentFiltering value for this GoogleSearchResult.
54      *
55      * @return documentFiltering
56      */

57     public boolean isDocumentFiltering() {
58         return documentFiltering;
59     }
60
61
62     /**
63      * Sets the documentFiltering value for this GoogleSearchResult.
64      *
65      * @param documentFiltering
66      */

67     public void setDocumentFiltering(boolean documentFiltering) {
68         this.documentFiltering = documentFiltering;
69     }
70
71
72     /**
73      * Gets the searchComments value for this GoogleSearchResult.
74      *
75      * @return searchComments
76      */

77     public java.lang.String JavaDoc getSearchComments() {
78         return searchComments;
79     }
80
81
82     /**
83      * Sets the searchComments value for this GoogleSearchResult.
84      *
85      * @param searchComments
86      */

87     public void setSearchComments(java.lang.String JavaDoc searchComments) {
88         this.searchComments = searchComments;
89     }
90
91
92     /**
93      * Gets the estimatedTotalResultsCount value for this GoogleSearchResult.
94      *
95      * @return estimatedTotalResultsCount
96      */

97     public int getEstimatedTotalResultsCount() {
98         return estimatedTotalResultsCount;
99     }
100
101
102     /**
103      * Sets the estimatedTotalResultsCount value for this GoogleSearchResult.
104      *
105      * @param estimatedTotalResultsCount
106      */

107     public void setEstimatedTotalResultsCount(int estimatedTotalResultsCount) {
108         this.estimatedTotalResultsCount = estimatedTotalResultsCount;
109     }
110
111
112     /**
113      * Gets the estimateIsExact value for this GoogleSearchResult.
114      *
115      * @return estimateIsExact
116      */

117     public boolean isEstimateIsExact() {
118         return estimateIsExact;
119     }
120
121
122     /**
123      * Sets the estimateIsExact value for this GoogleSearchResult.
124      *
125      * @param estimateIsExact
126      */

127     public void setEstimateIsExact(boolean estimateIsExact) {
128         this.estimateIsExact = estimateIsExact;
129     }
130
131
132     /**
133      * Gets the resultElements value for this GoogleSearchResult.
134      *
135      * @return resultElements
136      */

137     public org.objectweb.wssample.genbean.google.ResultElement[] getResultElements() {
138         return resultElements;
139     }
140
141
142     /**
143      * Sets the resultElements value for this GoogleSearchResult.
144      *
145      * @param resultElements
146      */

147     public void setResultElements(org.objectweb.wssample.genbean.google.ResultElement[] resultElements) {
148         this.resultElements = resultElements;
149     }
150
151
152     /**
153      * Gets the searchQuery value for this GoogleSearchResult.
154      *
155      * @return searchQuery
156      */

157     public java.lang.String JavaDoc getSearchQuery() {
158         return searchQuery;
159     }
160
161
162     /**
163      * Sets the searchQuery value for this GoogleSearchResult.
164      *
165      * @param searchQuery
166      */

167     public void setSearchQuery(java.lang.String JavaDoc searchQuery) {
168         this.searchQuery = searchQuery;
169     }
170
171
172     /**
173      * Gets the startIndex value for this GoogleSearchResult.
174      *
175      * @return startIndex
176      */

177     public int getStartIndex() {
178         return startIndex;
179     }
180
181
182     /**
183      * Sets the startIndex value for this GoogleSearchResult.
184      *
185      * @param startIndex
186      */

187     public void setStartIndex(int startIndex) {
188         this.startIndex = startIndex;
189     }
190
191
192     /**
193      * Gets the endIndex value for this GoogleSearchResult.
194      *
195      * @return endIndex
196      */

197     public int getEndIndex() {
198         return endIndex;
199     }
200
201
202     /**
203      * Sets the endIndex value for this GoogleSearchResult.
204      *
205      * @param endIndex
206      */

207     public void setEndIndex(int endIndex) {
208         this.endIndex = endIndex;
209     }
210
211
212     /**
213      * Gets the searchTips value for this GoogleSearchResult.
214      *
215      * @return searchTips
216      */

217     public java.lang.String JavaDoc getSearchTips() {
218         return searchTips;
219     }
220
221
222     /**
223      * Sets the searchTips value for this GoogleSearchResult.
224      *
225      * @param searchTips
226      */

227     public void setSearchTips(java.lang.String JavaDoc searchTips) {
228         this.searchTips = searchTips;
229     }
230
231
232     /**
233      * Gets the directoryCategories value for this GoogleSearchResult.
234      *
235      * @return directoryCategories
236      */

237     public org.objectweb.wssample.genbean.google.DirectoryCategory[] getDirectoryCategories() {
238         return directoryCategories;
239     }
240
241
242     /**
243      * Sets the directoryCategories value for this GoogleSearchResult.
244      *
245      * @param directoryCategories
246      */

247     public void setDirectoryCategories(org.objectweb.wssample.genbean.google.DirectoryCategory[] directoryCategories) {
248         this.directoryCategories = directoryCategories;
249     }
250
251
252     /**
253      * Gets the searchTime value for this GoogleSearchResult.
254      *
255      * @return searchTime
256      */

257     public double getSearchTime() {
258         return searchTime;
259     }
260
261
262     /**
263      * Sets the searchTime value for this GoogleSearchResult.
264      *
265      * @param searchTime
266      */

267     public void setSearchTime(double searchTime) {
268         this.searchTime = searchTime;
269     }
270
271     private java.lang.Object JavaDoc __equalsCalc = null;
272     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
273         if (!(obj instanceof GoogleSearchResult)) return false;
274         GoogleSearchResult other = (GoogleSearchResult) obj;
275         if (obj == null) return false;
276         if (this == obj) return true;
277         if (__equalsCalc != null) {
278             return (__equalsCalc == obj);
279         }
280         __equalsCalc = obj;
281         boolean _equals;
282         _equals = true &&
283             this.documentFiltering == other.isDocumentFiltering() &&
284             ((this.searchComments==null && other.getSearchComments()==null) ||
285              (this.searchComments!=null &&
286               this.searchComments.equals(other.getSearchComments()))) &&
287             this.estimatedTotalResultsCount == other.getEstimatedTotalResultsCount() &&
288             this.estimateIsExact == other.isEstimateIsExact() &&
289             ((this.resultElements==null && other.getResultElements()==null) ||
290              (this.resultElements!=null &&
291               java.util.Arrays.equals(this.resultElements, other.getResultElements()))) &&
292             ((this.searchQuery==null && other.getSearchQuery()==null) ||
293              (this.searchQuery!=null &&
294               this.searchQuery.equals(other.getSearchQuery()))) &&
295             this.startIndex == other.getStartIndex() &&
296             this.endIndex == other.getEndIndex() &&
297             ((this.searchTips==null && other.getSearchTips()==null) ||
298              (this.searchTips!=null &&
299               this.searchTips.equals(other.getSearchTips()))) &&
300             ((this.directoryCategories==null && other.getDirectoryCategories()==null) ||
301              (this.directoryCategories!=null &&
302               java.util.Arrays.equals(this.directoryCategories, other.getDirectoryCategories()))) &&
303             this.searchTime == other.getSearchTime();
304         __equalsCalc = null;
305         return _equals;
306     }
307
308     private boolean __hashCodeCalc = false;
309     public synchronized int hashCode() {
310         if (__hashCodeCalc) {
311             return 0;
312         }
313         __hashCodeCalc = true;
314         int _hashCode = 1;
315         _hashCode += (isDocumentFiltering() ? Boolean.TRUE : Boolean.FALSE).hashCode();
316         if (getSearchComments() != null) {
317             _hashCode += getSearchComments().hashCode();
318         }
319         _hashCode += getEstimatedTotalResultsCount();
320         _hashCode += (isEstimateIsExact() ? Boolean.TRUE : Boolean.FALSE).hashCode();
321         if (getResultElements() != null) {
322             for (int i=0;
323                  i<java.lang.reflect.Array.getLength(getResultElements());
324                  i++) {
325                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getResultElements(), i);
326                 if (obj != null &&
327                     !obj.getClass().isArray()) {
328                     _hashCode += obj.hashCode();
329                 }
330             }
331         }
332         if (getSearchQuery() != null) {
333             _hashCode += getSearchQuery().hashCode();
334         }
335         _hashCode += getStartIndex();
336         _hashCode += getEndIndex();
337         if (getSearchTips() != null) {
338             _hashCode += getSearchTips().hashCode();
339         }
340         if (getDirectoryCategories() != null) {
341             for (int i=0;
342                  i<java.lang.reflect.Array.getLength(getDirectoryCategories());
343                  i++) {
344                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getDirectoryCategories(), i);
345                 if (obj != null &&
346                     !obj.getClass().isArray()) {
347                     _hashCode += obj.hashCode();
348                 }
349             }
350         }
351         _hashCode += new Double JavaDoc(getSearchTime()).hashCode();
352         __hashCodeCalc = false;
353         return _hashCode;
354     }
355
356     // Type metadata
357
private static org.apache.axis.description.TypeDesc typeDesc =
358         new org.apache.axis.description.TypeDesc(GoogleSearchResult.class, true);
359
360     static {
361         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("urn:GoogleSearch", "GoogleSearchResult"));
362         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
363         elemField.setFieldName("documentFiltering");
364         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "documentFiltering"));
365         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
366         typeDesc.addFieldDesc(elemField);
367         elemField = new org.apache.axis.description.ElementDesc();
368         elemField.setFieldName("searchComments");
369         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "searchComments"));
370         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
371         typeDesc.addFieldDesc(elemField);
372         elemField = new org.apache.axis.description.ElementDesc();
373         elemField.setFieldName("estimatedTotalResultsCount");
374         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "estimatedTotalResultsCount"));
375         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
376         typeDesc.addFieldDesc(elemField);
377         elemField = new org.apache.axis.description.ElementDesc();
378         elemField.setFieldName("estimateIsExact");
379         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "estimateIsExact"));
380         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
381         typeDesc.addFieldDesc(elemField);
382         elemField = new org.apache.axis.description.ElementDesc();
383         elemField.setFieldName("resultElements");
384         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "resultElements"));
385         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("urn:GoogleSearch", "ResultElement"));
386         typeDesc.addFieldDesc(elemField);
387         elemField = new org.apache.axis.description.ElementDesc();
388         elemField.setFieldName("searchQuery");
389         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "searchQuery"));
390         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
391         typeDesc.addFieldDesc(elemField);
392         elemField = new org.apache.axis.description.ElementDesc();
393         elemField.setFieldName("startIndex");
394         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "startIndex"));
395         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
396         typeDesc.addFieldDesc(elemField);
397         elemField = new org.apache.axis.description.ElementDesc();
398         elemField.setFieldName("endIndex");
399         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "endIndex"));
400         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
401         typeDesc.addFieldDesc(elemField);
402         elemField = new org.apache.axis.description.ElementDesc();
403         elemField.setFieldName("searchTips");
404         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "searchTips"));
405         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
406         typeDesc.addFieldDesc(elemField);
407         elemField = new org.apache.axis.description.ElementDesc();
408         elemField.setFieldName("directoryCategories");
409         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "directoryCategories"));
410         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("urn:GoogleSearch", "DirectoryCategory"));
411         typeDesc.addFieldDesc(elemField);
412         elemField = new org.apache.axis.description.ElementDesc();
413         elemField.setFieldName("searchTime");
414         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "searchTime"));
415         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "double"));
416         typeDesc.addFieldDesc(elemField);
417     }
418
419     /**
420      * Return type metadata object
421      */

422     public static org.apache.axis.description.TypeDesc getTypeDesc() {
423         return typeDesc;
424     }
425
426     /**
427      * Get Custom Serializer
428      */

429     public static org.apache.axis.encoding.Serializer getSerializer(
430            java.lang.String JavaDoc mechType,
431            java.lang.Class JavaDoc _javaType,
432            javax.xml.namespace.QName JavaDoc _xmlType) {
433         return
434           new org.apache.axis.encoding.ser.BeanSerializer(
435             _javaType, _xmlType, typeDesc);
436     }
437
438     /**
439      * Get Custom Deserializer
440      */

441     public static org.apache.axis.encoding.Deserializer getDeserializer(
442            java.lang.String JavaDoc mechType,
443            java.lang.Class JavaDoc _javaType,
444            javax.xml.namespace.QName JavaDoc _xmlType) {
445         return
446           new org.apache.axis.encoding.ser.BeanDeserializer(
447             _javaType, _xmlType, typeDesc);
448     }
449
450 }
451
Popular Tags