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.03.15 at 09:00:08 AM EDT 006// 007 008 009package org.apache.activemq.schema.core; 010 011import java.util.ArrayList; 012import java.util.HashMap; 013import java.util.List; 014import java.util.Map; 015import javax.xml.bind.JAXBElement; 016import javax.xml.bind.annotation.XmlAccessType; 017import javax.xml.bind.annotation.XmlAccessorType; 018import javax.xml.bind.annotation.XmlAnyAttribute; 019import javax.xml.bind.annotation.XmlAnyElement; 020import javax.xml.bind.annotation.XmlAttribute; 021import javax.xml.bind.annotation.XmlElementRef; 022import javax.xml.bind.annotation.XmlElementRefs; 023import javax.xml.bind.annotation.XmlID; 024import javax.xml.bind.annotation.XmlRootElement; 025import javax.xml.bind.annotation.XmlSchemaType; 026import javax.xml.bind.annotation.XmlType; 027import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 028import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 029import javax.xml.namespace.QName; 030import org.jvnet.jaxb2_commons.lang.Equals; 031import org.jvnet.jaxb2_commons.lang.EqualsStrategy; 032import org.jvnet.jaxb2_commons.lang.HashCode; 033import org.jvnet.jaxb2_commons.lang.HashCodeStrategy; 034import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy; 035import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy; 036import org.jvnet.jaxb2_commons.lang.ToString; 037import org.jvnet.jaxb2_commons.lang.ToStringStrategy; 038import org.jvnet.jaxb2_commons.locator.ObjectLocator; 039import org.jvnet.jaxb2_commons.locator.util.LocatorUtils; 040 041 042/** 043 * <p>Java class for anonymous complex type. 044 * 045 * <p>The following schema fragment specifies the expected content contained within this class. 046 * 047 * <pre> 048 * <complexType> 049 * <complexContent> 050 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 051 * <choice maxOccurs="unbounded" minOccurs="0"> 052 * <choice> 053 * <element name="adminACLs" maxOccurs="unbounded" minOccurs="0"> 054 * <complexType> 055 * <complexContent> 056 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 057 * <sequence maxOccurs="unbounded" minOccurs="0"> 058 * <any maxOccurs="unbounded" minOccurs="0"/> 059 * </sequence> 060 * </restriction> 061 * </complexContent> 062 * </complexType> 063 * </element> 064 * <element name="destination" minOccurs="0"> 065 * <complexType> 066 * <complexContent> 067 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 068 * <choice minOccurs="0"> 069 * <element ref="{http://activemq.apache.org/schema/core}queue"/> 070 * <element ref="{http://activemq.apache.org/schema/core}tempQueue"/> 071 * <element ref="{http://activemq.apache.org/schema/core}tempTopic"/> 072 * <element ref="{http://activemq.apache.org/schema/core}topic"/> 073 * <any namespace='##other'/> 074 * </choice> 075 * </restriction> 076 * </complexContent> 077 * </complexType> 078 * </element> 079 * <element name="readACLs" maxOccurs="unbounded" minOccurs="0"> 080 * <complexType> 081 * <complexContent> 082 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 083 * <sequence maxOccurs="unbounded" minOccurs="0"> 084 * <any maxOccurs="unbounded" minOccurs="0"/> 085 * </sequence> 086 * </restriction> 087 * </complexContent> 088 * </complexType> 089 * </element> 090 * <element name="writeACLs" maxOccurs="unbounded" minOccurs="0"> 091 * <complexType> 092 * <complexContent> 093 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 094 * <sequence maxOccurs="unbounded" minOccurs="0"> 095 * <any maxOccurs="unbounded" minOccurs="0"/> 096 * </sequence> 097 * </restriction> 098 * </complexContent> 099 * </complexType> 100 * </element> 101 * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/> 102 * </choice> 103 * </choice> 104 * <attribute name="admin" type="{http://www.w3.org/2001/XMLSchema}string" /> 105 * <attribute name="destination" type="{http://www.w3.org/2001/XMLSchema}string" /> 106 * <attribute name="groupClass" type="{http://www.w3.org/2001/XMLSchema}string" /> 107 * <attribute name="queue" type="{http://www.w3.org/2001/XMLSchema}string" /> 108 * <attribute name="read" type="{http://www.w3.org/2001/XMLSchema}string" /> 109 * <attribute name="tempQueue" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 110 * <attribute name="tempTopic" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 111 * <attribute name="topic" type="{http://www.w3.org/2001/XMLSchema}string" /> 112 * <attribute name="write" type="{http://www.w3.org/2001/XMLSchema}string" /> 113 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 114 * <anyAttribute processContents='lax' namespace='##other'/> 115 * </restriction> 116 * </complexContent> 117 * </complexType> 118 * </pre> 119 * 120 * 121 */ 122@XmlAccessorType(XmlAccessType.FIELD) 123@XmlType(name = "", propOrder = { 124 "adminACLsOrDestinationOrReadACLs" 125}) 126@XmlRootElement(name = "authorizationEntry") 127public class DtoAuthorizationEntry 128 implements Equals, HashCode, ToString 129{ 130 131 @XmlElementRefs({ 132 @XmlElementRef(name = "adminACLs", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false), 133 @XmlElementRef(name = "destination", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false), 134 @XmlElementRef(name = "readACLs", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false), 135 @XmlElementRef(name = "writeACLs", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false) 136 }) 137 @XmlAnyElement(lax = true) 138 protected List<Object> adminACLsOrDestinationOrReadACLs; 139 @XmlAttribute(name = "admin") 140 protected String admin; 141 @XmlAttribute(name = "destination") 142 protected String destination; 143 @XmlAttribute(name = "groupClass") 144 protected String groupClass; 145 @XmlAttribute(name = "queue") 146 protected String queue; 147 @XmlAttribute(name = "read") 148 protected String read; 149 @XmlAttribute(name = "tempQueue") 150 protected Boolean tempQueue; 151 @XmlAttribute(name = "tempTopic") 152 protected Boolean tempTopic; 153 @XmlAttribute(name = "topic") 154 protected String topic; 155 @XmlAttribute(name = "write") 156 protected String write; 157 @XmlAttribute(name = "id") 158 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 159 @XmlID 160 @XmlSchemaType(name = "ID") 161 protected String id; 162 @XmlAnyAttribute 163 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 164 165 /** 166 * Gets the value of the adminACLsOrDestinationOrReadACLs property. 167 * 168 * <p> 169 * This accessor method returns a reference to the live list, 170 * not a snapshot. Therefore any modification you make to the 171 * returned list will be present inside the JAXB object. 172 * This is why there is not a <CODE>set</CODE> method for the adminACLsOrDestinationOrReadACLs property. 173 * 174 * <p> 175 * For example, to add a new item, do as follows: 176 * <pre> 177 * getAdminACLsOrDestinationOrReadACLs().add(newItem); 178 * </pre> 179 * 180 * 181 * <p> 182 * Objects of the following type(s) are allowed in the list 183 * {@link JAXBElement }{@code <}{@link DtoAuthorizationEntry.WriteACLs }{@code >} 184 * {@link Object } 185 * {@link JAXBElement }{@code <}{@link DtoAuthorizationEntry.AdminACLs }{@code >} 186 * {@link JAXBElement }{@code <}{@link DtoAuthorizationEntry.Destination }{@code >} 187 * {@link JAXBElement }{@code <}{@link DtoAuthorizationEntry.ReadACLs }{@code >} 188 * 189 * 190 */ 191 public List<Object> getAdminACLsOrDestinationOrReadACLs() { 192 if (adminACLsOrDestinationOrReadACLs == null) { 193 adminACLsOrDestinationOrReadACLs = new ArrayList<Object>(); 194 } 195 return this.adminACLsOrDestinationOrReadACLs; 196 } 197 198 /** 199 * Gets the value of the admin property. 200 * 201 * @return 202 * possible object is 203 * {@link String } 204 * 205 */ 206 public String getAdmin() { 207 return admin; 208 } 209 210 /** 211 * Sets the value of the admin property. 212 * 213 * @param value 214 * allowed object is 215 * {@link String } 216 * 217 */ 218 public void setAdmin(String value) { 219 this.admin = value; 220 } 221 222 /** 223 * Gets the value of the destination property. 224 * 225 * @return 226 * possible object is 227 * {@link String } 228 * 229 */ 230 public String getDestination() { 231 return destination; 232 } 233 234 /** 235 * Sets the value of the destination property. 236 * 237 * @param value 238 * allowed object is 239 * {@link String } 240 * 241 */ 242 public void setDestination(String value) { 243 this.destination = value; 244 } 245 246 /** 247 * Gets the value of the groupClass property. 248 * 249 * @return 250 * possible object is 251 * {@link String } 252 * 253 */ 254 public String getGroupClass() { 255 return groupClass; 256 } 257 258 /** 259 * Sets the value of the groupClass property. 260 * 261 * @param value 262 * allowed object is 263 * {@link String } 264 * 265 */ 266 public void setGroupClass(String value) { 267 this.groupClass = value; 268 } 269 270 /** 271 * Gets the value of the queue property. 272 * 273 * @return 274 * possible object is 275 * {@link String } 276 * 277 */ 278 public String getQueue() { 279 return queue; 280 } 281 282 /** 283 * Sets the value of the queue property. 284 * 285 * @param value 286 * allowed object is 287 * {@link String } 288 * 289 */ 290 public void setQueue(String value) { 291 this.queue = value; 292 } 293 294 /** 295 * Gets the value of the read property. 296 * 297 * @return 298 * possible object is 299 * {@link String } 300 * 301 */ 302 public String getRead() { 303 return read; 304 } 305 306 /** 307 * Sets the value of the read property. 308 * 309 * @param value 310 * allowed object is 311 * {@link String } 312 * 313 */ 314 public void setRead(String value) { 315 this.read = value; 316 } 317 318 /** 319 * Gets the value of the tempQueue property. 320 * 321 * @return 322 * possible object is 323 * {@link Boolean } 324 * 325 */ 326 public Boolean isTempQueue() { 327 return tempQueue; 328 } 329 330 /** 331 * Sets the value of the tempQueue property. 332 * 333 * @param value 334 * allowed object is 335 * {@link Boolean } 336 * 337 */ 338 public void setTempQueue(Boolean value) { 339 this.tempQueue = value; 340 } 341 342 /** 343 * Gets the value of the tempTopic property. 344 * 345 * @return 346 * possible object is 347 * {@link Boolean } 348 * 349 */ 350 public Boolean isTempTopic() { 351 return tempTopic; 352 } 353 354 /** 355 * Sets the value of the tempTopic property. 356 * 357 * @param value 358 * allowed object is 359 * {@link Boolean } 360 * 361 */ 362 public void setTempTopic(Boolean value) { 363 this.tempTopic = value; 364 } 365 366 /** 367 * Gets the value of the topic property. 368 * 369 * @return 370 * possible object is 371 * {@link String } 372 * 373 */ 374 public String getTopic() { 375 return topic; 376 } 377 378 /** 379 * Sets the value of the topic property. 380 * 381 * @param value 382 * allowed object is 383 * {@link String } 384 * 385 */ 386 public void setTopic(String value) { 387 this.topic = value; 388 } 389 390 /** 391 * Gets the value of the write property. 392 * 393 * @return 394 * possible object is 395 * {@link String } 396 * 397 */ 398 public String getWrite() { 399 return write; 400 } 401 402 /** 403 * Sets the value of the write property. 404 * 405 * @param value 406 * allowed object is 407 * {@link String } 408 * 409 */ 410 public void setWrite(String value) { 411 this.write = value; 412 } 413 414 /** 415 * Gets the value of the id property. 416 * 417 * @return 418 * possible object is 419 * {@link String } 420 * 421 */ 422 public String getId() { 423 return id; 424 } 425 426 /** 427 * Sets the value of the id property. 428 * 429 * @param value 430 * allowed object is 431 * {@link String } 432 * 433 */ 434 public void setId(String value) { 435 this.id = value; 436 } 437 438 /** 439 * Gets a map that contains attributes that aren't bound to any typed property on this class. 440 * 441 * <p> 442 * the map is keyed by the name of the attribute and 443 * the value is the string value of the attribute. 444 * 445 * the map returned by this method is live, and you can add new attribute 446 * by updating the map directly. Because of this design, there's no setter. 447 * 448 * 449 * @return 450 * always non-null 451 */ 452 public Map<QName, String> getOtherAttributes() { 453 return otherAttributes; 454 } 455 456 public String toString() { 457 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 458 final StringBuilder buffer = new StringBuilder(); 459 append(null, buffer, strategy); 460 return buffer.toString(); 461 } 462 463 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 464 strategy.appendStart(locator, this, buffer); 465 appendFields(locator, buffer, strategy); 466 strategy.appendEnd(locator, this, buffer); 467 return buffer; 468 } 469 470 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 471 { 472 List<Object> theAdminACLsOrDestinationOrReadACLs; 473 theAdminACLsOrDestinationOrReadACLs = (((this.adminACLsOrDestinationOrReadACLs!= null)&&(!this.adminACLsOrDestinationOrReadACLs.isEmpty()))?this.getAdminACLsOrDestinationOrReadACLs():null); 474 strategy.appendField(locator, this, "adminACLsOrDestinationOrReadACLs", buffer, theAdminACLsOrDestinationOrReadACLs); 475 } 476 { 477 String theAdmin; 478 theAdmin = this.getAdmin(); 479 strategy.appendField(locator, this, "admin", buffer, theAdmin); 480 } 481 { 482 String theDestination; 483 theDestination = this.getDestination(); 484 strategy.appendField(locator, this, "destination", buffer, theDestination); 485 } 486 { 487 String theGroupClass; 488 theGroupClass = this.getGroupClass(); 489 strategy.appendField(locator, this, "groupClass", buffer, theGroupClass); 490 } 491 { 492 String theQueue; 493 theQueue = this.getQueue(); 494 strategy.appendField(locator, this, "queue", buffer, theQueue); 495 } 496 { 497 String theRead; 498 theRead = this.getRead(); 499 strategy.appendField(locator, this, "read", buffer, theRead); 500 } 501 { 502 Boolean theTempQueue; 503 theTempQueue = this.isTempQueue(); 504 strategy.appendField(locator, this, "tempQueue", buffer, theTempQueue); 505 } 506 { 507 Boolean theTempTopic; 508 theTempTopic = this.isTempTopic(); 509 strategy.appendField(locator, this, "tempTopic", buffer, theTempTopic); 510 } 511 { 512 String theTopic; 513 theTopic = this.getTopic(); 514 strategy.appendField(locator, this, "topic", buffer, theTopic); 515 } 516 { 517 String theWrite; 518 theWrite = this.getWrite(); 519 strategy.appendField(locator, this, "write", buffer, theWrite); 520 } 521 { 522 String theId; 523 theId = this.getId(); 524 strategy.appendField(locator, this, "id", buffer, theId); 525 } 526 return buffer; 527 } 528 529 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 530 int currentHashCode = 1; 531 { 532 List<Object> theAdminACLsOrDestinationOrReadACLs; 533 theAdminACLsOrDestinationOrReadACLs = (((this.adminACLsOrDestinationOrReadACLs!= null)&&(!this.adminACLsOrDestinationOrReadACLs.isEmpty()))?this.getAdminACLsOrDestinationOrReadACLs():null); 534 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adminACLsOrDestinationOrReadACLs", theAdminACLsOrDestinationOrReadACLs), currentHashCode, theAdminACLsOrDestinationOrReadACLs); 535 } 536 { 537 String theAdmin; 538 theAdmin = this.getAdmin(); 539 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "admin", theAdmin), currentHashCode, theAdmin); 540 } 541 { 542 String theDestination; 543 theDestination = this.getDestination(); 544 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destination", theDestination), currentHashCode, theDestination); 545 } 546 { 547 String theGroupClass; 548 theGroupClass = this.getGroupClass(); 549 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "groupClass", theGroupClass), currentHashCode, theGroupClass); 550 } 551 { 552 String theQueue; 553 theQueue = this.getQueue(); 554 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queue", theQueue), currentHashCode, theQueue); 555 } 556 { 557 String theRead; 558 theRead = this.getRead(); 559 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "read", theRead), currentHashCode, theRead); 560 } 561 { 562 Boolean theTempQueue; 563 theTempQueue = this.isTempQueue(); 564 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tempQueue", theTempQueue), currentHashCode, theTempQueue); 565 } 566 { 567 Boolean theTempTopic; 568 theTempTopic = this.isTempTopic(); 569 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tempTopic", theTempTopic), currentHashCode, theTempTopic); 570 } 571 { 572 String theTopic; 573 theTopic = this.getTopic(); 574 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "topic", theTopic), currentHashCode, theTopic); 575 } 576 { 577 String theWrite; 578 theWrite = this.getWrite(); 579 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "write", theWrite), currentHashCode, theWrite); 580 } 581 { 582 String theId; 583 theId = this.getId(); 584 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); 585 } 586 return currentHashCode; 587 } 588 589 public int hashCode() { 590 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 591 return this.hashCode(null, strategy); 592 } 593 594 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 595 if (!(object instanceof DtoAuthorizationEntry)) { 596 return false; 597 } 598 if (this == object) { 599 return true; 600 } 601 final DtoAuthorizationEntry that = ((DtoAuthorizationEntry) object); 602 { 603 List<Object> lhsAdminACLsOrDestinationOrReadACLs; 604 lhsAdminACLsOrDestinationOrReadACLs = (((this.adminACLsOrDestinationOrReadACLs!= null)&&(!this.adminACLsOrDestinationOrReadACLs.isEmpty()))?this.getAdminACLsOrDestinationOrReadACLs():null); 605 List<Object> rhsAdminACLsOrDestinationOrReadACLs; 606 rhsAdminACLsOrDestinationOrReadACLs = (((that.adminACLsOrDestinationOrReadACLs!= null)&&(!that.adminACLsOrDestinationOrReadACLs.isEmpty()))?that.getAdminACLsOrDestinationOrReadACLs():null); 607 if (!strategy.equals(LocatorUtils.property(thisLocator, "adminACLsOrDestinationOrReadACLs", lhsAdminACLsOrDestinationOrReadACLs), LocatorUtils.property(thatLocator, "adminACLsOrDestinationOrReadACLs", rhsAdminACLsOrDestinationOrReadACLs), lhsAdminACLsOrDestinationOrReadACLs, rhsAdminACLsOrDestinationOrReadACLs)) { 608 return false; 609 } 610 } 611 { 612 String lhsAdmin; 613 lhsAdmin = this.getAdmin(); 614 String rhsAdmin; 615 rhsAdmin = that.getAdmin(); 616 if (!strategy.equals(LocatorUtils.property(thisLocator, "admin", lhsAdmin), LocatorUtils.property(thatLocator, "admin", rhsAdmin), lhsAdmin, rhsAdmin)) { 617 return false; 618 } 619 } 620 { 621 String lhsDestination; 622 lhsDestination = this.getDestination(); 623 String rhsDestination; 624 rhsDestination = that.getDestination(); 625 if (!strategy.equals(LocatorUtils.property(thisLocator, "destination", lhsDestination), LocatorUtils.property(thatLocator, "destination", rhsDestination), lhsDestination, rhsDestination)) { 626 return false; 627 } 628 } 629 { 630 String lhsGroupClass; 631 lhsGroupClass = this.getGroupClass(); 632 String rhsGroupClass; 633 rhsGroupClass = that.getGroupClass(); 634 if (!strategy.equals(LocatorUtils.property(thisLocator, "groupClass", lhsGroupClass), LocatorUtils.property(thatLocator, "groupClass", rhsGroupClass), lhsGroupClass, rhsGroupClass)) { 635 return false; 636 } 637 } 638 { 639 String lhsQueue; 640 lhsQueue = this.getQueue(); 641 String rhsQueue; 642 rhsQueue = that.getQueue(); 643 if (!strategy.equals(LocatorUtils.property(thisLocator, "queue", lhsQueue), LocatorUtils.property(thatLocator, "queue", rhsQueue), lhsQueue, rhsQueue)) { 644 return false; 645 } 646 } 647 { 648 String lhsRead; 649 lhsRead = this.getRead(); 650 String rhsRead; 651 rhsRead = that.getRead(); 652 if (!strategy.equals(LocatorUtils.property(thisLocator, "read", lhsRead), LocatorUtils.property(thatLocator, "read", rhsRead), lhsRead, rhsRead)) { 653 return false; 654 } 655 } 656 { 657 Boolean lhsTempQueue; 658 lhsTempQueue = this.isTempQueue(); 659 Boolean rhsTempQueue; 660 rhsTempQueue = that.isTempQueue(); 661 if (!strategy.equals(LocatorUtils.property(thisLocator, "tempQueue", lhsTempQueue), LocatorUtils.property(thatLocator, "tempQueue", rhsTempQueue), lhsTempQueue, rhsTempQueue)) { 662 return false; 663 } 664 } 665 { 666 Boolean lhsTempTopic; 667 lhsTempTopic = this.isTempTopic(); 668 Boolean rhsTempTopic; 669 rhsTempTopic = that.isTempTopic(); 670 if (!strategy.equals(LocatorUtils.property(thisLocator, "tempTopic", lhsTempTopic), LocatorUtils.property(thatLocator, "tempTopic", rhsTempTopic), lhsTempTopic, rhsTempTopic)) { 671 return false; 672 } 673 } 674 { 675 String lhsTopic; 676 lhsTopic = this.getTopic(); 677 String rhsTopic; 678 rhsTopic = that.getTopic(); 679 if (!strategy.equals(LocatorUtils.property(thisLocator, "topic", lhsTopic), LocatorUtils.property(thatLocator, "topic", rhsTopic), lhsTopic, rhsTopic)) { 680 return false; 681 } 682 } 683 { 684 String lhsWrite; 685 lhsWrite = this.getWrite(); 686 String rhsWrite; 687 rhsWrite = that.getWrite(); 688 if (!strategy.equals(LocatorUtils.property(thisLocator, "write", lhsWrite), LocatorUtils.property(thatLocator, "write", rhsWrite), lhsWrite, rhsWrite)) { 689 return false; 690 } 691 } 692 { 693 String lhsId; 694 lhsId = this.getId(); 695 String rhsId; 696 rhsId = that.getId(); 697 if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { 698 return false; 699 } 700 } 701 return true; 702 } 703 704 public boolean equals(Object object) { 705 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 706 return equals(null, null, object, strategy); 707 } 708 709 710 /** 711 * <p>Java class for anonymous complex type. 712 * 713 * <p>The following schema fragment specifies the expected content contained within this class. 714 * 715 * <pre> 716 * <complexType> 717 * <complexContent> 718 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 719 * <sequence maxOccurs="unbounded" minOccurs="0"> 720 * <any maxOccurs="unbounded" minOccurs="0"/> 721 * </sequence> 722 * </restriction> 723 * </complexContent> 724 * </complexType> 725 * </pre> 726 * 727 * 728 */ 729 @XmlAccessorType(XmlAccessType.FIELD) 730 @XmlType(name = "", propOrder = { 731 "any" 732 }) 733 public static class AdminACLs 734 implements Equals, HashCode, ToString 735 { 736 737 @XmlAnyElement(lax = true) 738 protected List<Object> any; 739 740 /** 741 * Gets the value of the any property. 742 * 743 * <p> 744 * This accessor method returns a reference to the live list, 745 * not a snapshot. Therefore any modification you make to the 746 * returned list will be present inside the JAXB object. 747 * This is why there is not a <CODE>set</CODE> method for the any property. 748 * 749 * <p> 750 * For example, to add a new item, do as follows: 751 * <pre> 752 * getAny().add(newItem); 753 * </pre> 754 * 755 * 756 * <p> 757 * Objects of the following type(s) are allowed in the list 758 * {@link Object } 759 * 760 * 761 */ 762 public List<Object> getAny() { 763 if (any == null) { 764 any = new ArrayList<Object>(); 765 } 766 return this.any; 767 } 768 769 public String toString() { 770 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 771 final StringBuilder buffer = new StringBuilder(); 772 append(null, buffer, strategy); 773 return buffer.toString(); 774 } 775 776 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 777 strategy.appendStart(locator, this, buffer); 778 appendFields(locator, buffer, strategy); 779 strategy.appendEnd(locator, this, buffer); 780 return buffer; 781 } 782 783 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 784 { 785 List<Object> theAny; 786 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 787 strategy.appendField(locator, this, "any", buffer, theAny); 788 } 789 return buffer; 790 } 791 792 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 793 int currentHashCode = 1; 794 { 795 List<Object> theAny; 796 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 797 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); 798 } 799 return currentHashCode; 800 } 801 802 public int hashCode() { 803 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 804 return this.hashCode(null, strategy); 805 } 806 807 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 808 if (!(object instanceof DtoAuthorizationEntry.AdminACLs)) { 809 return false; 810 } 811 if (this == object) { 812 return true; 813 } 814 final DtoAuthorizationEntry.AdminACLs that = ((DtoAuthorizationEntry.AdminACLs) object); 815 { 816 List<Object> lhsAny; 817 lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 818 List<Object> rhsAny; 819 rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null); 820 if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) { 821 return false; 822 } 823 } 824 return true; 825 } 826 827 public boolean equals(Object object) { 828 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 829 return equals(null, null, object, strategy); 830 } 831 832 } 833 834 835 /** 836 * <p>Java class for anonymous complex type. 837 * 838 * <p>The following schema fragment specifies the expected content contained within this class. 839 * 840 * <pre> 841 * <complexType> 842 * <complexContent> 843 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 844 * <choice minOccurs="0"> 845 * <element ref="{http://activemq.apache.org/schema/core}queue"/> 846 * <element ref="{http://activemq.apache.org/schema/core}tempQueue"/> 847 * <element ref="{http://activemq.apache.org/schema/core}tempTopic"/> 848 * <element ref="{http://activemq.apache.org/schema/core}topic"/> 849 * <any namespace='##other'/> 850 * </choice> 851 * </restriction> 852 * </complexContent> 853 * </complexType> 854 * </pre> 855 * 856 * 857 */ 858 @XmlAccessorType(XmlAccessType.FIELD) 859 @XmlType(name = "", propOrder = { 860 "queue", 861 "tempQueue", 862 "tempTopic", 863 "topic", 864 "any" 865 }) 866 public static class Destination 867 implements Equals, HashCode, ToString 868 { 869 870 protected DtoQueue queue; 871 protected DtoTempQueue tempQueue; 872 protected DtoTempTopic tempTopic; 873 protected DtoTopic topic; 874 @XmlAnyElement(lax = true) 875 protected Object any; 876 877 /** 878 * Gets the value of the queue property. 879 * 880 * @return 881 * possible object is 882 * {@link DtoQueue } 883 * 884 */ 885 public DtoQueue getQueue() { 886 return queue; 887 } 888 889 /** 890 * Sets the value of the queue property. 891 * 892 * @param value 893 * allowed object is 894 * {@link DtoQueue } 895 * 896 */ 897 public void setQueue(DtoQueue value) { 898 this.queue = value; 899 } 900 901 /** 902 * Gets the value of the tempQueue property. 903 * 904 * @return 905 * possible object is 906 * {@link DtoTempQueue } 907 * 908 */ 909 public DtoTempQueue getTempQueue() { 910 return tempQueue; 911 } 912 913 /** 914 * Sets the value of the tempQueue property. 915 * 916 * @param value 917 * allowed object is 918 * {@link DtoTempQueue } 919 * 920 */ 921 public void setTempQueue(DtoTempQueue value) { 922 this.tempQueue = value; 923 } 924 925 /** 926 * Gets the value of the tempTopic property. 927 * 928 * @return 929 * possible object is 930 * {@link DtoTempTopic } 931 * 932 */ 933 public DtoTempTopic getTempTopic() { 934 return tempTopic; 935 } 936 937 /** 938 * Sets the value of the tempTopic property. 939 * 940 * @param value 941 * allowed object is 942 * {@link DtoTempTopic } 943 * 944 */ 945 public void setTempTopic(DtoTempTopic value) { 946 this.tempTopic = value; 947 } 948 949 /** 950 * Gets the value of the topic property. 951 * 952 * @return 953 * possible object is 954 * {@link DtoTopic } 955 * 956 */ 957 public DtoTopic getTopic() { 958 return topic; 959 } 960 961 /** 962 * Sets the value of the topic property. 963 * 964 * @param value 965 * allowed object is 966 * {@link DtoTopic } 967 * 968 */ 969 public void setTopic(DtoTopic value) { 970 this.topic = value; 971 } 972 973 /** 974 * Gets the value of the any property. 975 * 976 * @return 977 * possible object is 978 * {@link Object } 979 * 980 */ 981 public Object getAny() { 982 return any; 983 } 984 985 /** 986 * Sets the value of the any property. 987 * 988 * @param value 989 * allowed object is 990 * {@link Object } 991 * 992 */ 993 public void setAny(Object value) { 994 this.any = value; 995 } 996 997 public String toString() { 998 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 999 final StringBuilder buffer = new StringBuilder(); 1000 append(null, buffer, strategy); 1001 return buffer.toString(); 1002 } 1003 1004 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1005 strategy.appendStart(locator, this, buffer); 1006 appendFields(locator, buffer, strategy); 1007 strategy.appendEnd(locator, this, buffer); 1008 return buffer; 1009 } 1010 1011 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1012 { 1013 DtoQueue theQueue; 1014 theQueue = this.getQueue(); 1015 strategy.appendField(locator, this, "queue", buffer, theQueue); 1016 } 1017 { 1018 DtoTempQueue theTempQueue; 1019 theTempQueue = this.getTempQueue(); 1020 strategy.appendField(locator, this, "tempQueue", buffer, theTempQueue); 1021 } 1022 { 1023 DtoTempTopic theTempTopic; 1024 theTempTopic = this.getTempTopic(); 1025 strategy.appendField(locator, this, "tempTopic", buffer, theTempTopic); 1026 } 1027 { 1028 DtoTopic theTopic; 1029 theTopic = this.getTopic(); 1030 strategy.appendField(locator, this, "topic", buffer, theTopic); 1031 } 1032 { 1033 Object theAny; 1034 theAny = this.getAny(); 1035 strategy.appendField(locator, this, "any", buffer, theAny); 1036 } 1037 return buffer; 1038 } 1039 1040 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 1041 int currentHashCode = 1; 1042 { 1043 DtoQueue theQueue; 1044 theQueue = this.getQueue(); 1045 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queue", theQueue), currentHashCode, theQueue); 1046 } 1047 { 1048 DtoTempQueue theTempQueue; 1049 theTempQueue = this.getTempQueue(); 1050 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tempQueue", theTempQueue), currentHashCode, theTempQueue); 1051 } 1052 { 1053 DtoTempTopic theTempTopic; 1054 theTempTopic = this.getTempTopic(); 1055 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tempTopic", theTempTopic), currentHashCode, theTempTopic); 1056 } 1057 { 1058 DtoTopic theTopic; 1059 theTopic = this.getTopic(); 1060 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "topic", theTopic), currentHashCode, theTopic); 1061 } 1062 { 1063 Object theAny; 1064 theAny = this.getAny(); 1065 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); 1066 } 1067 return currentHashCode; 1068 } 1069 1070 public int hashCode() { 1071 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 1072 return this.hashCode(null, strategy); 1073 } 1074 1075 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 1076 if (!(object instanceof DtoAuthorizationEntry.Destination)) { 1077 return false; 1078 } 1079 if (this == object) { 1080 return true; 1081 } 1082 final DtoAuthorizationEntry.Destination that = ((DtoAuthorizationEntry.Destination) object); 1083 { 1084 DtoQueue lhsQueue; 1085 lhsQueue = this.getQueue(); 1086 DtoQueue rhsQueue; 1087 rhsQueue = that.getQueue(); 1088 if (!strategy.equals(LocatorUtils.property(thisLocator, "queue", lhsQueue), LocatorUtils.property(thatLocator, "queue", rhsQueue), lhsQueue, rhsQueue)) { 1089 return false; 1090 } 1091 } 1092 { 1093 DtoTempQueue lhsTempQueue; 1094 lhsTempQueue = this.getTempQueue(); 1095 DtoTempQueue rhsTempQueue; 1096 rhsTempQueue = that.getTempQueue(); 1097 if (!strategy.equals(LocatorUtils.property(thisLocator, "tempQueue", lhsTempQueue), LocatorUtils.property(thatLocator, "tempQueue", rhsTempQueue), lhsTempQueue, rhsTempQueue)) { 1098 return false; 1099 } 1100 } 1101 { 1102 DtoTempTopic lhsTempTopic; 1103 lhsTempTopic = this.getTempTopic(); 1104 DtoTempTopic rhsTempTopic; 1105 rhsTempTopic = that.getTempTopic(); 1106 if (!strategy.equals(LocatorUtils.property(thisLocator, "tempTopic", lhsTempTopic), LocatorUtils.property(thatLocator, "tempTopic", rhsTempTopic), lhsTempTopic, rhsTempTopic)) { 1107 return false; 1108 } 1109 } 1110 { 1111 DtoTopic lhsTopic; 1112 lhsTopic = this.getTopic(); 1113 DtoTopic rhsTopic; 1114 rhsTopic = that.getTopic(); 1115 if (!strategy.equals(LocatorUtils.property(thisLocator, "topic", lhsTopic), LocatorUtils.property(thatLocator, "topic", rhsTopic), lhsTopic, rhsTopic)) { 1116 return false; 1117 } 1118 } 1119 { 1120 Object lhsAny; 1121 lhsAny = this.getAny(); 1122 Object rhsAny; 1123 rhsAny = that.getAny(); 1124 if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) { 1125 return false; 1126 } 1127 } 1128 return true; 1129 } 1130 1131 public boolean equals(Object object) { 1132 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 1133 return equals(null, null, object, strategy); 1134 } 1135 1136 } 1137 1138 1139 /** 1140 * <p>Java class for anonymous complex type. 1141 * 1142 * <p>The following schema fragment specifies the expected content contained within this class. 1143 * 1144 * <pre> 1145 * <complexType> 1146 * <complexContent> 1147 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1148 * <sequence maxOccurs="unbounded" minOccurs="0"> 1149 * <any maxOccurs="unbounded" minOccurs="0"/> 1150 * </sequence> 1151 * </restriction> 1152 * </complexContent> 1153 * </complexType> 1154 * </pre> 1155 * 1156 * 1157 */ 1158 @XmlAccessorType(XmlAccessType.FIELD) 1159 @XmlType(name = "", propOrder = { 1160 "any" 1161 }) 1162 public static class ReadACLs 1163 implements Equals, HashCode, ToString 1164 { 1165 1166 @XmlAnyElement(lax = true) 1167 protected List<Object> any; 1168 1169 /** 1170 * Gets the value of the any property. 1171 * 1172 * <p> 1173 * This accessor method returns a reference to the live list, 1174 * not a snapshot. Therefore any modification you make to the 1175 * returned list will be present inside the JAXB object. 1176 * This is why there is not a <CODE>set</CODE> method for the any property. 1177 * 1178 * <p> 1179 * For example, to add a new item, do as follows: 1180 * <pre> 1181 * getAny().add(newItem); 1182 * </pre> 1183 * 1184 * 1185 * <p> 1186 * Objects of the following type(s) are allowed in the list 1187 * {@link Object } 1188 * 1189 * 1190 */ 1191 public List<Object> getAny() { 1192 if (any == null) { 1193 any = new ArrayList<Object>(); 1194 } 1195 return this.any; 1196 } 1197 1198 public String toString() { 1199 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 1200 final StringBuilder buffer = new StringBuilder(); 1201 append(null, buffer, strategy); 1202 return buffer.toString(); 1203 } 1204 1205 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1206 strategy.appendStart(locator, this, buffer); 1207 appendFields(locator, buffer, strategy); 1208 strategy.appendEnd(locator, this, buffer); 1209 return buffer; 1210 } 1211 1212 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1213 { 1214 List<Object> theAny; 1215 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1216 strategy.appendField(locator, this, "any", buffer, theAny); 1217 } 1218 return buffer; 1219 } 1220 1221 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 1222 int currentHashCode = 1; 1223 { 1224 List<Object> theAny; 1225 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1226 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); 1227 } 1228 return currentHashCode; 1229 } 1230 1231 public int hashCode() { 1232 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 1233 return this.hashCode(null, strategy); 1234 } 1235 1236 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 1237 if (!(object instanceof DtoAuthorizationEntry.ReadACLs)) { 1238 return false; 1239 } 1240 if (this == object) { 1241 return true; 1242 } 1243 final DtoAuthorizationEntry.ReadACLs that = ((DtoAuthorizationEntry.ReadACLs) object); 1244 { 1245 List<Object> lhsAny; 1246 lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1247 List<Object> rhsAny; 1248 rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null); 1249 if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) { 1250 return false; 1251 } 1252 } 1253 return true; 1254 } 1255 1256 public boolean equals(Object object) { 1257 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 1258 return equals(null, null, object, strategy); 1259 } 1260 1261 } 1262 1263 1264 /** 1265 * <p>Java class for anonymous complex type. 1266 * 1267 * <p>The following schema fragment specifies the expected content contained within this class. 1268 * 1269 * <pre> 1270 * <complexType> 1271 * <complexContent> 1272 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1273 * <sequence maxOccurs="unbounded" minOccurs="0"> 1274 * <any maxOccurs="unbounded" minOccurs="0"/> 1275 * </sequence> 1276 * </restriction> 1277 * </complexContent> 1278 * </complexType> 1279 * </pre> 1280 * 1281 * 1282 */ 1283 @XmlAccessorType(XmlAccessType.FIELD) 1284 @XmlType(name = "", propOrder = { 1285 "any" 1286 }) 1287 public static class WriteACLs 1288 implements Equals, HashCode, ToString 1289 { 1290 1291 @XmlAnyElement(lax = true) 1292 protected List<Object> any; 1293 1294 /** 1295 * Gets the value of the any property. 1296 * 1297 * <p> 1298 * This accessor method returns a reference to the live list, 1299 * not a snapshot. Therefore any modification you make to the 1300 * returned list will be present inside the JAXB object. 1301 * This is why there is not a <CODE>set</CODE> method for the any property. 1302 * 1303 * <p> 1304 * For example, to add a new item, do as follows: 1305 * <pre> 1306 * getAny().add(newItem); 1307 * </pre> 1308 * 1309 * 1310 * <p> 1311 * Objects of the following type(s) are allowed in the list 1312 * {@link Object } 1313 * 1314 * 1315 */ 1316 public List<Object> getAny() { 1317 if (any == null) { 1318 any = new ArrayList<Object>(); 1319 } 1320 return this.any; 1321 } 1322 1323 public String toString() { 1324 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 1325 final StringBuilder buffer = new StringBuilder(); 1326 append(null, buffer, strategy); 1327 return buffer.toString(); 1328 } 1329 1330 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1331 strategy.appendStart(locator, this, buffer); 1332 appendFields(locator, buffer, strategy); 1333 strategy.appendEnd(locator, this, buffer); 1334 return buffer; 1335 } 1336 1337 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1338 { 1339 List<Object> theAny; 1340 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1341 strategy.appendField(locator, this, "any", buffer, theAny); 1342 } 1343 return buffer; 1344 } 1345 1346 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 1347 int currentHashCode = 1; 1348 { 1349 List<Object> theAny; 1350 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1351 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); 1352 } 1353 return currentHashCode; 1354 } 1355 1356 public int hashCode() { 1357 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 1358 return this.hashCode(null, strategy); 1359 } 1360 1361 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 1362 if (!(object instanceof DtoAuthorizationEntry.WriteACLs)) { 1363 return false; 1364 } 1365 if (this == object) { 1366 return true; 1367 } 1368 final DtoAuthorizationEntry.WriteACLs that = ((DtoAuthorizationEntry.WriteACLs) object); 1369 { 1370 List<Object> lhsAny; 1371 lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1372 List<Object> rhsAny; 1373 rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null); 1374 if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) { 1375 return false; 1376 } 1377 } 1378 return true; 1379 } 1380 1381 public boolean equals(Object object) { 1382 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 1383 return equals(null, null, object, strategy); 1384 } 1385 1386 } 1387 1388}