001: /**
002: * GoogleSearchResult.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2RC1 Sep 29, 2004 (08:29:40 EDT) WSDL2Java emitter.
006: */package org.objectweb.wssample.genbean.google;
007:
008: public class GoogleSearchResult implements java.io.Serializable {
009: private boolean documentFiltering;
010: private java.lang.String searchComments;
011: private int estimatedTotalResultsCount;
012: private boolean estimateIsExact;
013: private org.objectweb.wssample.genbean.google.ResultElement[] resultElements;
014: private java.lang.String searchQuery;
015: private int startIndex;
016: private int endIndex;
017: private java.lang.String searchTips;
018: private org.objectweb.wssample.genbean.google.DirectoryCategory[] directoryCategories;
019: private double searchTime;
020:
021: public GoogleSearchResult() {
022: }
023:
024: public GoogleSearchResult(
025: boolean documentFiltering,
026: java.lang.String searchComments,
027: int estimatedTotalResultsCount,
028: boolean estimateIsExact,
029: org.objectweb.wssample.genbean.google.ResultElement[] resultElements,
030: java.lang.String searchQuery,
031: int startIndex,
032: int endIndex,
033: java.lang.String searchTips,
034: org.objectweb.wssample.genbean.google.DirectoryCategory[] directoryCategories,
035: double searchTime) {
036: this .documentFiltering = documentFiltering;
037: this .searchComments = searchComments;
038: this .estimatedTotalResultsCount = estimatedTotalResultsCount;
039: this .estimateIsExact = estimateIsExact;
040: this .resultElements = resultElements;
041: this .searchQuery = searchQuery;
042: this .startIndex = startIndex;
043: this .endIndex = endIndex;
044: this .searchTips = searchTips;
045: this .directoryCategories = directoryCategories;
046: this .searchTime = searchTime;
047: }
048:
049: /**
050: * Gets the documentFiltering value for this GoogleSearchResult.
051: *
052: * @return documentFiltering
053: */
054: public boolean isDocumentFiltering() {
055: return documentFiltering;
056: }
057:
058: /**
059: * Sets the documentFiltering value for this GoogleSearchResult.
060: *
061: * @param documentFiltering
062: */
063: public void setDocumentFiltering(boolean documentFiltering) {
064: this .documentFiltering = documentFiltering;
065: }
066:
067: /**
068: * Gets the searchComments value for this GoogleSearchResult.
069: *
070: * @return searchComments
071: */
072: public java.lang.String getSearchComments() {
073: return searchComments;
074: }
075:
076: /**
077: * Sets the searchComments value for this GoogleSearchResult.
078: *
079: * @param searchComments
080: */
081: public void setSearchComments(java.lang.String searchComments) {
082: this .searchComments = searchComments;
083: }
084:
085: /**
086: * Gets the estimatedTotalResultsCount value for this GoogleSearchResult.
087: *
088: * @return estimatedTotalResultsCount
089: */
090: public int getEstimatedTotalResultsCount() {
091: return estimatedTotalResultsCount;
092: }
093:
094: /**
095: * Sets the estimatedTotalResultsCount value for this GoogleSearchResult.
096: *
097: * @param estimatedTotalResultsCount
098: */
099: public void setEstimatedTotalResultsCount(
100: int estimatedTotalResultsCount) {
101: this .estimatedTotalResultsCount = estimatedTotalResultsCount;
102: }
103:
104: /**
105: * Gets the estimateIsExact value for this GoogleSearchResult.
106: *
107: * @return estimateIsExact
108: */
109: public boolean isEstimateIsExact() {
110: return estimateIsExact;
111: }
112:
113: /**
114: * Sets the estimateIsExact value for this GoogleSearchResult.
115: *
116: * @param estimateIsExact
117: */
118: public void setEstimateIsExact(boolean estimateIsExact) {
119: this .estimateIsExact = estimateIsExact;
120: }
121:
122: /**
123: * Gets the resultElements value for this GoogleSearchResult.
124: *
125: * @return resultElements
126: */
127: public org.objectweb.wssample.genbean.google.ResultElement[] getResultElements() {
128: return resultElements;
129: }
130:
131: /**
132: * Sets the resultElements value for this GoogleSearchResult.
133: *
134: * @param resultElements
135: */
136: public void setResultElements(
137: org.objectweb.wssample.genbean.google.ResultElement[] resultElements) {
138: this .resultElements = resultElements;
139: }
140:
141: /**
142: * Gets the searchQuery value for this GoogleSearchResult.
143: *
144: * @return searchQuery
145: */
146: public java.lang.String getSearchQuery() {
147: return searchQuery;
148: }
149:
150: /**
151: * Sets the searchQuery value for this GoogleSearchResult.
152: *
153: * @param searchQuery
154: */
155: public void setSearchQuery(java.lang.String searchQuery) {
156: this .searchQuery = searchQuery;
157: }
158:
159: /**
160: * Gets the startIndex value for this GoogleSearchResult.
161: *
162: * @return startIndex
163: */
164: public int getStartIndex() {
165: return startIndex;
166: }
167:
168: /**
169: * Sets the startIndex value for this GoogleSearchResult.
170: *
171: * @param startIndex
172: */
173: public void setStartIndex(int startIndex) {
174: this .startIndex = startIndex;
175: }
176:
177: /**
178: * Gets the endIndex value for this GoogleSearchResult.
179: *
180: * @return endIndex
181: */
182: public int getEndIndex() {
183: return endIndex;
184: }
185:
186: /**
187: * Sets the endIndex value for this GoogleSearchResult.
188: *
189: * @param endIndex
190: */
191: public void setEndIndex(int endIndex) {
192: this .endIndex = endIndex;
193: }
194:
195: /**
196: * Gets the searchTips value for this GoogleSearchResult.
197: *
198: * @return searchTips
199: */
200: public java.lang.String getSearchTips() {
201: return searchTips;
202: }
203:
204: /**
205: * Sets the searchTips value for this GoogleSearchResult.
206: *
207: * @param searchTips
208: */
209: public void setSearchTips(java.lang.String searchTips) {
210: this .searchTips = searchTips;
211: }
212:
213: /**
214: * Gets the directoryCategories value for this GoogleSearchResult.
215: *
216: * @return directoryCategories
217: */
218: public org.objectweb.wssample.genbean.google.DirectoryCategory[] getDirectoryCategories() {
219: return directoryCategories;
220: }
221:
222: /**
223: * Sets the directoryCategories value for this GoogleSearchResult.
224: *
225: * @param directoryCategories
226: */
227: public void setDirectoryCategories(
228: org.objectweb.wssample.genbean.google.DirectoryCategory[] directoryCategories) {
229: this .directoryCategories = directoryCategories;
230: }
231:
232: /**
233: * Gets the searchTime value for this GoogleSearchResult.
234: *
235: * @return searchTime
236: */
237: public double getSearchTime() {
238: return searchTime;
239: }
240:
241: /**
242: * Sets the searchTime value for this GoogleSearchResult.
243: *
244: * @param searchTime
245: */
246: public void setSearchTime(double searchTime) {
247: this .searchTime = searchTime;
248: }
249:
250: private java.lang.Object __equalsCalc = null;
251:
252: public synchronized boolean equals(java.lang.Object obj) {
253: if (!(obj instanceof GoogleSearchResult))
254: return false;
255: GoogleSearchResult other = (GoogleSearchResult) obj;
256: if (obj == null)
257: return false;
258: if (this == obj)
259: return true;
260: if (__equalsCalc != null) {
261: return (__equalsCalc == obj);
262: }
263: __equalsCalc = obj;
264: boolean _equals;
265: _equals = true
266: && this .documentFiltering == other
267: .isDocumentFiltering()
268: && ((this .searchComments == null && other
269: .getSearchComments() == null) || (this .searchComments != null && this .searchComments
270: .equals(other.getSearchComments())))
271: && this .estimatedTotalResultsCount == other
272: .getEstimatedTotalResultsCount()
273: && this .estimateIsExact == other.isEstimateIsExact()
274: && ((this .resultElements == null && other
275: .getResultElements() == null) || (this .resultElements != null && java.util.Arrays
276: .equals(this .resultElements, other
277: .getResultElements())))
278: && ((this .searchQuery == null && other.getSearchQuery() == null) || (this .searchQuery != null && this .searchQuery
279: .equals(other.getSearchQuery())))
280: && this .startIndex == other.getStartIndex()
281: && this .endIndex == other.getEndIndex()
282: && ((this .searchTips == null && other.getSearchTips() == null) || (this .searchTips != null && this .searchTips
283: .equals(other.getSearchTips())))
284: && ((this .directoryCategories == null && other
285: .getDirectoryCategories() == null) || (this .directoryCategories != null && java.util.Arrays
286: .equals(this .directoryCategories, other
287: .getDirectoryCategories())))
288: && this .searchTime == other.getSearchTime();
289: __equalsCalc = null;
290: return _equals;
291: }
292:
293: private boolean __hashCodeCalc = false;
294:
295: public synchronized int hashCode() {
296: if (__hashCodeCalc) {
297: return 0;
298: }
299: __hashCodeCalc = true;
300: int _hashCode = 1;
301: _hashCode += (isDocumentFiltering() ? Boolean.TRUE
302: : Boolean.FALSE).hashCode();
303: if (getSearchComments() != null) {
304: _hashCode += getSearchComments().hashCode();
305: }
306: _hashCode += getEstimatedTotalResultsCount();
307: _hashCode += (isEstimateIsExact() ? Boolean.TRUE
308: : Boolean.FALSE).hashCode();
309: if (getResultElements() != null) {
310: for (int i = 0; i < java.lang.reflect.Array
311: .getLength(getResultElements()); i++) {
312: java.lang.Object obj = java.lang.reflect.Array.get(
313: getResultElements(), i);
314: if (obj != null && !obj.getClass().isArray()) {
315: _hashCode += obj.hashCode();
316: }
317: }
318: }
319: if (getSearchQuery() != null) {
320: _hashCode += getSearchQuery().hashCode();
321: }
322: _hashCode += getStartIndex();
323: _hashCode += getEndIndex();
324: if (getSearchTips() != null) {
325: _hashCode += getSearchTips().hashCode();
326: }
327: if (getDirectoryCategories() != null) {
328: for (int i = 0; i < java.lang.reflect.Array
329: .getLength(getDirectoryCategories()); i++) {
330: java.lang.Object obj = java.lang.reflect.Array.get(
331: getDirectoryCategories(), i);
332: if (obj != null && !obj.getClass().isArray()) {
333: _hashCode += obj.hashCode();
334: }
335: }
336: }
337: _hashCode += new Double(getSearchTime()).hashCode();
338: __hashCodeCalc = false;
339: return _hashCode;
340: }
341:
342: // Type metadata
343: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
344: GoogleSearchResult.class, true);
345:
346: static {
347: typeDesc.setXmlType(new javax.xml.namespace.QName(
348: "urn:GoogleSearch", "GoogleSearchResult"));
349: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
350: elemField.setFieldName("documentFiltering");
351: elemField.setXmlName(new javax.xml.namespace.QName("",
352: "documentFiltering"));
353: elemField.setXmlType(new javax.xml.namespace.QName(
354: "http://www.w3.org/2001/XMLSchema", "boolean"));
355: typeDesc.addFieldDesc(elemField);
356: elemField = new org.apache.axis.description.ElementDesc();
357: elemField.setFieldName("searchComments");
358: elemField.setXmlName(new javax.xml.namespace.QName("",
359: "searchComments"));
360: elemField.setXmlType(new javax.xml.namespace.QName(
361: "http://www.w3.org/2001/XMLSchema", "string"));
362: typeDesc.addFieldDesc(elemField);
363: elemField = new org.apache.axis.description.ElementDesc();
364: elemField.setFieldName("estimatedTotalResultsCount");
365: elemField.setXmlName(new javax.xml.namespace.QName("",
366: "estimatedTotalResultsCount"));
367: elemField.setXmlType(new javax.xml.namespace.QName(
368: "http://www.w3.org/2001/XMLSchema", "int"));
369: typeDesc.addFieldDesc(elemField);
370: elemField = new org.apache.axis.description.ElementDesc();
371: elemField.setFieldName("estimateIsExact");
372: elemField.setXmlName(new javax.xml.namespace.QName("",
373: "estimateIsExact"));
374: elemField.setXmlType(new javax.xml.namespace.QName(
375: "http://www.w3.org/2001/XMLSchema", "boolean"));
376: typeDesc.addFieldDesc(elemField);
377: elemField = new org.apache.axis.description.ElementDesc();
378: elemField.setFieldName("resultElements");
379: elemField.setXmlName(new javax.xml.namespace.QName("",
380: "resultElements"));
381: elemField.setXmlType(new javax.xml.namespace.QName(
382: "urn:GoogleSearch", "ResultElement"));
383: typeDesc.addFieldDesc(elemField);
384: elemField = new org.apache.axis.description.ElementDesc();
385: elemField.setFieldName("searchQuery");
386: elemField.setXmlName(new javax.xml.namespace.QName("",
387: "searchQuery"));
388: elemField.setXmlType(new javax.xml.namespace.QName(
389: "http://www.w3.org/2001/XMLSchema", "string"));
390: typeDesc.addFieldDesc(elemField);
391: elemField = new org.apache.axis.description.ElementDesc();
392: elemField.setFieldName("startIndex");
393: elemField.setXmlName(new javax.xml.namespace.QName("",
394: "startIndex"));
395: elemField.setXmlType(new javax.xml.namespace.QName(
396: "http://www.w3.org/2001/XMLSchema", "int"));
397: typeDesc.addFieldDesc(elemField);
398: elemField = new org.apache.axis.description.ElementDesc();
399: elemField.setFieldName("endIndex");
400: elemField.setXmlName(new javax.xml.namespace.QName("",
401: "endIndex"));
402: elemField.setXmlType(new javax.xml.namespace.QName(
403: "http://www.w3.org/2001/XMLSchema", "int"));
404: typeDesc.addFieldDesc(elemField);
405: elemField = new org.apache.axis.description.ElementDesc();
406: elemField.setFieldName("searchTips");
407: elemField.setXmlName(new javax.xml.namespace.QName("",
408: "searchTips"));
409: elemField.setXmlType(new javax.xml.namespace.QName(
410: "http://www.w3.org/2001/XMLSchema", "string"));
411: typeDesc.addFieldDesc(elemField);
412: elemField = new org.apache.axis.description.ElementDesc();
413: elemField.setFieldName("directoryCategories");
414: elemField.setXmlName(new javax.xml.namespace.QName("",
415: "directoryCategories"));
416: elemField.setXmlType(new javax.xml.namespace.QName(
417: "urn:GoogleSearch", "DirectoryCategory"));
418: typeDesc.addFieldDesc(elemField);
419: elemField = new org.apache.axis.description.ElementDesc();
420: elemField.setFieldName("searchTime");
421: elemField.setXmlName(new javax.xml.namespace.QName("",
422: "searchTime"));
423: elemField.setXmlType(new javax.xml.namespace.QName(
424: "http://www.w3.org/2001/XMLSchema", "double"));
425: typeDesc.addFieldDesc(elemField);
426: }
427:
428: /**
429: * Return type metadata object
430: */
431: public static org.apache.axis.description.TypeDesc getTypeDesc() {
432: return typeDesc;
433: }
434:
435: /**
436: * Get Custom Serializer
437: */
438: public static org.apache.axis.encoding.Serializer getSerializer(
439: java.lang.String mechType, java.lang.Class _javaType,
440: javax.xml.namespace.QName _xmlType) {
441: return new org.apache.axis.encoding.ser.BeanSerializer(
442: _javaType, _xmlType, typeDesc);
443: }
444:
445: /**
446: * Get Custom Deserializer
447: */
448: public static org.apache.axis.encoding.Deserializer getDeserializer(
449: java.lang.String mechType, java.lang.Class _javaType,
450: javax.xml.namespace.QName _xmlType) {
451: return new org.apache.axis.encoding.ser.BeanDeserializer(
452: _javaType, _xmlType, typeDesc);
453: }
454:
455: }
|