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: 2019.12.02 at 07:37:45 AM EST 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="inputStreamPrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 050 * <attribute name="maximumPendingMessageLimit" type="{http://www.w3.org/2001/XMLSchema}integer" /> 051 * <attribute name="optimizeDurableTopicPrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 052 * <attribute name="queueBrowserPrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 053 * <attribute name="queuePrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 054 * <attribute name="topicPrefetch" type="{http://www.w3.org/2001/XMLSchema}integer" /> 055 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 056 * <anyAttribute processContents='lax' namespace='##other'/> 057 * </restriction> 058 * </complexContent> 059 * </complexType> 060 * </pre> 061 * 062 * 063 */ 064@XmlAccessorType(XmlAccessType.FIELD) 065@XmlType(name = "") 066@XmlRootElement(name = "prefetchPolicy") 067public class DtoPrefetchPolicy 068 implements Equals, HashCode, ToString 069{ 070 071 @XmlAttribute(name = "all") 072 protected BigInteger all; 073 @XmlAttribute(name = "durableTopicPrefetch") 074 protected BigInteger durableTopicPrefetch; 075 @XmlAttribute(name = "inputStreamPrefetch") 076 protected BigInteger inputStreamPrefetch; 077 @XmlAttribute(name = "maximumPendingMessageLimit") 078 protected BigInteger maximumPendingMessageLimit; 079 @XmlAttribute(name = "optimizeDurableTopicPrefetch") 080 protected BigInteger optimizeDurableTopicPrefetch; 081 @XmlAttribute(name = "queueBrowserPrefetch") 082 protected BigInteger queueBrowserPrefetch; 083 @XmlAttribute(name = "queuePrefetch") 084 protected BigInteger queuePrefetch; 085 @XmlAttribute(name = "topicPrefetch") 086 protected BigInteger topicPrefetch; 087 @XmlAttribute(name = "id") 088 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 089 @XmlID 090 @XmlSchemaType(name = "ID") 091 protected String id; 092 @XmlAnyAttribute 093 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 094 095 /** 096 * Gets the value of the all property. 097 * 098 * @return 099 * possible object is 100 * {@link BigInteger } 101 * 102 */ 103 public BigInteger getAll() { 104 return all; 105 } 106 107 /** 108 * Sets the value of the all property. 109 * 110 * @param value 111 * allowed object is 112 * {@link BigInteger } 113 * 114 */ 115 public void setAll(BigInteger value) { 116 this.all = value; 117 } 118 119 /** 120 * Gets the value of the durableTopicPrefetch property. 121 * 122 * @return 123 * possible object is 124 * {@link BigInteger } 125 * 126 */ 127 public BigInteger getDurableTopicPrefetch() { 128 return durableTopicPrefetch; 129 } 130 131 /** 132 * Sets the value of the durableTopicPrefetch property. 133 * 134 * @param value 135 * allowed object is 136 * {@link BigInteger } 137 * 138 */ 139 public void setDurableTopicPrefetch(BigInteger value) { 140 this.durableTopicPrefetch = value; 141 } 142 143 /** 144 * Gets the value of the inputStreamPrefetch property. 145 * 146 * @return 147 * possible object is 148 * {@link BigInteger } 149 * 150 */ 151 public BigInteger getInputStreamPrefetch() { 152 return inputStreamPrefetch; 153 } 154 155 /** 156 * Sets the value of the inputStreamPrefetch property. 157 * 158 * @param value 159 * allowed object is 160 * {@link BigInteger } 161 * 162 */ 163 public void setInputStreamPrefetch(BigInteger value) { 164 this.inputStreamPrefetch = value; 165 } 166 167 /** 168 * Gets the value of the maximumPendingMessageLimit property. 169 * 170 * @return 171 * possible object is 172 * {@link BigInteger } 173 * 174 */ 175 public BigInteger getMaximumPendingMessageLimit() { 176 return maximumPendingMessageLimit; 177 } 178 179 /** 180 * Sets the value of the maximumPendingMessageLimit property. 181 * 182 * @param value 183 * allowed object is 184 * {@link BigInteger } 185 * 186 */ 187 public void setMaximumPendingMessageLimit(BigInteger value) { 188 this.maximumPendingMessageLimit = value; 189 } 190 191 /** 192 * Gets the value of the optimizeDurableTopicPrefetch property. 193 * 194 * @return 195 * possible object is 196 * {@link BigInteger } 197 * 198 */ 199 public BigInteger getOptimizeDurableTopicPrefetch() { 200 return optimizeDurableTopicPrefetch; 201 } 202 203 /** 204 * Sets the value of the optimizeDurableTopicPrefetch property. 205 * 206 * @param value 207 * allowed object is 208 * {@link BigInteger } 209 * 210 */ 211 public void setOptimizeDurableTopicPrefetch(BigInteger value) { 212 this.optimizeDurableTopicPrefetch = value; 213 } 214 215 /** 216 * Gets the value of the queueBrowserPrefetch property. 217 * 218 * @return 219 * possible object is 220 * {@link BigInteger } 221 * 222 */ 223 public BigInteger getQueueBrowserPrefetch() { 224 return queueBrowserPrefetch; 225 } 226 227 /** 228 * Sets the value of the queueBrowserPrefetch property. 229 * 230 * @param value 231 * allowed object is 232 * {@link BigInteger } 233 * 234 */ 235 public void setQueueBrowserPrefetch(BigInteger value) { 236 this.queueBrowserPrefetch = value; 237 } 238 239 /** 240 * Gets the value of the queuePrefetch property. 241 * 242 * @return 243 * possible object is 244 * {@link BigInteger } 245 * 246 */ 247 public BigInteger getQueuePrefetch() { 248 return queuePrefetch; 249 } 250 251 /** 252 * Sets the value of the queuePrefetch property. 253 * 254 * @param value 255 * allowed object is 256 * {@link BigInteger } 257 * 258 */ 259 public void setQueuePrefetch(BigInteger value) { 260 this.queuePrefetch = value; 261 } 262 263 /** 264 * Gets the value of the topicPrefetch property. 265 * 266 * @return 267 * possible object is 268 * {@link BigInteger } 269 * 270 */ 271 public BigInteger getTopicPrefetch() { 272 return topicPrefetch; 273 } 274 275 /** 276 * Sets the value of the topicPrefetch property. 277 * 278 * @param value 279 * allowed object is 280 * {@link BigInteger } 281 * 282 */ 283 public void setTopicPrefetch(BigInteger value) { 284 this.topicPrefetch = value; 285 } 286 287 /** 288 * Gets the value of the id property. 289 * 290 * @return 291 * possible object is 292 * {@link String } 293 * 294 */ 295 public String getId() { 296 return id; 297 } 298 299 /** 300 * Sets the value of the id property. 301 * 302 * @param value 303 * allowed object is 304 * {@link String } 305 * 306 */ 307 public void setId(String value) { 308 this.id = value; 309 } 310 311 /** 312 * Gets a map that contains attributes that aren't bound to any typed property on this class. 313 * 314 * <p> 315 * the map is keyed by the name of the attribute and 316 * the value is the string value of the attribute. 317 * 318 * the map returned by this method is live, and you can add new attribute 319 * by updating the map directly. Because of this design, there's no setter. 320 * 321 * 322 * @return 323 * always non-null 324 */ 325 public Map<QName, String> getOtherAttributes() { 326 return otherAttributes; 327 } 328 329 public String toString() { 330 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 331 final StringBuilder buffer = new StringBuilder(); 332 append(null, buffer, strategy); 333 return buffer.toString(); 334 } 335 336 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 337 strategy.appendStart(locator, this, buffer); 338 appendFields(locator, buffer, strategy); 339 strategy.appendEnd(locator, this, buffer); 340 return buffer; 341 } 342 343 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 344 { 345 BigInteger theAll; 346 theAll = this.getAll(); 347 strategy.appendField(locator, this, "all", buffer, theAll); 348 } 349 { 350 BigInteger theDurableTopicPrefetch; 351 theDurableTopicPrefetch = this.getDurableTopicPrefetch(); 352 strategy.appendField(locator, this, "durableTopicPrefetch", buffer, theDurableTopicPrefetch); 353 } 354 { 355 BigInteger theInputStreamPrefetch; 356 theInputStreamPrefetch = this.getInputStreamPrefetch(); 357 strategy.appendField(locator, this, "inputStreamPrefetch", buffer, theInputStreamPrefetch); 358 } 359 { 360 BigInteger theMaximumPendingMessageLimit; 361 theMaximumPendingMessageLimit = this.getMaximumPendingMessageLimit(); 362 strategy.appendField(locator, this, "maximumPendingMessageLimit", buffer, theMaximumPendingMessageLimit); 363 } 364 { 365 BigInteger theOptimizeDurableTopicPrefetch; 366 theOptimizeDurableTopicPrefetch = this.getOptimizeDurableTopicPrefetch(); 367 strategy.appendField(locator, this, "optimizeDurableTopicPrefetch", buffer, theOptimizeDurableTopicPrefetch); 368 } 369 { 370 BigInteger theQueueBrowserPrefetch; 371 theQueueBrowserPrefetch = this.getQueueBrowserPrefetch(); 372 strategy.appendField(locator, this, "queueBrowserPrefetch", buffer, theQueueBrowserPrefetch); 373 } 374 { 375 BigInteger theQueuePrefetch; 376 theQueuePrefetch = this.getQueuePrefetch(); 377 strategy.appendField(locator, this, "queuePrefetch", buffer, theQueuePrefetch); 378 } 379 { 380 BigInteger theTopicPrefetch; 381 theTopicPrefetch = this.getTopicPrefetch(); 382 strategy.appendField(locator, this, "topicPrefetch", buffer, theTopicPrefetch); 383 } 384 { 385 String theId; 386 theId = this.getId(); 387 strategy.appendField(locator, this, "id", buffer, theId); 388 } 389 return buffer; 390 } 391 392 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 393 int currentHashCode = 1; 394 { 395 BigInteger theAll; 396 theAll = this.getAll(); 397 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "all", theAll), currentHashCode, theAll); 398 } 399 { 400 BigInteger theDurableTopicPrefetch; 401 theDurableTopicPrefetch = this.getDurableTopicPrefetch(); 402 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "durableTopicPrefetch", theDurableTopicPrefetch), currentHashCode, theDurableTopicPrefetch); 403 } 404 { 405 BigInteger theInputStreamPrefetch; 406 theInputStreamPrefetch = this.getInputStreamPrefetch(); 407 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "inputStreamPrefetch", theInputStreamPrefetch), currentHashCode, theInputStreamPrefetch); 408 } 409 { 410 BigInteger theMaximumPendingMessageLimit; 411 theMaximumPendingMessageLimit = this.getMaximumPendingMessageLimit(); 412 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maximumPendingMessageLimit", theMaximumPendingMessageLimit), currentHashCode, theMaximumPendingMessageLimit); 413 } 414 { 415 BigInteger theOptimizeDurableTopicPrefetch; 416 theOptimizeDurableTopicPrefetch = this.getOptimizeDurableTopicPrefetch(); 417 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "optimizeDurableTopicPrefetch", theOptimizeDurableTopicPrefetch), currentHashCode, theOptimizeDurableTopicPrefetch); 418 } 419 { 420 BigInteger theQueueBrowserPrefetch; 421 theQueueBrowserPrefetch = this.getQueueBrowserPrefetch(); 422 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queueBrowserPrefetch", theQueueBrowserPrefetch), currentHashCode, theQueueBrowserPrefetch); 423 } 424 { 425 BigInteger theQueuePrefetch; 426 theQueuePrefetch = this.getQueuePrefetch(); 427 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queuePrefetch", theQueuePrefetch), currentHashCode, theQueuePrefetch); 428 } 429 { 430 BigInteger theTopicPrefetch; 431 theTopicPrefetch = this.getTopicPrefetch(); 432 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "topicPrefetch", theTopicPrefetch), currentHashCode, theTopicPrefetch); 433 } 434 { 435 String theId; 436 theId = this.getId(); 437 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); 438 } 439 return currentHashCode; 440 } 441 442 public int hashCode() { 443 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 444 return this.hashCode(null, strategy); 445 } 446 447 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 448 if (!(object instanceof DtoPrefetchPolicy)) { 449 return false; 450 } 451 if (this == object) { 452 return true; 453 } 454 final DtoPrefetchPolicy that = ((DtoPrefetchPolicy) object); 455 { 456 BigInteger lhsAll; 457 lhsAll = this.getAll(); 458 BigInteger rhsAll; 459 rhsAll = that.getAll(); 460 if (!strategy.equals(LocatorUtils.property(thisLocator, "all", lhsAll), LocatorUtils.property(thatLocator, "all", rhsAll), lhsAll, rhsAll)) { 461 return false; 462 } 463 } 464 { 465 BigInteger lhsDurableTopicPrefetch; 466 lhsDurableTopicPrefetch = this.getDurableTopicPrefetch(); 467 BigInteger rhsDurableTopicPrefetch; 468 rhsDurableTopicPrefetch = that.getDurableTopicPrefetch(); 469 if (!strategy.equals(LocatorUtils.property(thisLocator, "durableTopicPrefetch", lhsDurableTopicPrefetch), LocatorUtils.property(thatLocator, "durableTopicPrefetch", rhsDurableTopicPrefetch), lhsDurableTopicPrefetch, rhsDurableTopicPrefetch)) { 470 return false; 471 } 472 } 473 { 474 BigInteger lhsInputStreamPrefetch; 475 lhsInputStreamPrefetch = this.getInputStreamPrefetch(); 476 BigInteger rhsInputStreamPrefetch; 477 rhsInputStreamPrefetch = that.getInputStreamPrefetch(); 478 if (!strategy.equals(LocatorUtils.property(thisLocator, "inputStreamPrefetch", lhsInputStreamPrefetch), LocatorUtils.property(thatLocator, "inputStreamPrefetch", rhsInputStreamPrefetch), lhsInputStreamPrefetch, rhsInputStreamPrefetch)) { 479 return false; 480 } 481 } 482 { 483 BigInteger lhsMaximumPendingMessageLimit; 484 lhsMaximumPendingMessageLimit = this.getMaximumPendingMessageLimit(); 485 BigInteger rhsMaximumPendingMessageLimit; 486 rhsMaximumPendingMessageLimit = that.getMaximumPendingMessageLimit(); 487 if (!strategy.equals(LocatorUtils.property(thisLocator, "maximumPendingMessageLimit", lhsMaximumPendingMessageLimit), LocatorUtils.property(thatLocator, "maximumPendingMessageLimit", rhsMaximumPendingMessageLimit), lhsMaximumPendingMessageLimit, rhsMaximumPendingMessageLimit)) { 488 return false; 489 } 490 } 491 { 492 BigInteger lhsOptimizeDurableTopicPrefetch; 493 lhsOptimizeDurableTopicPrefetch = this.getOptimizeDurableTopicPrefetch(); 494 BigInteger rhsOptimizeDurableTopicPrefetch; 495 rhsOptimizeDurableTopicPrefetch = that.getOptimizeDurableTopicPrefetch(); 496 if (!strategy.equals(LocatorUtils.property(thisLocator, "optimizeDurableTopicPrefetch", lhsOptimizeDurableTopicPrefetch), LocatorUtils.property(thatLocator, "optimizeDurableTopicPrefetch", rhsOptimizeDurableTopicPrefetch), lhsOptimizeDurableTopicPrefetch, rhsOptimizeDurableTopicPrefetch)) { 497 return false; 498 } 499 } 500 { 501 BigInteger lhsQueueBrowserPrefetch; 502 lhsQueueBrowserPrefetch = this.getQueueBrowserPrefetch(); 503 BigInteger rhsQueueBrowserPrefetch; 504 rhsQueueBrowserPrefetch = that.getQueueBrowserPrefetch(); 505 if (!strategy.equals(LocatorUtils.property(thisLocator, "queueBrowserPrefetch", lhsQueueBrowserPrefetch), LocatorUtils.property(thatLocator, "queueBrowserPrefetch", rhsQueueBrowserPrefetch), lhsQueueBrowserPrefetch, rhsQueueBrowserPrefetch)) { 506 return false; 507 } 508 } 509 { 510 BigInteger lhsQueuePrefetch; 511 lhsQueuePrefetch = this.getQueuePrefetch(); 512 BigInteger rhsQueuePrefetch; 513 rhsQueuePrefetch = that.getQueuePrefetch(); 514 if (!strategy.equals(LocatorUtils.property(thisLocator, "queuePrefetch", lhsQueuePrefetch), LocatorUtils.property(thatLocator, "queuePrefetch", rhsQueuePrefetch), lhsQueuePrefetch, rhsQueuePrefetch)) { 515 return false; 516 } 517 } 518 { 519 BigInteger lhsTopicPrefetch; 520 lhsTopicPrefetch = this.getTopicPrefetch(); 521 BigInteger rhsTopicPrefetch; 522 rhsTopicPrefetch = that.getTopicPrefetch(); 523 if (!strategy.equals(LocatorUtils.property(thisLocator, "topicPrefetch", lhsTopicPrefetch), LocatorUtils.property(thatLocator, "topicPrefetch", rhsTopicPrefetch), lhsTopicPrefetch, rhsTopicPrefetch)) { 524 return false; 525 } 526 } 527 { 528 String lhsId; 529 lhsId = this.getId(); 530 String rhsId; 531 rhsId = that.getId(); 532 if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { 533 return false; 534 } 535 } 536 return true; 537 } 538 539 public boolean equals(Object object) { 540 final EqualsStrategy strategy = new ElementAwareEqualsStrategy(); 541 return equals(null, null, object, strategy); 542 } 543 544}