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.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="defaultEntry" minOccurs="0"> 054 * <complexType> 055 * <complexContent> 056 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 057 * <choice minOccurs="0"> 058 * <element ref="{http://activemq.apache.org/schema/core}policyEntry"/> 059 * <any namespace='##other'/> 060 * </choice> 061 * </restriction> 062 * </complexContent> 063 * </complexType> 064 * </element> 065 * <element name="entries" maxOccurs="unbounded" minOccurs="0"> 066 * <complexType> 067 * <complexContent> 068 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 069 * <sequence maxOccurs="unbounded" minOccurs="0"> 070 * <any maxOccurs="unbounded" minOccurs="0"/> 071 * </sequence> 072 * </restriction> 073 * </complexContent> 074 * </complexType> 075 * </element> 076 * <element name="policyEntries" maxOccurs="unbounded" minOccurs="0"> 077 * <complexType> 078 * <complexContent> 079 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 080 * <sequence maxOccurs="unbounded" minOccurs="0"> 081 * <any maxOccurs="unbounded" minOccurs="0"/> 082 * </sequence> 083 * </restriction> 084 * </complexContent> 085 * </complexType> 086 * </element> 087 * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/> 088 * </choice> 089 * </choice> 090 * <attribute name="defaultEntry" type="{http://www.w3.org/2001/XMLSchema}string" /> 091 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 092 * <anyAttribute processContents='lax' namespace='##other'/> 093 * </restriction> 094 * </complexContent> 095 * </complexType> 096 * </pre> 097 * 098 * 099 */ 100@XmlAccessorType(XmlAccessType.FIELD) 101@XmlType(name = "", propOrder = { 102 "contents" 103}) 104@XmlRootElement(name = "policyMap") 105public class DtoPolicyMap implements Equals, HashCode, ToString 106{ 107 108 @XmlElementRefs({ 109 @XmlElementRef(name = "defaultEntry", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false), 110 @XmlElementRef(name = "policyEntries", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false), 111 @XmlElementRef(name = "entries", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false) 112 }) 113 @XmlAnyElement(lax = true) 114 protected List<Object> contents; 115 @XmlAttribute(name = "defaultEntry") 116 protected String defaultEntry; 117 @XmlAttribute(name = "id") 118 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 119 @XmlID 120 @XmlSchemaType(name = "ID") 121 protected String id; 122 @XmlAnyAttribute 123 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 124 125 /** 126 * Gets the value of the contents property. 127 * 128 * <p> 129 * This accessor method returns a reference to the live list, 130 * not a snapshot. Therefore any modification you make to the 131 * returned list will be present inside the JAXB object. 132 * This is why there is not a <CODE>set</CODE> method for the contents property. 133 * 134 * <p> 135 * For example, to add a new item, do as follows: 136 * <pre> 137 * getContents().add(newItem); 138 * </pre> 139 * 140 * 141 * <p> 142 * Objects of the following type(s) are allowed in the list 143 * {@link JAXBElement }{@code <}{@link DtoPolicyMap.Entries }{@code >} 144 * {@link JAXBElement }{@code <}{@link DtoPolicyMap.PolicyEntries }{@code >} 145 * {@link JAXBElement }{@code <}{@link DtoPolicyMap.DefaultEntry }{@code >} 146 * {@link Object } 147 * 148 * 149 */ 150 public List<Object> getContents() { 151 if (contents == null) { 152 contents = new ArrayList<Object>(); 153 } 154 return this.contents; 155 } 156 157 /** 158 * Gets the value of the defaultEntry property. 159 * 160 * @return 161 * possible object is 162 * {@link String } 163 * 164 */ 165 public String getDefaultEntry() { 166 return defaultEntry; 167 } 168 169 /** 170 * Sets the value of the defaultEntry property. 171 * 172 * @param value 173 * allowed object is 174 * {@link String } 175 * 176 */ 177 public void setDefaultEntry(String value) { 178 this.defaultEntry = value; 179 } 180 181 /** 182 * Gets the value of the id property. 183 * 184 * @return 185 * possible object is 186 * {@link String } 187 * 188 */ 189 public String getId() { 190 return id; 191 } 192 193 /** 194 * Sets the value of the id property. 195 * 196 * @param value 197 * allowed object is 198 * {@link String } 199 * 200 */ 201 public void setId(String value) { 202 this.id = value; 203 } 204 205 /** 206 * Gets a map that contains attributes that aren't bound to any typed property on this class. 207 * 208 * <p> 209 * the map is keyed by the name of the attribute and 210 * the value is the string value of the attribute. 211 * 212 * the map returned by this method is live, and you can add new attribute 213 * by updating the map directly. Because of this design, there's no setter. 214 * 215 * 216 * @return 217 * always non-null 218 */ 219 public Map<QName, String> getOtherAttributes() { 220 return otherAttributes; 221 } 222 223 public String toString() { 224 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 225 final StringBuilder buffer = new StringBuilder(); 226 append(null, buffer, strategy); 227 return buffer.toString(); 228 } 229 230 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 231 strategy.appendStart(locator, this, buffer); 232 appendFields(locator, buffer, strategy); 233 strategy.appendEnd(locator, this, buffer); 234 return buffer; 235 } 236 237 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 238 { 239 List<Object> theContents; 240 theContents = (((this.contents!= null)&&(!this.contents.isEmpty()))?this.getContents():null); 241 strategy.appendField(locator, this, "contents", buffer, theContents); 242 } 243 { 244 String theDefaultEntry; 245 theDefaultEntry = this.getDefaultEntry(); 246 strategy.appendField(locator, this, "defaultEntry", buffer, theDefaultEntry); 247 } 248 { 249 String theId; 250 theId = this.getId(); 251 strategy.appendField(locator, this, "id", buffer, theId); 252 } 253 return buffer; 254 } 255 256 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 257 int currentHashCode = 1; 258 { 259 List<Object> theContents; 260 theContents = (((this.contents!= null)&&(!this.contents.isEmpty()))?this.getContents():null); 261 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contents", theContents), currentHashCode, theContents); 262 } 263 { 264 String theDefaultEntry; 265 theDefaultEntry = this.getDefaultEntry(); 266 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "defaultEntry", theDefaultEntry), currentHashCode, theDefaultEntry); 267 } 268 { 269 String theId; 270 theId = this.getId(); 271 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); 272 } 273 return currentHashCode; 274 } 275 276 public int hashCode() { 277 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 278 return this.hashCode(null, strategy); 279 } 280 281 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 282 if (!(object instanceof DtoPolicyMap)) { 283 return false; 284 } 285 if (this == object) { 286 return true; 287 } 288 final DtoPolicyMap that = ((DtoPolicyMap) object); 289 { 290 List<Object> lhsContents; 291 lhsContents = (((this.contents!= null)&&(!this.contents.isEmpty()))?this.getContents():null); 292 List<Object> rhsContents; 293 rhsContents = (((that.contents!= null)&&(!that.contents.isEmpty()))?that.getContents():null); 294 if (!strategy.equals(LocatorUtils.property(thisLocator, "contents", lhsContents), LocatorUtils.property(thatLocator, "contents", rhsContents), lhsContents, rhsContents)) { 295 return false; 296 } 297 } 298 { 299 String lhsDefaultEntry; 300 lhsDefaultEntry = this.getDefaultEntry(); 301 String rhsDefaultEntry; 302 rhsDefaultEntry = that.getDefaultEntry(); 303 if (!strategy.equals(LocatorUtils.property(thisLocator, "defaultEntry", lhsDefaultEntry), LocatorUtils.property(thatLocator, "defaultEntry", rhsDefaultEntry), lhsDefaultEntry, rhsDefaultEntry)) { 304 return false; 305 } 306 } 307 { 308 String lhsId; 309 lhsId = this.getId(); 310 String rhsId; 311 rhsId = that.getId(); 312 if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { 313 return false; 314 } 315 } 316 return true; 317 } 318 319 public boolean equals(Object object) { 320 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 321 return equals(null, null, object, strategy); 322 } 323 324 325 /** 326 * <p>Java class for anonymous complex type. 327 * 328 * <p>The following schema fragment specifies the expected content contained within this class. 329 * 330 * <pre> 331 * <complexType> 332 * <complexContent> 333 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 334 * <choice minOccurs="0"> 335 * <element ref="{http://activemq.apache.org/schema/core}policyEntry"/> 336 * <any namespace='##other'/> 337 * </choice> 338 * </restriction> 339 * </complexContent> 340 * </complexType> 341 * </pre> 342 * 343 * 344 */ 345 @XmlAccessorType(XmlAccessType.FIELD) 346 @XmlType(name = "", propOrder = { 347 "contents" 348 }) 349 public static class DefaultEntry 350 implements Equals, HashCode, ToString 351 { 352 353 @XmlElementRef(name = "policyEntry", namespace = "http://activemq.apache.org/schema/core", type = DtoPolicyEntry.class, required = false) 354 @XmlAnyElement(lax = true) 355 protected Object contents; 356 357 /** 358 * Gets the value of the contents property. 359 * 360 * @return 361 * possible object is 362 * {@link DtoPolicyEntry } 363 * {@link Object } 364 * 365 */ 366 public Object getContents() { 367 return contents; 368 } 369 370 /** 371 * Sets the value of the contents property. 372 * 373 * @param value 374 * allowed object is 375 * {@link DtoPolicyEntry } 376 * {@link Object } 377 * 378 */ 379 public void setContents(Object value) { 380 this.contents = value; 381 } 382 383 public String toString() { 384 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 385 final StringBuilder buffer = new StringBuilder(); 386 append(null, buffer, strategy); 387 return buffer.toString(); 388 } 389 390 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 391 strategy.appendStart(locator, this, buffer); 392 appendFields(locator, buffer, strategy); 393 strategy.appendEnd(locator, this, buffer); 394 return buffer; 395 } 396 397 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 398 { 399 Object theContents; 400 theContents = this.getContents(); 401 strategy.appendField(locator, this, "contents", buffer, theContents); 402 } 403 return buffer; 404 } 405 406 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 407 int currentHashCode = 1; 408 { 409 Object theContents; 410 theContents = this.getContents(); 411 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contents", theContents), currentHashCode, theContents); 412 } 413 return currentHashCode; 414 } 415 416 public int hashCode() { 417 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 418 return this.hashCode(null, strategy); 419 } 420 421 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 422 if (!(object instanceof DtoPolicyMap.DefaultEntry)) { 423 return false; 424 } 425 if (this == object) { 426 return true; 427 } 428 final DtoPolicyMap.DefaultEntry that = ((DtoPolicyMap.DefaultEntry) object); 429 { 430 Object lhsContents; 431 lhsContents = this.getContents(); 432 Object rhsContents; 433 rhsContents = that.getContents(); 434 if (!strategy.equals(LocatorUtils.property(thisLocator, "contents", lhsContents), LocatorUtils.property(thatLocator, "contents", rhsContents), lhsContents, rhsContents)) { 435 return false; 436 } 437 } 438 return true; 439 } 440 441 public boolean equals(Object object) { 442 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 443 return equals(null, null, object, strategy); 444 } 445 446 } 447 448 449 /** 450 * <p>Java class for anonymous complex type. 451 * 452 * <p>The following schema fragment specifies the expected content contained within this class. 453 * 454 * <pre> 455 * <complexType> 456 * <complexContent> 457 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 458 * <sequence maxOccurs="unbounded" minOccurs="0"> 459 * <any maxOccurs="unbounded" minOccurs="0"/> 460 * </sequence> 461 * </restriction> 462 * </complexContent> 463 * </complexType> 464 * </pre> 465 * 466 * 467 */ 468 @XmlAccessorType(XmlAccessType.FIELD) 469 @XmlType(name = "", propOrder = { 470 "any" 471 }) 472 public static class Entries 473 implements Equals, HashCode, ToString 474 { 475 476 @XmlAnyElement(lax = true) 477 protected List<Object> any; 478 479 /** 480 * Gets the value of the any property. 481 * 482 * <p> 483 * This accessor method returns a reference to the live list, 484 * not a snapshot. Therefore any modification you make to the 485 * returned list will be present inside the JAXB object. 486 * This is why there is not a <CODE>set</CODE> method for the any property. 487 * 488 * <p> 489 * For example, to add a new item, do as follows: 490 * <pre> 491 * getAny().add(newItem); 492 * </pre> 493 * 494 * 495 * <p> 496 * Objects of the following type(s) are allowed in the list 497 * {@link Object } 498 * 499 * 500 */ 501 public List<Object> getAny() { 502 if (any == null) { 503 any = new ArrayList<Object>(); 504 } 505 return this.any; 506 } 507 508 public String toString() { 509 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 510 final StringBuilder buffer = new StringBuilder(); 511 append(null, buffer, strategy); 512 return buffer.toString(); 513 } 514 515 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 516 strategy.appendStart(locator, this, buffer); 517 appendFields(locator, buffer, strategy); 518 strategy.appendEnd(locator, this, buffer); 519 return buffer; 520 } 521 522 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 523 { 524 List<Object> theAny; 525 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 526 strategy.appendField(locator, this, "any", buffer, theAny); 527 } 528 return buffer; 529 } 530 531 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 532 int currentHashCode = 1; 533 { 534 List<Object> theAny; 535 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 536 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); 537 } 538 return currentHashCode; 539 } 540 541 public int hashCode() { 542 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 543 return this.hashCode(null, strategy); 544 } 545 546 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 547 if (!(object instanceof DtoPolicyMap.Entries)) { 548 return false; 549 } 550 if (this == object) { 551 return true; 552 } 553 final DtoPolicyMap.Entries that = ((DtoPolicyMap.Entries) object); 554 { 555 List<Object> lhsAny; 556 lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 557 List<Object> rhsAny; 558 rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null); 559 if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) { 560 return false; 561 } 562 } 563 return true; 564 } 565 566 public boolean equals(Object object) { 567 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 568 return equals(null, null, object, strategy); 569 } 570 571 } 572 573 574 /** 575 * <p>Java class for anonymous complex type. 576 * 577 * <p>The following schema fragment specifies the expected content contained within this class. 578 * 579 * <pre> 580 * <complexType> 581 * <complexContent> 582 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 583 * <sequence maxOccurs="unbounded" minOccurs="0"> 584 * <any maxOccurs="unbounded" minOccurs="0"/> 585 * </sequence> 586 * </restriction> 587 * </complexContent> 588 * </complexType> 589 * </pre> 590 * 591 * 592 */ 593 @XmlAccessorType(XmlAccessType.FIELD) 594 @XmlType(name = "", propOrder = { 595 "contents" 596 }) 597 public static class PolicyEntries 598 implements Equals, HashCode, ToString 599 { 600 601 @XmlAnyElement(lax = true) 602 protected List<Object> contents; 603 604 /** 605 * Gets the value of the contents property. 606 * 607 * <p> 608 * This accessor method returns a reference to the live list, 609 * not a snapshot. Therefore any modification you make to the 610 * returned list will be present inside the JAXB object. 611 * This is why there is not a <CODE>set</CODE> method for the contents property. 612 * 613 * <p> 614 * For example, to add a new item, do as follows: 615 * <pre> 616 * getContents().add(newItem); 617 * </pre> 618 * 619 * 620 * <p> 621 * Objects of the following type(s) are allowed in the list 622 * {@link Object } 623 * 624 * 625 */ 626 public List<Object> getContents() { 627 if (contents == null) { 628 contents = new ArrayList<Object>(); 629 } 630 return this.contents; 631 } 632 633 public String toString() { 634 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 635 final StringBuilder buffer = new StringBuilder(); 636 append(null, buffer, strategy); 637 return buffer.toString(); 638 } 639 640 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 641 strategy.appendStart(locator, this, buffer); 642 appendFields(locator, buffer, strategy); 643 strategy.appendEnd(locator, this, buffer); 644 return buffer; 645 } 646 647 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 648 { 649 List<Object> theContents; 650 theContents = (((this.contents!= null)&&(!this.contents.isEmpty()))?this.getContents():null); 651 strategy.appendField(locator, this, "contents", buffer, theContents); 652 } 653 return buffer; 654 } 655 656 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 657 int currentHashCode = 1; 658 { 659 List<Object> theContents; 660 theContents = (((this.contents!= null)&&(!this.contents.isEmpty()))?this.getContents():null); 661 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contents", theContents), currentHashCode, theContents); 662 } 663 return currentHashCode; 664 } 665 666 public int hashCode() { 667 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 668 return this.hashCode(null, strategy); 669 } 670 671 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 672 if (!(object instanceof DtoPolicyMap.PolicyEntries)) { 673 return false; 674 } 675 if (this == object) { 676 return true; 677 } 678 final DtoPolicyMap.PolicyEntries that = ((DtoPolicyMap.PolicyEntries) object); 679 { 680 List<Object> lhsContents; 681 lhsContents = (((this.contents!= null)&&(!this.contents.isEmpty()))?this.getContents():null); 682 List<Object> rhsContents; 683 rhsContents = (((that.contents!= null)&&(!that.contents.isEmpty()))?that.getContents():null); 684 if (!strategy.equals(LocatorUtils.property(thisLocator, "contents", lhsContents), LocatorUtils.property(thatLocator, "contents", rhsContents), lhsContents, rhsContents)) { 685 return false; 686 } 687 } 688 return true; 689 } 690 691 public boolean equals(Object object) { 692 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 693 return equals(null, null, object, strategy); 694 } 695 696 } 697 698}