001// 002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.10-b140310.1920 003// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 004// Any modifications to this file will be lost upon recompilation of the source schema. 005// Generated on: 2016.02.02 at 06:16:26 PM GMT 006// 007 008 009package org.apache.activemq.schema.core; 010 011import java.math.BigInteger; 012import java.util.HashMap; 013import java.util.Map; 014import javax.xml.bind.annotation.XmlAccessType; 015import javax.xml.bind.annotation.XmlAccessorType; 016import javax.xml.bind.annotation.XmlAnyAttribute; 017import javax.xml.bind.annotation.XmlAttribute; 018import javax.xml.bind.annotation.XmlID; 019import javax.xml.bind.annotation.XmlRootElement; 020import javax.xml.bind.annotation.XmlSchemaType; 021import javax.xml.bind.annotation.XmlType; 022import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 023import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 024import javax.xml.namespace.QName; 025import org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy; 026import org.jvnet.jaxb2_commons.lang.Equals; 027import org.jvnet.jaxb2_commons.lang.EqualsStrategy; 028import org.jvnet.jaxb2_commons.lang.HashCode; 029import org.jvnet.jaxb2_commons.lang.HashCodeStrategy; 030import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy; 031import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy; 032import org.jvnet.jaxb2_commons.lang.ToString; 033import org.jvnet.jaxb2_commons.lang.ToStringStrategy; 034import org.jvnet.jaxb2_commons.locator.ObjectLocator; 035import org.jvnet.jaxb2_commons.locator.util.LocatorUtils; 036 037 038/** 039 * <p>Java class for anonymous complex type. 040 * 041 * <p>The following schema fragment specifies the expected content contained within this class. 042 * 043 * <pre> 044 * <complexType> 045 * <complexContent> 046 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 047 * <attribute name="all" type="{http://www.w3.org/2001/XMLSchema}integer" /> 048 * <attribute name="durableTopicPrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 049 * <attribute name="maximumPendingMessageLimit" type="{http://www.w3.org/2001/XMLSchema}integer" /> 050 * <attribute name="optimizeDurableTopicPrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 051 * <attribute name="queueBrowserPrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 052 * <attribute name="queuePrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 053 * <attribute name="topicPrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 054 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 055 * <anyAttribute processContents='lax' namespace='##other'/> 056 * </restriction> 057 * </complexContent> 058 * </complexType> 059 * </pre> 060 * 061 * 062 */ 063@XmlAccessorType(XmlAccessType.FIELD) 064@XmlType(name = "") 065@XmlRootElement(name = "prefetchPolicy") 066public class DtoPrefetchPolicy 067 implements Equals, HashCode, ToString 068{ 069 070 @XmlAttribute(name = "all") 071 protected BigInteger all; 072 @XmlAttribute(name = "durableTopicPrefetch") 073 protected BigInteger durableTopicPrefetch; 074 @XmlAttribute(name = "maximumPendingMessageLimit") 075 protected BigInteger maximumPendingMessageLimit; 076 @XmlAttribute(name = "optimizeDurableTopicPrefetch") 077 protected BigInteger optimizeDurableTopicPrefetch; 078 @XmlAttribute(name = "queueBrowserPrefetch") 079 protected BigInteger queueBrowserPrefetch; 080 @XmlAttribute(name = "queuePrefetch") 081 protected BigInteger queuePrefetch; 082 @XmlAttribute(name = "topicPrefetch") 083 protected BigInteger topicPrefetch; 084 @XmlAttribute(name = "id") 085 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 086 @XmlID 087 @XmlSchemaType(name = "ID") 088 protected String id; 089 @XmlAnyAttribute 090 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 091 092 /** 093 * Gets the value of the all property. 094 * 095 * @return 096 * possible object is 097 * {@link BigInteger } 098 * 099 */ 100 public BigInteger getAll() { 101 return all; 102 } 103 104 /** 105 * Sets the value of the all property. 106 * 107 * @param value 108 * allowed object is 109 * {@link BigInteger } 110 * 111 */ 112 public void setAll(BigInteger value) { 113 this.all = value; 114 } 115 116 /** 117 * Gets the value of the durableTopicPrefetch property. 118 * 119 * @return 120 * possible object is 121 * {@link BigInteger } 122 * 123 */ 124 public BigInteger getDurableTopicPrefetch() { 125 return durableTopicPrefetch; 126 } 127 128 /** 129 * Sets the value of the durableTopicPrefetch property. 130 * 131 * @param value 132 * allowed object is 133 * {@link BigInteger } 134 * 135 */ 136 public void setDurableTopicPrefetch(BigInteger value) { 137 this.durableTopicPrefetch = value; 138 } 139 140 /** 141 * Gets the value of the maximumPendingMessageLimit property. 142 * 143 * @return 144 * possible object is 145 * {@link BigInteger } 146 * 147 */ 148 public BigInteger getMaximumPendingMessageLimit() { 149 return maximumPendingMessageLimit; 150 } 151 152 /** 153 * Sets the value of the maximumPendingMessageLimit property. 154 * 155 * @param value 156 * allowed object is 157 * {@link BigInteger } 158 * 159 */ 160 public void setMaximumPendingMessageLimit(BigInteger value) { 161 this.maximumPendingMessageLimit = value; 162 } 163 164 /** 165 * Gets the value of the optimizeDurableTopicPrefetch property. 166 * 167 * @return 168 * possible object is 169 * {@link BigInteger } 170 * 171 */ 172 public BigInteger getOptimizeDurableTopicPrefetch() { 173 return optimizeDurableTopicPrefetch; 174 } 175 176 /** 177 * Sets the value of the optimizeDurableTopicPrefetch property. 178 * 179 * @param value 180 * allowed object is 181 * {@link BigInteger } 182 * 183 */ 184 public void setOptimizeDurableTopicPrefetch(BigInteger value) { 185 this.optimizeDurableTopicPrefetch = value; 186 } 187 188 /** 189 * Gets the value of the queueBrowserPrefetch property. 190 * 191 * @return 192 * possible object is 193 * {@link BigInteger } 194 * 195 */ 196 public BigInteger getQueueBrowserPrefetch() { 197 return queueBrowserPrefetch; 198 } 199 200 /** 201 * Sets the value of the queueBrowserPrefetch property. 202 * 203 * @param value 204 * allowed object is 205 * {@link BigInteger } 206 * 207 */ 208 public void setQueueBrowserPrefetch(BigInteger value) { 209 this.queueBrowserPrefetch = value; 210 } 211 212 /** 213 * Gets the value of the queuePrefetch property. 214 * 215 * @return 216 * possible object is 217 * {@link BigInteger } 218 * 219 */ 220 public BigInteger getQueuePrefetch() { 221 return queuePrefetch; 222 } 223 224 /** 225 * Sets the value of the queuePrefetch property. 226 * 227 * @param value 228 * allowed object is 229 * {@link BigInteger } 230 * 231 */ 232 public void setQueuePrefetch(BigInteger value) { 233 this.queuePrefetch = value; 234 } 235 236 /** 237 * Gets the value of the topicPrefetch property. 238 * 239 * @return 240 * possible object is 241 * {@link BigInteger } 242 * 243 */ 244 public BigInteger getTopicPrefetch() { 245 return topicPrefetch; 246 } 247 248 /** 249 * Sets the value of the topicPrefetch property. 250 * 251 * @param value 252 * allowed object is 253 * {@link BigInteger } 254 * 255 */ 256 public void setTopicPrefetch(BigInteger value) { 257 this.topicPrefetch = value; 258 } 259 260 /** 261 * Gets the value of the id property. 262 * 263 * @return 264 * possible object is 265 * {@link String } 266 * 267 */ 268 public String getId() { 269 return id; 270 } 271 272 /** 273 * Sets the value of the id property. 274 * 275 * @param value 276 * allowed object is 277 * {@link String } 278 * 279 */ 280 public void setId(String value) { 281 this.id = value; 282 } 283 284 /** 285 * Gets a map that contains attributes that aren't bound to any typed property on this class. 286 * 287 * <p> 288 * the map is keyed by the name of the attribute and 289 * the value is the string value of the attribute. 290 * 291 * the map returned by this method is live, and you can add new attribute 292 * by updating the map directly. Because of this design, there's no setter. 293 * 294 * 295 * @return 296 * always non-null 297 */ 298 public Map<QName, String> getOtherAttributes() { 299 return otherAttributes; 300 } 301 302 public String toString() { 303 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 304 final StringBuilder buffer = new StringBuilder(); 305 append(null, buffer, strategy); 306 return buffer.toString(); 307 } 308 309 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 310 strategy.appendStart(locator, this, buffer); 311 appendFields(locator, buffer, strategy); 312 strategy.appendEnd(locator, this, buffer); 313 return buffer; 314 } 315 316 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 317 { 318 BigInteger theAll; 319 theAll = this.getAll(); 320 strategy.appendField(locator, this, "all", buffer, theAll); 321 } 322 { 323 BigInteger theDurableTopicPrefetch; 324 theDurableTopicPrefetch = this.getDurableTopicPrefetch(); 325 strategy.appendField(locator, this, "durableTopicPrefetch", buffer, theDurableTopicPrefetch); 326 } 327 { 328 BigInteger theMaximumPendingMessageLimit; 329 theMaximumPendingMessageLimit = this.getMaximumPendingMessageLimit(); 330 strategy.appendField(locator, this, "maximumPendingMessageLimit", buffer, theMaximumPendingMessageLimit); 331 } 332 { 333 BigInteger theOptimizeDurableTopicPrefetch; 334 theOptimizeDurableTopicPrefetch = this.getOptimizeDurableTopicPrefetch(); 335 strategy.appendField(locator, this, "optimizeDurableTopicPrefetch", buffer, theOptimizeDurableTopicPrefetch); 336 } 337 { 338 BigInteger theQueueBrowserPrefetch; 339 theQueueBrowserPrefetch = this.getQueueBrowserPrefetch(); 340 strategy.appendField(locator, this, "queueBrowserPrefetch", buffer, theQueueBrowserPrefetch); 341 } 342 { 343 BigInteger theQueuePrefetch; 344 theQueuePrefetch = this.getQueuePrefetch(); 345 strategy.appendField(locator, this, "queuePrefetch", buffer, theQueuePrefetch); 346 } 347 { 348 BigInteger theTopicPrefetch; 349 theTopicPrefetch = this.getTopicPrefetch(); 350 strategy.appendField(locator, this, "topicPrefetch", buffer, theTopicPrefetch); 351 } 352 { 353 String theId; 354 theId = this.getId(); 355 strategy.appendField(locator, this, "id", buffer, theId); 356 } 357 return buffer; 358 } 359 360 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 361 int currentHashCode = 1; 362 { 363 BigInteger theAll; 364 theAll = this.getAll(); 365 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "all", theAll), currentHashCode, theAll); 366 } 367 { 368 BigInteger theDurableTopicPrefetch; 369 theDurableTopicPrefetch = this.getDurableTopicPrefetch(); 370 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "durableTopicPrefetch", theDurableTopicPrefetch), currentHashCode, theDurableTopicPrefetch); 371 } 372 { 373 BigInteger theMaximumPendingMessageLimit; 374 theMaximumPendingMessageLimit = this.getMaximumPendingMessageLimit(); 375 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maximumPendingMessageLimit", theMaximumPendingMessageLimit), currentHashCode, theMaximumPendingMessageLimit); 376 } 377 { 378 BigInteger theOptimizeDurableTopicPrefetch; 379 theOptimizeDurableTopicPrefetch = this.getOptimizeDurableTopicPrefetch(); 380 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "optimizeDurableTopicPrefetch", theOptimizeDurableTopicPrefetch), currentHashCode, theOptimizeDurableTopicPrefetch); 381 } 382 { 383 BigInteger theQueueBrowserPrefetch; 384 theQueueBrowserPrefetch = this.getQueueBrowserPrefetch(); 385 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queueBrowserPrefetch", theQueueBrowserPrefetch), currentHashCode, theQueueBrowserPrefetch); 386 } 387 { 388 BigInteger theQueuePrefetch; 389 theQueuePrefetch = this.getQueuePrefetch(); 390 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queuePrefetch", theQueuePrefetch), currentHashCode, theQueuePrefetch); 391 } 392 { 393 BigInteger theTopicPrefetch; 394 theTopicPrefetch = this.getTopicPrefetch(); 395 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "topicPrefetch", theTopicPrefetch), currentHashCode, theTopicPrefetch); 396 } 397 { 398 String theId; 399 theId = this.getId(); 400 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); 401 } 402 return currentHashCode; 403 } 404 405 public int hashCode() { 406 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 407 return this.hashCode(null, strategy); 408 } 409 410 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 411 if (!(object instanceof DtoPrefetchPolicy)) { 412 return false; 413 } 414 if (this == object) { 415 return true; 416 } 417 final DtoPrefetchPolicy that = ((DtoPrefetchPolicy) object); 418 { 419 BigInteger lhsAll; 420 lhsAll = this.getAll(); 421 BigInteger rhsAll; 422 rhsAll = that.getAll(); 423 if (!strategy.equals(LocatorUtils.property(thisLocator, "all", lhsAll), LocatorUtils.property(thatLocator, "all", rhsAll), lhsAll, rhsAll)) { 424 return false; 425 } 426 } 427 { 428 BigInteger lhsDurableTopicPrefetch; 429 lhsDurableTopicPrefetch = this.getDurableTopicPrefetch(); 430 BigInteger rhsDurableTopicPrefetch; 431 rhsDurableTopicPrefetch = that.getDurableTopicPrefetch(); 432 if (!strategy.equals(LocatorUtils.property(thisLocator, "durableTopicPrefetch", lhsDurableTopicPrefetch), LocatorUtils.property(thatLocator, "durableTopicPrefetch", rhsDurableTopicPrefetch), lhsDurableTopicPrefetch, rhsDurableTopicPrefetch)) { 433 return false; 434 } 435 } 436 { 437 BigInteger lhsMaximumPendingMessageLimit; 438 lhsMaximumPendingMessageLimit = this.getMaximumPendingMessageLimit(); 439 BigInteger rhsMaximumPendingMessageLimit; 440 rhsMaximumPendingMessageLimit = that.getMaximumPendingMessageLimit(); 441 if (!strategy.equals(LocatorUtils.property(thisLocator, "maximumPendingMessageLimit", lhsMaximumPendingMessageLimit), LocatorUtils.property(thatLocator, "maximumPendingMessageLimit", rhsMaximumPendingMessageLimit), lhsMaximumPendingMessageLimit, rhsMaximumPendingMessageLimit)) { 442 return false; 443 } 444 } 445 { 446 BigInteger lhsOptimizeDurableTopicPrefetch; 447 lhsOptimizeDurableTopicPrefetch = this.getOptimizeDurableTopicPrefetch(); 448 BigInteger rhsOptimizeDurableTopicPrefetch; 449 rhsOptimizeDurableTopicPrefetch = that.getOptimizeDurableTopicPrefetch(); 450 if (!strategy.equals(LocatorUtils.property(thisLocator, "optimizeDurableTopicPrefetch", lhsOptimizeDurableTopicPrefetch), LocatorUtils.property(thatLocator, "optimizeDurableTopicPrefetch", rhsOptimizeDurableTopicPrefetch), lhsOptimizeDurableTopicPrefetch, rhsOptimizeDurableTopicPrefetch)) { 451 return false; 452 } 453 } 454 { 455 BigInteger lhsQueueBrowserPrefetch; 456 lhsQueueBrowserPrefetch = this.getQueueBrowserPrefetch(); 457 BigInteger rhsQueueBrowserPrefetch; 458 rhsQueueBrowserPrefetch = that.getQueueBrowserPrefetch(); 459 if (!strategy.equals(LocatorUtils.property(thisLocator, "queueBrowserPrefetch", lhsQueueBrowserPrefetch), LocatorUtils.property(thatLocator, "queueBrowserPrefetch", rhsQueueBrowserPrefetch), lhsQueueBrowserPrefetch, rhsQueueBrowserPrefetch)) { 460 return false; 461 } 462 } 463 { 464 BigInteger lhsQueuePrefetch; 465 lhsQueuePrefetch = this.getQueuePrefetch(); 466 BigInteger rhsQueuePrefetch; 467 rhsQueuePrefetch = that.getQueuePrefetch(); 468 if (!strategy.equals(LocatorUtils.property(thisLocator, "queuePrefetch", lhsQueuePrefetch), LocatorUtils.property(thatLocator, "queuePrefetch", rhsQueuePrefetch), lhsQueuePrefetch, rhsQueuePrefetch)) { 469 return false; 470 } 471 } 472 { 473 BigInteger lhsTopicPrefetch; 474 lhsTopicPrefetch = this.getTopicPrefetch(); 475 BigInteger rhsTopicPrefetch; 476 rhsTopicPrefetch = that.getTopicPrefetch(); 477 if (!strategy.equals(LocatorUtils.property(thisLocator, "topicPrefetch", lhsTopicPrefetch), LocatorUtils.property(thatLocator, "topicPrefetch", rhsTopicPrefetch), lhsTopicPrefetch, rhsTopicPrefetch)) { 478 return false; 479 } 480 } 481 { 482 String lhsId; 483 lhsId = this.getId(); 484 String rhsId; 485 rhsId = that.getId(); 486 if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { 487 return false; 488 } 489 } 490 return true; 491 } 492 493 public boolean equals(Object object) { 494 final EqualsStrategy strategy = new ElementAwareEqualsStrategy(); 495 return equals(null, null, object, strategy); 496 } 497 498}