1 7 8 package org.objectweb.wssample.gen.google; 9 10 public class ResultElement implements java.io.Serializable { 11 private java.lang.String summary; 12 private java.lang.String URL; 13 private java.lang.String snippet; 14 private java.lang.String title; 15 private java.lang.String cachedSize; 16 private boolean relatedInformationPresent; 17 private java.lang.String hostName; 18 private org.objectweb.wssample.gen.google.DirectoryCategory directoryCategory; 19 private java.lang.String directoryTitle; 20 21 public ResultElement() { 22 } 23 24 public ResultElement( 25 java.lang.String summary, 26 java.lang.String URL, 27 java.lang.String snippet, 28 java.lang.String title, 29 java.lang.String cachedSize, 30 boolean relatedInformationPresent, 31 java.lang.String hostName, 32 org.objectweb.wssample.gen.google.DirectoryCategory directoryCategory, 33 java.lang.String 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 51 public java.lang.String getSummary() { 52 return summary; 53 } 54 55 56 61 public void setSummary(java.lang.String summary) { 62 this.summary = summary; 63 } 64 65 66 71 public java.lang.String getURL() { 72 return URL; 73 } 74 75 76 81 public void setURL(java.lang.String URL) { 82 this.URL = URL; 83 } 84 85 86 91 public java.lang.String getSnippet() { 92 return snippet; 93 } 94 95 96 101 public void setSnippet(java.lang.String snippet) { 102 this.snippet = snippet; 103 } 104 105 106 111 public java.lang.String getTitle() { 112 return title; 113 } 114 115 116 121 public void setTitle(java.lang.String title) { 122 this.title = title; 123 } 124 125 126 131 public java.lang.String getCachedSize() { 132 return cachedSize; 133 } 134 135 136 141 public void setCachedSize(java.lang.String cachedSize) { 142 this.cachedSize = cachedSize; 143 } 144 145 146 151 public boolean isRelatedInformationPresent() { 152 return relatedInformationPresent; 153 } 154 155 156 161 public void setRelatedInformationPresent(boolean relatedInformationPresent) { 162 this.relatedInformationPresent = relatedInformationPresent; 163 } 164 165 166 171 public java.lang.String getHostName() { 172 return hostName; 173 } 174 175 176 181 public void setHostName(java.lang.String hostName) { 182 this.hostName = hostName; 183 } 184 185 186 191 public org.objectweb.wssample.gen.google.DirectoryCategory getDirectoryCategory() { 192 return directoryCategory; 193 } 194 195 196 201 public void setDirectoryCategory(org.objectweb.wssample.gen.google.DirectoryCategory directoryCategory) { 202 this.directoryCategory = directoryCategory; 203 } 204 205 206 211 public java.lang.String getDirectoryTitle() { 212 return directoryTitle; 213 } 214 215 216 221 public void setDirectoryTitle(java.lang.String directoryTitle) { 222 this.directoryTitle = directoryTitle; 223 } 224 225 private java.lang.Object __equalsCalc = null; 226 public synchronized boolean equals(java.lang.Object 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 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 ("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 ("", "summary")); 311 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "URL")); 316 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "snippet")); 321 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "title")); 326 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "cachedSize")); 331 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "relatedInformationPresent")); 336 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "hostName")); 341 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "directoryCategory")); 346 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("", "directoryTitle")); 351 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 352 typeDesc.addFieldDesc(elemField); 353 } 354 355 358 public static org.apache.axis.description.TypeDesc getTypeDesc() { 359 return typeDesc; 360 } 361 362 365 public static org.apache.axis.encoding.Serializer getSerializer( 366 java.lang.String mechType, 367 java.lang.Class _javaType, 368 javax.xml.namespace.QName _xmlType) { 369 return 370 new org.apache.axis.encoding.ser.BeanSerializer( 371 _javaType, _xmlType, typeDesc); 372 } 373 374 377 public static org.apache.axis.encoding.Deserializer getDeserializer( 378 java.lang.String mechType, 379 java.lang.Class _javaType, 380 javax.xml.namespace.QName _xmlType) { 381 return 382 new org.apache.axis.encoding.ser.BeanDeserializer( 383 _javaType, _xmlType, typeDesc); 384 } 385 386 } 387 | Popular Tags |