1 7 8 package org.objectweb.wssample.genbean.google; 9 10 public class GoogleSearchResult implements java.io.Serializable { 11 private boolean documentFiltering; 12 private java.lang.String searchComments; 13 private int estimatedTotalResultsCount; 14 private boolean estimateIsExact; 15 private org.objectweb.wssample.genbean.google.ResultElement[] resultElements; 16 private java.lang.String searchQuery; 17 private int startIndex; 18 private int endIndex; 19 private java.lang.String 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 searchComments, 29 int estimatedTotalResultsCount, 30 boolean estimateIsExact, 31 org.objectweb.wssample.genbean.google.ResultElement[] resultElements, 32 java.lang.String searchQuery, 33 int startIndex, 34 int endIndex, 35 java.lang.String 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 57 public boolean isDocumentFiltering() { 58 return documentFiltering; 59 } 60 61 62 67 public void setDocumentFiltering(boolean documentFiltering) { 68 this.documentFiltering = documentFiltering; 69 } 70 71 72 77 public java.lang.String getSearchComments() { 78 return searchComments; 79 } 80 81 82 87 public void setSearchComments(java.lang.String searchComments) { 88 this.searchComments = searchComments; 89 } 90 91 92 97 public int getEstimatedTotalResultsCount() { 98 return estimatedTotalResultsCount; 99 } 100 101 102 107 public void setEstimatedTotalResultsCount(int estimatedTotalResultsCount) { 108 this.estimatedTotalResultsCount = estimatedTotalResultsCount; 109 } 110 111 112 117 public boolean isEstimateIsExact() { 118 return estimateIsExact; 119 } 120 121 122 127 public void setEstimateIsExact(boolean estimateIsExact) { 128 this.estimateIsExact = estimateIsExact; 129 } 130 131 132 137 public org.objectweb.wssample.genbean.google.ResultElement[] getResultElements() { 138 return resultElements; 139 } 140 141 142 147 public void setResultElements(org.objectweb.wssample.genbean.google.ResultElement[] resultElements) { 148 this.resultElements = resultElements; 149 } 150 151 152 157 public java.lang.String getSearchQuery() { 158 return searchQuery; 159 } 160 161 162 167 public void setSearchQuery(java.lang.String searchQuery) { 168 this.searchQuery = searchQuery; 169 } 170 171 172 177 public int getStartIndex() { 178 return startIndex; 179 } 180 181 182 187 public void setStartIndex(int startIndex) { 188 this.startIndex = startIndex; 189 } 190 191 192 197 public int getEndIndex() { 198 return endIndex; 199 } 200 201 202 207 public void setEndIndex(int endIndex) { 208 this.endIndex = endIndex; 209 } 210 211 212 217 public java.lang.String getSearchTips() { 218 return searchTips; 219 } 220 221 222 227 public void setSearchTips(java.lang.String searchTips) { 228 this.searchTips = searchTips; 229 } 230 231 232 237 public org.objectweb.wssample.genbean.google.DirectoryCategory[] getDirectoryCategories() { 238 return directoryCategories; 239 } 240 241 242 247 public void setDirectoryCategories(org.objectweb.wssample.genbean.google.DirectoryCategory[] directoryCategories) { 248 this.directoryCategories = directoryCategories; 249 } 250 251 252 257 public double getSearchTime() { 258 return searchTime; 259 } 260 261 262 267 public void setSearchTime(double searchTime) { 268 this.searchTime = searchTime; 269 } 270 271 private java.lang.Object __equalsCalc = null; 272 public synchronized boolean equals(java.lang.Object 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 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 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 (getSearchTime()).hashCode(); 352 __hashCodeCalc = false; 353 return _hashCode; 354 } 355 356 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 ("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 ("", "documentFiltering")); 365 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "searchComments")); 370 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "estimatedTotalResultsCount")); 375 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "estimateIsExact")); 380 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "resultElements")); 385 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "searchQuery")); 390 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "startIndex")); 395 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "endIndex")); 400 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "searchTips")); 405 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "directoryCategories")); 410 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "searchTime")); 415 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "double")); 416 typeDesc.addFieldDesc(elemField); 417 } 418 419 422 public static org.apache.axis.description.TypeDesc getTypeDesc() { 423 return typeDesc; 424 } 425 426 429 public static org.apache.axis.encoding.Serializer getSerializer( 430 java.lang.String mechType, 431 java.lang.Class _javaType, 432 javax.xml.namespace.QName _xmlType) { 433 return 434 new org.apache.axis.encoding.ser.BeanSerializer( 435 _javaType, _xmlType, typeDesc); 436 } 437 438 441 public static org.apache.axis.encoding.Deserializer getDeserializer( 442 java.lang.String mechType, 443 java.lang.Class _javaType, 444 javax.xml.namespace.QName _xmlType) { 445 return 446 new org.apache.axis.encoding.ser.BeanDeserializer( 447 _javaType, _xmlType, typeDesc); 448 } 449 450 } 451 | Popular Tags |