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="MBeanServer" 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="environment" 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="server" 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 * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/> 087 * </choice> 088 * </choice> 089 * <attribute name="MBeanServer" type="{http://www.w3.org/2001/XMLSchema}string" /> 090 * <attribute name="allowRemoteAddressInMBeanNames" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 091 * <attribute name="brokerName" type="{http://www.w3.org/2001/XMLSchema}string" /> 092 * <attribute name="connectorHost" type="{http://www.w3.org/2001/XMLSchema}string" /> 093 * <attribute name="connectorPath" type="{http://www.w3.org/2001/XMLSchema}string" /> 094 * <attribute name="connectorPort" type="{http://www.w3.org/2001/XMLSchema}string" /> 095 * <attribute name="createConnector" type="{http://www.w3.org/2001/XMLSchema}string" /> 096 * <attribute name="createMBeanServer" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 097 * <attribute name="environment" type="{http://www.w3.org/2001/XMLSchema}string" /> 098 * <attribute name="findTigerMbeanServer" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 099 * <attribute name="jmxDomainName" type="{http://www.w3.org/2001/XMLSchema}string" /> 100 * <attribute name="rmiServerPort" type="{http://www.w3.org/2001/XMLSchema}string" /> 101 * <attribute name="server" type="{http://www.w3.org/2001/XMLSchema}string" /> 102 * <attribute name="useMBeanServer" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 103 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 104 * <anyAttribute processContents='lax' namespace='##other'/> 105 * </restriction> 106 * </complexContent> 107 * </complexType> 108 * </pre> 109 * 110 * 111 */ 112@XmlAccessorType(XmlAccessType.FIELD) 113@XmlType(name = "", propOrder = { 114 "mBeanServerOrEnvironmentOrServer" 115}) 116@XmlRootElement(name = "managementContext") 117public class DtoManagementContext implements Equals, HashCode, ToString 118{ 119 120 @XmlElementRefs({ 121 @XmlElementRef(name = "environment", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false), 122 @XmlElementRef(name = "server", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false), 123 @XmlElementRef(name = "MBeanServer", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false) 124 }) 125 @XmlAnyElement(lax = true) 126 protected List<Object> mBeanServerOrEnvironmentOrServer; 127 @XmlAttribute(name = "MBeanServer") 128 protected String mBeanServer; 129 @XmlAttribute(name = "allowRemoteAddressInMBeanNames") 130 protected Boolean allowRemoteAddressInMBeanNames; 131 @XmlAttribute(name = "brokerName") 132 protected String brokerName; 133 @XmlAttribute(name = "connectorHost") 134 protected String connectorHost; 135 @XmlAttribute(name = "connectorPath") 136 protected String connectorPath; 137 @XmlAttribute(name = "connectorPort") 138 protected String connectorPort; 139 @XmlAttribute(name = "createConnector") 140 protected String createConnector; 141 @XmlAttribute(name = "createMBeanServer") 142 protected Boolean createMBeanServer; 143 @XmlAttribute(name = "environment") 144 protected String environment; 145 @XmlAttribute(name = "findTigerMbeanServer") 146 protected Boolean findTigerMbeanServer; 147 @XmlAttribute(name = "jmxDomainName") 148 protected String jmxDomainName; 149 @XmlAttribute(name = "rmiServerPort") 150 protected String rmiServerPort; 151 @XmlAttribute(name = "server") 152 protected String server; 153 @XmlAttribute(name = "useMBeanServer") 154 protected Boolean useMBeanServer; 155 @XmlAttribute(name = "id") 156 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 157 @XmlID 158 @XmlSchemaType(name = "ID") 159 protected String id; 160 @XmlAnyAttribute 161 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 162 163 /** 164 * Gets the value of the mBeanServerOrEnvironmentOrServer property. 165 * 166 * <p> 167 * This accessor method returns a reference to the live list, 168 * not a snapshot. Therefore any modification you make to the 169 * returned list will be present inside the JAXB object. 170 * This is why there is not a <CODE>set</CODE> method for the mBeanServerOrEnvironmentOrServer property. 171 * 172 * <p> 173 * For example, to add a new item, do as follows: 174 * <pre> 175 * getMBeanServerOrEnvironmentOrServer().add(newItem); 176 * </pre> 177 * 178 * 179 * <p> 180 * Objects of the following type(s) are allowed in the list 181 * {@link JAXBElement }{@code <}{@link DtoManagementContext.MBeanServer }{@code >} 182 * {@link JAXBElement }{@code <}{@link DtoManagementContext.Server }{@code >} 183 * {@link Object } 184 * {@link JAXBElement }{@code <}{@link DtoManagementContext.Environment }{@code >} 185 * 186 * 187 */ 188 public List<Object> getMBeanServerOrEnvironmentOrServer() { 189 if (mBeanServerOrEnvironmentOrServer == null) { 190 mBeanServerOrEnvironmentOrServer = new ArrayList<Object>(); 191 } 192 return this.mBeanServerOrEnvironmentOrServer; 193 } 194 195 /** 196 * Gets the value of the mBeanServer property. 197 * 198 * @return 199 * possible object is 200 * {@link String } 201 * 202 */ 203 public String getMBeanServer() { 204 return mBeanServer; 205 } 206 207 /** 208 * Sets the value of the mBeanServer property. 209 * 210 * @param value 211 * allowed object is 212 * {@link String } 213 * 214 */ 215 public void setMBeanServer(String value) { 216 this.mBeanServer = value; 217 } 218 219 /** 220 * Gets the value of the allowRemoteAddressInMBeanNames property. 221 * 222 * @return 223 * possible object is 224 * {@link Boolean } 225 * 226 */ 227 public Boolean isAllowRemoteAddressInMBeanNames() { 228 return allowRemoteAddressInMBeanNames; 229 } 230 231 /** 232 * Sets the value of the allowRemoteAddressInMBeanNames property. 233 * 234 * @param value 235 * allowed object is 236 * {@link Boolean } 237 * 238 */ 239 public void setAllowRemoteAddressInMBeanNames(Boolean value) { 240 this.allowRemoteAddressInMBeanNames = value; 241 } 242 243 /** 244 * Gets the value of the brokerName property. 245 * 246 * @return 247 * possible object is 248 * {@link String } 249 * 250 */ 251 public String getBrokerName() { 252 return brokerName; 253 } 254 255 /** 256 * Sets the value of the brokerName property. 257 * 258 * @param value 259 * allowed object is 260 * {@link String } 261 * 262 */ 263 public void setBrokerName(String value) { 264 this.brokerName = value; 265 } 266 267 /** 268 * Gets the value of the connectorHost property. 269 * 270 * @return 271 * possible object is 272 * {@link String } 273 * 274 */ 275 public String getConnectorHost() { 276 return connectorHost; 277 } 278 279 /** 280 * Sets the value of the connectorHost property. 281 * 282 * @param value 283 * allowed object is 284 * {@link String } 285 * 286 */ 287 public void setConnectorHost(String value) { 288 this.connectorHost = value; 289 } 290 291 /** 292 * Gets the value of the connectorPath property. 293 * 294 * @return 295 * possible object is 296 * {@link String } 297 * 298 */ 299 public String getConnectorPath() { 300 return connectorPath; 301 } 302 303 /** 304 * Sets the value of the connectorPath property. 305 * 306 * @param value 307 * allowed object is 308 * {@link String } 309 * 310 */ 311 public void setConnectorPath(String value) { 312 this.connectorPath = value; 313 } 314 315 /** 316 * Gets the value of the connectorPort property. 317 * 318 * @return 319 * possible object is 320 * {@link String } 321 * 322 */ 323 public String getConnectorPort() { 324 return connectorPort; 325 } 326 327 /** 328 * Sets the value of the connectorPort property. 329 * 330 * @param value 331 * allowed object is 332 * {@link String } 333 * 334 */ 335 public void setConnectorPort(String value) { 336 this.connectorPort = value; 337 } 338 339 /** 340 * Gets the value of the createConnector property. 341 * 342 * @return 343 * possible object is 344 * {@link String } 345 * 346 */ 347 public String getCreateConnector() { 348 return createConnector; 349 } 350 351 /** 352 * Sets the value of the createConnector property. 353 * 354 * @param value 355 * allowed object is 356 * {@link String } 357 * 358 */ 359 public void setCreateConnector(String value) { 360 this.createConnector = value; 361 } 362 363 /** 364 * Gets the value of the createMBeanServer property. 365 * 366 * @return 367 * possible object is 368 * {@link Boolean } 369 * 370 */ 371 public Boolean isCreateMBeanServer() { 372 return createMBeanServer; 373 } 374 375 /** 376 * Sets the value of the createMBeanServer property. 377 * 378 * @param value 379 * allowed object is 380 * {@link Boolean } 381 * 382 */ 383 public void setCreateMBeanServer(Boolean value) { 384 this.createMBeanServer = value; 385 } 386 387 /** 388 * Gets the value of the environment property. 389 * 390 * @return 391 * possible object is 392 * {@link String } 393 * 394 */ 395 public String getEnvironment() { 396 return environment; 397 } 398 399 /** 400 * Sets the value of the environment property. 401 * 402 * @param value 403 * allowed object is 404 * {@link String } 405 * 406 */ 407 public void setEnvironment(String value) { 408 this.environment = value; 409 } 410 411 /** 412 * Gets the value of the findTigerMbeanServer property. 413 * 414 * @return 415 * possible object is 416 * {@link Boolean } 417 * 418 */ 419 public Boolean isFindTigerMbeanServer() { 420 return findTigerMbeanServer; 421 } 422 423 /** 424 * Sets the value of the findTigerMbeanServer property. 425 * 426 * @param value 427 * allowed object is 428 * {@link Boolean } 429 * 430 */ 431 public void setFindTigerMbeanServer(Boolean value) { 432 this.findTigerMbeanServer = value; 433 } 434 435 /** 436 * Gets the value of the jmxDomainName property. 437 * 438 * @return 439 * possible object is 440 * {@link String } 441 * 442 */ 443 public String getJmxDomainName() { 444 return jmxDomainName; 445 } 446 447 /** 448 * Sets the value of the jmxDomainName property. 449 * 450 * @param value 451 * allowed object is 452 * {@link String } 453 * 454 */ 455 public void setJmxDomainName(String value) { 456 this.jmxDomainName = value; 457 } 458 459 /** 460 * Gets the value of the rmiServerPort property. 461 * 462 * @return 463 * possible object is 464 * {@link String } 465 * 466 */ 467 public String getRmiServerPort() { 468 return rmiServerPort; 469 } 470 471 /** 472 * Sets the value of the rmiServerPort property. 473 * 474 * @param value 475 * allowed object is 476 * {@link String } 477 * 478 */ 479 public void setRmiServerPort(String value) { 480 this.rmiServerPort = value; 481 } 482 483 /** 484 * Gets the value of the server property. 485 * 486 * @return 487 * possible object is 488 * {@link String } 489 * 490 */ 491 public String getServer() { 492 return server; 493 } 494 495 /** 496 * Sets the value of the server property. 497 * 498 * @param value 499 * allowed object is 500 * {@link String } 501 * 502 */ 503 public void setServer(String value) { 504 this.server = value; 505 } 506 507 /** 508 * Gets the value of the useMBeanServer property. 509 * 510 * @return 511 * possible object is 512 * {@link Boolean } 513 * 514 */ 515 public Boolean isUseMBeanServer() { 516 return useMBeanServer; 517 } 518 519 /** 520 * Sets the value of the useMBeanServer property. 521 * 522 * @param value 523 * allowed object is 524 * {@link Boolean } 525 * 526 */ 527 public void setUseMBeanServer(Boolean value) { 528 this.useMBeanServer = value; 529 } 530 531 /** 532 * Gets the value of the id property. 533 * 534 * @return 535 * possible object is 536 * {@link String } 537 * 538 */ 539 public String getId() { 540 return id; 541 } 542 543 /** 544 * Sets the value of the id property. 545 * 546 * @param value 547 * allowed object is 548 * {@link String } 549 * 550 */ 551 public void setId(String value) { 552 this.id = value; 553 } 554 555 /** 556 * Gets a map that contains attributes that aren't bound to any typed property on this class. 557 * 558 * <p> 559 * the map is keyed by the name of the attribute and 560 * the value is the string value of the attribute. 561 * 562 * the map returned by this method is live, and you can add new attribute 563 * by updating the map directly. Because of this design, there's no setter. 564 * 565 * 566 * @return 567 * always non-null 568 */ 569 public Map<QName, String> getOtherAttributes() { 570 return otherAttributes; 571 } 572 573 public String toString() { 574 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 575 final StringBuilder buffer = new StringBuilder(); 576 append(null, buffer, strategy); 577 return buffer.toString(); 578 } 579 580 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 581 strategy.appendStart(locator, this, buffer); 582 appendFields(locator, buffer, strategy); 583 strategy.appendEnd(locator, this, buffer); 584 return buffer; 585 } 586 587 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 588 { 589 List<Object> theMBeanServerOrEnvironmentOrServer; 590 theMBeanServerOrEnvironmentOrServer = (((this.mBeanServerOrEnvironmentOrServer!= null)&&(!this.mBeanServerOrEnvironmentOrServer.isEmpty()))?this.getMBeanServerOrEnvironmentOrServer():null); 591 strategy.appendField(locator, this, "mBeanServerOrEnvironmentOrServer", buffer, theMBeanServerOrEnvironmentOrServer); 592 } 593 { 594 String theMBeanServer; 595 theMBeanServer = this.getMBeanServer(); 596 strategy.appendField(locator, this, "mBeanServer", buffer, theMBeanServer); 597 } 598 { 599 Boolean theAllowRemoteAddressInMBeanNames; 600 theAllowRemoteAddressInMBeanNames = this.isAllowRemoteAddressInMBeanNames(); 601 strategy.appendField(locator, this, "allowRemoteAddressInMBeanNames", buffer, theAllowRemoteAddressInMBeanNames); 602 } 603 { 604 String theBrokerName; 605 theBrokerName = this.getBrokerName(); 606 strategy.appendField(locator, this, "brokerName", buffer, theBrokerName); 607 } 608 { 609 String theConnectorHost; 610 theConnectorHost = this.getConnectorHost(); 611 strategy.appendField(locator, this, "connectorHost", buffer, theConnectorHost); 612 } 613 { 614 String theConnectorPath; 615 theConnectorPath = this.getConnectorPath(); 616 strategy.appendField(locator, this, "connectorPath", buffer, theConnectorPath); 617 } 618 { 619 String theConnectorPort; 620 theConnectorPort = this.getConnectorPort(); 621 strategy.appendField(locator, this, "connectorPort", buffer, theConnectorPort); 622 } 623 { 624 String theCreateConnector; 625 theCreateConnector = this.getCreateConnector(); 626 strategy.appendField(locator, this, "createConnector", buffer, theCreateConnector); 627 } 628 { 629 Boolean theCreateMBeanServer; 630 theCreateMBeanServer = this.isCreateMBeanServer(); 631 strategy.appendField(locator, this, "createMBeanServer", buffer, theCreateMBeanServer); 632 } 633 { 634 String theEnvironment; 635 theEnvironment = this.getEnvironment(); 636 strategy.appendField(locator, this, "environment", buffer, theEnvironment); 637 } 638 { 639 Boolean theFindTigerMbeanServer; 640 theFindTigerMbeanServer = this.isFindTigerMbeanServer(); 641 strategy.appendField(locator, this, "findTigerMbeanServer", buffer, theFindTigerMbeanServer); 642 } 643 { 644 String theJmxDomainName; 645 theJmxDomainName = this.getJmxDomainName(); 646 strategy.appendField(locator, this, "jmxDomainName", buffer, theJmxDomainName); 647 } 648 { 649 String theRmiServerPort; 650 theRmiServerPort = this.getRmiServerPort(); 651 strategy.appendField(locator, this, "rmiServerPort", buffer, theRmiServerPort); 652 } 653 { 654 String theServer; 655 theServer = this.getServer(); 656 strategy.appendField(locator, this, "server", buffer, theServer); 657 } 658 { 659 Boolean theUseMBeanServer; 660 theUseMBeanServer = this.isUseMBeanServer(); 661 strategy.appendField(locator, this, "useMBeanServer", buffer, theUseMBeanServer); 662 } 663 { 664 String theId; 665 theId = this.getId(); 666 strategy.appendField(locator, this, "id", buffer, theId); 667 } 668 return buffer; 669 } 670 671 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 672 int currentHashCode = 1; 673 { 674 List<Object> theMBeanServerOrEnvironmentOrServer; 675 theMBeanServerOrEnvironmentOrServer = (((this.mBeanServerOrEnvironmentOrServer!= null)&&(!this.mBeanServerOrEnvironmentOrServer.isEmpty()))?this.getMBeanServerOrEnvironmentOrServer():null); 676 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mBeanServerOrEnvironmentOrServer", theMBeanServerOrEnvironmentOrServer), currentHashCode, theMBeanServerOrEnvironmentOrServer); 677 } 678 { 679 String theMBeanServer; 680 theMBeanServer = this.getMBeanServer(); 681 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mBeanServer", theMBeanServer), currentHashCode, theMBeanServer); 682 } 683 { 684 Boolean theAllowRemoteAddressInMBeanNames; 685 theAllowRemoteAddressInMBeanNames = this.isAllowRemoteAddressInMBeanNames(); 686 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allowRemoteAddressInMBeanNames", theAllowRemoteAddressInMBeanNames), currentHashCode, theAllowRemoteAddressInMBeanNames); 687 } 688 { 689 String theBrokerName; 690 theBrokerName = this.getBrokerName(); 691 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brokerName", theBrokerName), currentHashCode, theBrokerName); 692 } 693 { 694 String theConnectorHost; 695 theConnectorHost = this.getConnectorHost(); 696 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "connectorHost", theConnectorHost), currentHashCode, theConnectorHost); 697 } 698 { 699 String theConnectorPath; 700 theConnectorPath = this.getConnectorPath(); 701 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "connectorPath", theConnectorPath), currentHashCode, theConnectorPath); 702 } 703 { 704 String theConnectorPort; 705 theConnectorPort = this.getConnectorPort(); 706 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "connectorPort", theConnectorPort), currentHashCode, theConnectorPort); 707 } 708 { 709 String theCreateConnector; 710 theCreateConnector = this.getCreateConnector(); 711 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createConnector", theCreateConnector), currentHashCode, theCreateConnector); 712 } 713 { 714 Boolean theCreateMBeanServer; 715 theCreateMBeanServer = this.isCreateMBeanServer(); 716 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createMBeanServer", theCreateMBeanServer), currentHashCode, theCreateMBeanServer); 717 } 718 { 719 String theEnvironment; 720 theEnvironment = this.getEnvironment(); 721 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "environment", theEnvironment), currentHashCode, theEnvironment); 722 } 723 { 724 Boolean theFindTigerMbeanServer; 725 theFindTigerMbeanServer = this.isFindTigerMbeanServer(); 726 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "findTigerMbeanServer", theFindTigerMbeanServer), currentHashCode, theFindTigerMbeanServer); 727 } 728 { 729 String theJmxDomainName; 730 theJmxDomainName = this.getJmxDomainName(); 731 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "jmxDomainName", theJmxDomainName), currentHashCode, theJmxDomainName); 732 } 733 { 734 String theRmiServerPort; 735 theRmiServerPort = this.getRmiServerPort(); 736 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rmiServerPort", theRmiServerPort), currentHashCode, theRmiServerPort); 737 } 738 { 739 String theServer; 740 theServer = this.getServer(); 741 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "server", theServer), currentHashCode, theServer); 742 } 743 { 744 Boolean theUseMBeanServer; 745 theUseMBeanServer = this.isUseMBeanServer(); 746 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "useMBeanServer", theUseMBeanServer), currentHashCode, theUseMBeanServer); 747 } 748 { 749 String theId; 750 theId = this.getId(); 751 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); 752 } 753 return currentHashCode; 754 } 755 756 public int hashCode() { 757 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 758 return this.hashCode(null, strategy); 759 } 760 761 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 762 if (!(object instanceof DtoManagementContext)) { 763 return false; 764 } 765 if (this == object) { 766 return true; 767 } 768 final DtoManagementContext that = ((DtoManagementContext) object); 769 { 770 List<Object> lhsMBeanServerOrEnvironmentOrServer; 771 lhsMBeanServerOrEnvironmentOrServer = (((this.mBeanServerOrEnvironmentOrServer!= null)&&(!this.mBeanServerOrEnvironmentOrServer.isEmpty()))?this.getMBeanServerOrEnvironmentOrServer():null); 772 List<Object> rhsMBeanServerOrEnvironmentOrServer; 773 rhsMBeanServerOrEnvironmentOrServer = (((that.mBeanServerOrEnvironmentOrServer!= null)&&(!that.mBeanServerOrEnvironmentOrServer.isEmpty()))?that.getMBeanServerOrEnvironmentOrServer():null); 774 if (!strategy.equals(LocatorUtils.property(thisLocator, "mBeanServerOrEnvironmentOrServer", lhsMBeanServerOrEnvironmentOrServer), LocatorUtils.property(thatLocator, "mBeanServerOrEnvironmentOrServer", rhsMBeanServerOrEnvironmentOrServer), lhsMBeanServerOrEnvironmentOrServer, rhsMBeanServerOrEnvironmentOrServer)) { 775 return false; 776 } 777 } 778 { 779 String lhsMBeanServer; 780 lhsMBeanServer = this.getMBeanServer(); 781 String rhsMBeanServer; 782 rhsMBeanServer = that.getMBeanServer(); 783 if (!strategy.equals(LocatorUtils.property(thisLocator, "mBeanServer", lhsMBeanServer), LocatorUtils.property(thatLocator, "mBeanServer", rhsMBeanServer), lhsMBeanServer, rhsMBeanServer)) { 784 return false; 785 } 786 } 787 { 788 Boolean lhsAllowRemoteAddressInMBeanNames; 789 lhsAllowRemoteAddressInMBeanNames = this.isAllowRemoteAddressInMBeanNames(); 790 Boolean rhsAllowRemoteAddressInMBeanNames; 791 rhsAllowRemoteAddressInMBeanNames = that.isAllowRemoteAddressInMBeanNames(); 792 if (!strategy.equals(LocatorUtils.property(thisLocator, "allowRemoteAddressInMBeanNames", lhsAllowRemoteAddressInMBeanNames), LocatorUtils.property(thatLocator, "allowRemoteAddressInMBeanNames", rhsAllowRemoteAddressInMBeanNames), lhsAllowRemoteAddressInMBeanNames, rhsAllowRemoteAddressInMBeanNames)) { 793 return false; 794 } 795 } 796 { 797 String lhsBrokerName; 798 lhsBrokerName = this.getBrokerName(); 799 String rhsBrokerName; 800 rhsBrokerName = that.getBrokerName(); 801 if (!strategy.equals(LocatorUtils.property(thisLocator, "brokerName", lhsBrokerName), LocatorUtils.property(thatLocator, "brokerName", rhsBrokerName), lhsBrokerName, rhsBrokerName)) { 802 return false; 803 } 804 } 805 { 806 String lhsConnectorHost; 807 lhsConnectorHost = this.getConnectorHost(); 808 String rhsConnectorHost; 809 rhsConnectorHost = that.getConnectorHost(); 810 if (!strategy.equals(LocatorUtils.property(thisLocator, "connectorHost", lhsConnectorHost), LocatorUtils.property(thatLocator, "connectorHost", rhsConnectorHost), lhsConnectorHost, rhsConnectorHost)) { 811 return false; 812 } 813 } 814 { 815 String lhsConnectorPath; 816 lhsConnectorPath = this.getConnectorPath(); 817 String rhsConnectorPath; 818 rhsConnectorPath = that.getConnectorPath(); 819 if (!strategy.equals(LocatorUtils.property(thisLocator, "connectorPath", lhsConnectorPath), LocatorUtils.property(thatLocator, "connectorPath", rhsConnectorPath), lhsConnectorPath, rhsConnectorPath)) { 820 return false; 821 } 822 } 823 { 824 String lhsConnectorPort; 825 lhsConnectorPort = this.getConnectorPort(); 826 String rhsConnectorPort; 827 rhsConnectorPort = that.getConnectorPort(); 828 if (!strategy.equals(LocatorUtils.property(thisLocator, "connectorPort", lhsConnectorPort), LocatorUtils.property(thatLocator, "connectorPort", rhsConnectorPort), lhsConnectorPort, rhsConnectorPort)) { 829 return false; 830 } 831 } 832 { 833 String lhsCreateConnector; 834 lhsCreateConnector = this.getCreateConnector(); 835 String rhsCreateConnector; 836 rhsCreateConnector = that.getCreateConnector(); 837 if (!strategy.equals(LocatorUtils.property(thisLocator, "createConnector", lhsCreateConnector), LocatorUtils.property(thatLocator, "createConnector", rhsCreateConnector), lhsCreateConnector, rhsCreateConnector)) { 838 return false; 839 } 840 } 841 { 842 Boolean lhsCreateMBeanServer; 843 lhsCreateMBeanServer = this.isCreateMBeanServer(); 844 Boolean rhsCreateMBeanServer; 845 rhsCreateMBeanServer = that.isCreateMBeanServer(); 846 if (!strategy.equals(LocatorUtils.property(thisLocator, "createMBeanServer", lhsCreateMBeanServer), LocatorUtils.property(thatLocator, "createMBeanServer", rhsCreateMBeanServer), lhsCreateMBeanServer, rhsCreateMBeanServer)) { 847 return false; 848 } 849 } 850 { 851 String lhsEnvironment; 852 lhsEnvironment = this.getEnvironment(); 853 String rhsEnvironment; 854 rhsEnvironment = that.getEnvironment(); 855 if (!strategy.equals(LocatorUtils.property(thisLocator, "environment", lhsEnvironment), LocatorUtils.property(thatLocator, "environment", rhsEnvironment), lhsEnvironment, rhsEnvironment)) { 856 return false; 857 } 858 } 859 { 860 Boolean lhsFindTigerMbeanServer; 861 lhsFindTigerMbeanServer = this.isFindTigerMbeanServer(); 862 Boolean rhsFindTigerMbeanServer; 863 rhsFindTigerMbeanServer = that.isFindTigerMbeanServer(); 864 if (!strategy.equals(LocatorUtils.property(thisLocator, "findTigerMbeanServer", lhsFindTigerMbeanServer), LocatorUtils.property(thatLocator, "findTigerMbeanServer", rhsFindTigerMbeanServer), lhsFindTigerMbeanServer, rhsFindTigerMbeanServer)) { 865 return false; 866 } 867 } 868 { 869 String lhsJmxDomainName; 870 lhsJmxDomainName = this.getJmxDomainName(); 871 String rhsJmxDomainName; 872 rhsJmxDomainName = that.getJmxDomainName(); 873 if (!strategy.equals(LocatorUtils.property(thisLocator, "jmxDomainName", lhsJmxDomainName), LocatorUtils.property(thatLocator, "jmxDomainName", rhsJmxDomainName), lhsJmxDomainName, rhsJmxDomainName)) { 874 return false; 875 } 876 } 877 { 878 String lhsRmiServerPort; 879 lhsRmiServerPort = this.getRmiServerPort(); 880 String rhsRmiServerPort; 881 rhsRmiServerPort = that.getRmiServerPort(); 882 if (!strategy.equals(LocatorUtils.property(thisLocator, "rmiServerPort", lhsRmiServerPort), LocatorUtils.property(thatLocator, "rmiServerPort", rhsRmiServerPort), lhsRmiServerPort, rhsRmiServerPort)) { 883 return false; 884 } 885 } 886 { 887 String lhsServer; 888 lhsServer = this.getServer(); 889 String rhsServer; 890 rhsServer = that.getServer(); 891 if (!strategy.equals(LocatorUtils.property(thisLocator, "server", lhsServer), LocatorUtils.property(thatLocator, "server", rhsServer), lhsServer, rhsServer)) { 892 return false; 893 } 894 } 895 { 896 Boolean lhsUseMBeanServer; 897 lhsUseMBeanServer = this.isUseMBeanServer(); 898 Boolean rhsUseMBeanServer; 899 rhsUseMBeanServer = that.isUseMBeanServer(); 900 if (!strategy.equals(LocatorUtils.property(thisLocator, "useMBeanServer", lhsUseMBeanServer), LocatorUtils.property(thatLocator, "useMBeanServer", rhsUseMBeanServer), lhsUseMBeanServer, rhsUseMBeanServer)) { 901 return false; 902 } 903 } 904 { 905 String lhsId; 906 lhsId = this.getId(); 907 String rhsId; 908 rhsId = that.getId(); 909 if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { 910 return false; 911 } 912 } 913 return true; 914 } 915 916 public boolean equals(Object object) { 917 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 918 return equals(null, null, object, strategy); 919 } 920 921 922 /** 923 * <p>Java class for anonymous complex type. 924 * 925 * <p>The following schema fragment specifies the expected content contained within this class. 926 * 927 * <pre> 928 * <complexType> 929 * <complexContent> 930 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 931 * <sequence maxOccurs="unbounded" minOccurs="0"> 932 * <any maxOccurs="unbounded" minOccurs="0"/> 933 * </sequence> 934 * </restriction> 935 * </complexContent> 936 * </complexType> 937 * </pre> 938 * 939 * 940 */ 941 @XmlAccessorType(XmlAccessType.FIELD) 942 @XmlType(name = "", propOrder = { 943 "any" 944 }) 945 public static class Environment 946 implements Equals, HashCode, ToString 947 { 948 949 @XmlAnyElement(lax = true) 950 protected List<Object> any; 951 952 /** 953 * Gets the value of the any property. 954 * 955 * <p> 956 * This accessor method returns a reference to the live list, 957 * not a snapshot. Therefore any modification you make to the 958 * returned list will be present inside the JAXB object. 959 * This is why there is not a <CODE>set</CODE> method for the any property. 960 * 961 * <p> 962 * For example, to add a new item, do as follows: 963 * <pre> 964 * getAny().add(newItem); 965 * </pre> 966 * 967 * 968 * <p> 969 * Objects of the following type(s) are allowed in the list 970 * {@link Object } 971 * 972 * 973 */ 974 public List<Object> getAny() { 975 if (any == null) { 976 any = new ArrayList<Object>(); 977 } 978 return this.any; 979 } 980 981 public String toString() { 982 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 983 final StringBuilder buffer = new StringBuilder(); 984 append(null, buffer, strategy); 985 return buffer.toString(); 986 } 987 988 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 989 strategy.appendStart(locator, this, buffer); 990 appendFields(locator, buffer, strategy); 991 strategy.appendEnd(locator, this, buffer); 992 return buffer; 993 } 994 995 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 996 { 997 List<Object> theAny; 998 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 999 strategy.appendField(locator, this, "any", buffer, theAny); 1000 } 1001 return buffer; 1002 } 1003 1004 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 1005 int currentHashCode = 1; 1006 { 1007 List<Object> theAny; 1008 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1009 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); 1010 } 1011 return currentHashCode; 1012 } 1013 1014 public int hashCode() { 1015 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 1016 return this.hashCode(null, strategy); 1017 } 1018 1019 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 1020 if (!(object instanceof DtoManagementContext.Environment)) { 1021 return false; 1022 } 1023 if (this == object) { 1024 return true; 1025 } 1026 final DtoManagementContext.Environment that = ((DtoManagementContext.Environment) object); 1027 { 1028 List<Object> lhsAny; 1029 lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1030 List<Object> rhsAny; 1031 rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null); 1032 if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) { 1033 return false; 1034 } 1035 } 1036 return true; 1037 } 1038 1039 public boolean equals(Object object) { 1040 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 1041 return equals(null, null, object, strategy); 1042 } 1043 1044 } 1045 1046 1047 /** 1048 * <p>Java class for anonymous complex type. 1049 * 1050 * <p>The following schema fragment specifies the expected content contained within this class. 1051 * 1052 * <pre> 1053 * <complexType> 1054 * <complexContent> 1055 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1056 * <sequence minOccurs="0"> 1057 * <any maxOccurs="unbounded" minOccurs="0"/> 1058 * </sequence> 1059 * </restriction> 1060 * </complexContent> 1061 * </complexType> 1062 * </pre> 1063 * 1064 * 1065 */ 1066 @XmlAccessorType(XmlAccessType.FIELD) 1067 @XmlType(name = "", propOrder = { 1068 "any" 1069 }) 1070 public static class MBeanServer 1071 implements Equals, HashCode, ToString 1072 { 1073 1074 @XmlAnyElement(lax = true) 1075 protected List<Object> any; 1076 1077 /** 1078 * Gets the value of the any property. 1079 * 1080 * <p> 1081 * This accessor method returns a reference to the live list, 1082 * not a snapshot. Therefore any modification you make to the 1083 * returned list will be present inside the JAXB object. 1084 * This is why there is not a <CODE>set</CODE> method for the any property. 1085 * 1086 * <p> 1087 * For example, to add a new item, do as follows: 1088 * <pre> 1089 * getAny().add(newItem); 1090 * </pre> 1091 * 1092 * 1093 * <p> 1094 * Objects of the following type(s) are allowed in the list 1095 * {@link Object } 1096 * 1097 * 1098 */ 1099 public List<Object> getAny() { 1100 if (any == null) { 1101 any = new ArrayList<Object>(); 1102 } 1103 return this.any; 1104 } 1105 1106 public String toString() { 1107 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 1108 final StringBuilder buffer = new StringBuilder(); 1109 append(null, buffer, strategy); 1110 return buffer.toString(); 1111 } 1112 1113 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1114 strategy.appendStart(locator, this, buffer); 1115 appendFields(locator, buffer, strategy); 1116 strategy.appendEnd(locator, this, buffer); 1117 return buffer; 1118 } 1119 1120 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1121 { 1122 List<Object> theAny; 1123 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1124 strategy.appendField(locator, this, "any", buffer, theAny); 1125 } 1126 return buffer; 1127 } 1128 1129 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 1130 int currentHashCode = 1; 1131 { 1132 List<Object> theAny; 1133 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1134 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); 1135 } 1136 return currentHashCode; 1137 } 1138 1139 public int hashCode() { 1140 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 1141 return this.hashCode(null, strategy); 1142 } 1143 1144 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 1145 if (!(object instanceof DtoManagementContext.MBeanServer)) { 1146 return false; 1147 } 1148 if (this == object) { 1149 return true; 1150 } 1151 final DtoManagementContext.MBeanServer that = ((DtoManagementContext.MBeanServer) object); 1152 { 1153 List<Object> lhsAny; 1154 lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1155 List<Object> rhsAny; 1156 rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null); 1157 if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) { 1158 return false; 1159 } 1160 } 1161 return true; 1162 } 1163 1164 public boolean equals(Object object) { 1165 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 1166 return equals(null, null, object, strategy); 1167 } 1168 1169 } 1170 1171 1172 /** 1173 * <p>Java class for anonymous complex type. 1174 * 1175 * <p>The following schema fragment specifies the expected content contained within this class. 1176 * 1177 * <pre> 1178 * <complexType> 1179 * <complexContent> 1180 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 1181 * <sequence minOccurs="0"> 1182 * <any maxOccurs="unbounded" minOccurs="0"/> 1183 * </sequence> 1184 * </restriction> 1185 * </complexContent> 1186 * </complexType> 1187 * </pre> 1188 * 1189 * 1190 */ 1191 @XmlAccessorType(XmlAccessType.FIELD) 1192 @XmlType(name = "", propOrder = { 1193 "any" 1194 }) 1195 public static class Server 1196 implements Equals, HashCode, ToString 1197 { 1198 1199 @XmlAnyElement(lax = true) 1200 protected List<Object> any; 1201 1202 /** 1203 * Gets the value of the any property. 1204 * 1205 * <p> 1206 * This accessor method returns a reference to the live list, 1207 * not a snapshot. Therefore any modification you make to the 1208 * returned list will be present inside the JAXB object. 1209 * This is why there is not a <CODE>set</CODE> method for the any property. 1210 * 1211 * <p> 1212 * For example, to add a new item, do as follows: 1213 * <pre> 1214 * getAny().add(newItem); 1215 * </pre> 1216 * 1217 * 1218 * <p> 1219 * Objects of the following type(s) are allowed in the list 1220 * {@link Object } 1221 * 1222 * 1223 */ 1224 public List<Object> getAny() { 1225 if (any == null) { 1226 any = new ArrayList<Object>(); 1227 } 1228 return this.any; 1229 } 1230 1231 public String toString() { 1232 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 1233 final StringBuilder buffer = new StringBuilder(); 1234 append(null, buffer, strategy); 1235 return buffer.toString(); 1236 } 1237 1238 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1239 strategy.appendStart(locator, this, buffer); 1240 appendFields(locator, buffer, strategy); 1241 strategy.appendEnd(locator, this, buffer); 1242 return buffer; 1243 } 1244 1245 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 1246 { 1247 List<Object> theAny; 1248 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1249 strategy.appendField(locator, this, "any", buffer, theAny); 1250 } 1251 return buffer; 1252 } 1253 1254 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 1255 int currentHashCode = 1; 1256 { 1257 List<Object> theAny; 1258 theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1259 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); 1260 } 1261 return currentHashCode; 1262 } 1263 1264 public int hashCode() { 1265 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 1266 return this.hashCode(null, strategy); 1267 } 1268 1269 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 1270 if (!(object instanceof DtoManagementContext.Server)) { 1271 return false; 1272 } 1273 if (this == object) { 1274 return true; 1275 } 1276 final DtoManagementContext.Server that = ((DtoManagementContext.Server) object); 1277 { 1278 List<Object> lhsAny; 1279 lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); 1280 List<Object> rhsAny; 1281 rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null); 1282 if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) { 1283 return false; 1284 } 1285 } 1286 return true; 1287 } 1288 1289 public boolean equals(Object object) { 1290 final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy(); 1291 return equals(null, null, object, strategy); 1292 } 1293 1294 } 1295 1296}