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