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.06.22 at 09:54:13 AM CEST 
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.XmlID;
023import javax.xml.bind.annotation.XmlRootElement;
024import javax.xml.bind.annotation.XmlSchemaType;
025import javax.xml.bind.annotation.XmlType;
026import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
027import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
028import javax.xml.namespace.QName;
029import org.jvnet.jaxb2_commons.lang.Equals;
030import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
031import org.jvnet.jaxb2_commons.lang.HashCode;
032import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
033import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
034import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
035import org.jvnet.jaxb2_commons.lang.ToString;
036import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
037import org.jvnet.jaxb2_commons.locator.ObjectLocator;
038import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
039
040
041/**
042 * <p>Java class for anonymous complex type.
043 * 
044 * <p>The following schema fragment specifies the expected content contained within this class.
045 * 
046 * <pre>
047 * &lt;complexType>
048 *   &lt;complexContent>
049 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
050 *       &lt;choice maxOccurs="unbounded" minOccurs="0">
051 *         &lt;choice>
052 *           &lt;element name="brokerService" minOccurs="0">
053 *             &lt;complexType>
054 *               &lt;complexContent>
055 *                 &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
056 *                   &lt;choice minOccurs="0">
057 *                     &lt;element ref="{http://activemq.apache.org/schema/core}broker"/>
058 *                     &lt;element ref="{http://activemq.apache.org/schema/core}brokerService"/>
059 *                     &lt;any namespace='##other'/>
060 *                   &lt;/choice>
061 *                 &lt;/restriction>
062 *               &lt;/complexContent>
063 *             &lt;/complexType>
064 *           &lt;/element>
065 *           &lt;any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
066 *         &lt;/choice>
067 *       &lt;/choice>
068 *       &lt;attribute name="brokerService" type="{http://www.w3.org/2001/XMLSchema}string" />
069 *       &lt;attribute name="ignoreAllErrors" type="{http://www.w3.org/2001/XMLSchema}boolean" />
070 *       &lt;attribute name="ignoreNoSpaceErrors" type="{http://www.w3.org/2001/XMLSchema}boolean" />
071 *       &lt;attribute name="ignoreSQLExceptions" type="{http://www.w3.org/2001/XMLSchema}boolean" />
072 *       &lt;attribute name="noSpaceMessage" type="{http://www.w3.org/2001/XMLSchema}string" />
073 *       &lt;attribute name="resumeCheckSleepPeriod" type="{http://www.w3.org/2001/XMLSchema}long" />
074 *       &lt;attribute name="sqlExceptionMessage" type="{http://www.w3.org/2001/XMLSchema}string" />
075 *       &lt;attribute name="stopStartConnectors" type="{http://www.w3.org/2001/XMLSchema}boolean" />
076 *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
077 *       &lt;anyAttribute processContents='lax' namespace='##other'/>
078 *     &lt;/restriction>
079 *   &lt;/complexContent>
080 * &lt;/complexType>
081 * </pre>
082 * 
083 * 
084 */
085@XmlAccessorType(XmlAccessType.FIELD)
086@XmlType(name = "", propOrder = {
087    "brokerServiceOrAny"
088})
089@XmlRootElement(name = "jDBCIOExceptionHandler")
090public class DtoJDBCIOExceptionHandler
091    implements Equals, HashCode, ToString
092{
093
094    @XmlElementRef(name = "brokerService", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false)
095    @XmlAnyElement(lax = true)
096    protected List<Object> brokerServiceOrAny;
097    @XmlAttribute(name = "brokerService")
098    protected String brokerService;
099    @XmlAttribute(name = "ignoreAllErrors")
100    protected Boolean ignoreAllErrors;
101    @XmlAttribute(name = "ignoreNoSpaceErrors")
102    protected Boolean ignoreNoSpaceErrors;
103    @XmlAttribute(name = "ignoreSQLExceptions")
104    protected Boolean ignoreSQLExceptions;
105    @XmlAttribute(name = "noSpaceMessage")
106    protected String noSpaceMessage;
107    @XmlAttribute(name = "resumeCheckSleepPeriod")
108    protected Long resumeCheckSleepPeriod;
109    @XmlAttribute(name = "sqlExceptionMessage")
110    protected String sqlExceptionMessage;
111    @XmlAttribute(name = "stopStartConnectors")
112    protected Boolean stopStartConnectors;
113    @XmlAttribute(name = "id")
114    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
115    @XmlID
116    @XmlSchemaType(name = "ID")
117    protected String id;
118    @XmlAnyAttribute
119    private Map<QName, String> otherAttributes = new HashMap<QName, String>();
120
121    /**
122     * Gets the value of the brokerServiceOrAny property.
123     * 
124     * <p>
125     * This accessor method returns a reference to the live list,
126     * not a snapshot. Therefore any modification you make to the
127     * returned list will be present inside the JAXB object.
128     * This is why there is not a <CODE>set</CODE> method for the brokerServiceOrAny property.
129     * 
130     * <p>
131     * For example, to add a new item, do as follows:
132     * <pre>
133     *    getBrokerServiceOrAny().add(newItem);
134     * </pre>
135     * 
136     * 
137     * <p>
138     * Objects of the following type(s) are allowed in the list
139     * {@link JAXBElement }{@code <}{@link DtoJDBCIOExceptionHandler.BrokerService }{@code >}
140     * {@link Object }
141     * 
142     * 
143     */
144    public List<Object> getBrokerServiceOrAny() {
145        if (brokerServiceOrAny == null) {
146            brokerServiceOrAny = new ArrayList<Object>();
147        }
148        return this.brokerServiceOrAny;
149    }
150
151    /**
152     * Gets the value of the brokerService property.
153     * 
154     * @return
155     *     possible object is
156     *     {@link String }
157     *     
158     */
159    public String getBrokerService() {
160        return brokerService;
161    }
162
163    /**
164     * Sets the value of the brokerService property.
165     * 
166     * @param value
167     *     allowed object is
168     *     {@link String }
169     *     
170     */
171    public void setBrokerService(String value) {
172        this.brokerService = value;
173    }
174
175    /**
176     * Gets the value of the ignoreAllErrors property.
177     * 
178     * @return
179     *     possible object is
180     *     {@link Boolean }
181     *     
182     */
183    public Boolean isIgnoreAllErrors() {
184        return ignoreAllErrors;
185    }
186
187    /**
188     * Sets the value of the ignoreAllErrors property.
189     * 
190     * @param value
191     *     allowed object is
192     *     {@link Boolean }
193     *     
194     */
195    public void setIgnoreAllErrors(Boolean value) {
196        this.ignoreAllErrors = value;
197    }
198
199    /**
200     * Gets the value of the ignoreNoSpaceErrors property.
201     * 
202     * @return
203     *     possible object is
204     *     {@link Boolean }
205     *     
206     */
207    public Boolean isIgnoreNoSpaceErrors() {
208        return ignoreNoSpaceErrors;
209    }
210
211    /**
212     * Sets the value of the ignoreNoSpaceErrors property.
213     * 
214     * @param value
215     *     allowed object is
216     *     {@link Boolean }
217     *     
218     */
219    public void setIgnoreNoSpaceErrors(Boolean value) {
220        this.ignoreNoSpaceErrors = value;
221    }
222
223    /**
224     * Gets the value of the ignoreSQLExceptions property.
225     * 
226     * @return
227     *     possible object is
228     *     {@link Boolean }
229     *     
230     */
231    public Boolean isIgnoreSQLExceptions() {
232        return ignoreSQLExceptions;
233    }
234
235    /**
236     * Sets the value of the ignoreSQLExceptions property.
237     * 
238     * @param value
239     *     allowed object is
240     *     {@link Boolean }
241     *     
242     */
243    public void setIgnoreSQLExceptions(Boolean value) {
244        this.ignoreSQLExceptions = value;
245    }
246
247    /**
248     * Gets the value of the noSpaceMessage property.
249     * 
250     * @return
251     *     possible object is
252     *     {@link String }
253     *     
254     */
255    public String getNoSpaceMessage() {
256        return noSpaceMessage;
257    }
258
259    /**
260     * Sets the value of the noSpaceMessage property.
261     * 
262     * @param value
263     *     allowed object is
264     *     {@link String }
265     *     
266     */
267    public void setNoSpaceMessage(String value) {
268        this.noSpaceMessage = value;
269    }
270
271    /**
272     * Gets the value of the resumeCheckSleepPeriod property.
273     * 
274     * @return
275     *     possible object is
276     *     {@link Long }
277     *     
278     */
279    public Long getResumeCheckSleepPeriod() {
280        return resumeCheckSleepPeriod;
281    }
282
283    /**
284     * Sets the value of the resumeCheckSleepPeriod property.
285     * 
286     * @param value
287     *     allowed object is
288     *     {@link Long }
289     *     
290     */
291    public void setResumeCheckSleepPeriod(Long value) {
292        this.resumeCheckSleepPeriod = value;
293    }
294
295    /**
296     * Gets the value of the sqlExceptionMessage property.
297     * 
298     * @return
299     *     possible object is
300     *     {@link String }
301     *     
302     */
303    public String getSqlExceptionMessage() {
304        return sqlExceptionMessage;
305    }
306
307    /**
308     * Sets the value of the sqlExceptionMessage property.
309     * 
310     * @param value
311     *     allowed object is
312     *     {@link String }
313     *     
314     */
315    public void setSqlExceptionMessage(String value) {
316        this.sqlExceptionMessage = value;
317    }
318
319    /**
320     * Gets the value of the stopStartConnectors property.
321     * 
322     * @return
323     *     possible object is
324     *     {@link Boolean }
325     *     
326     */
327    public Boolean isStopStartConnectors() {
328        return stopStartConnectors;
329    }
330
331    /**
332     * Sets the value of the stopStartConnectors property.
333     * 
334     * @param value
335     *     allowed object is
336     *     {@link Boolean }
337     *     
338     */
339    public void setStopStartConnectors(Boolean value) {
340        this.stopStartConnectors = value;
341    }
342
343    /**
344     * Gets the value of the id property.
345     * 
346     * @return
347     *     possible object is
348     *     {@link String }
349     *     
350     */
351    public String getId() {
352        return id;
353    }
354
355    /**
356     * Sets the value of the id property.
357     * 
358     * @param value
359     *     allowed object is
360     *     {@link String }
361     *     
362     */
363    public void setId(String value) {
364        this.id = value;
365    }
366
367    /**
368     * Gets a map that contains attributes that aren't bound to any typed property on this class.
369     * 
370     * <p>
371     * the map is keyed by the name of the attribute and 
372     * the value is the string value of the attribute.
373     * 
374     * the map returned by this method is live, and you can add new attribute
375     * by updating the map directly. Because of this design, there's no setter.
376     * 
377     * 
378     * @return
379     *     always non-null
380     */
381    public Map<QName, String> getOtherAttributes() {
382        return otherAttributes;
383    }
384
385    public String toString() {
386        final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
387        final StringBuilder buffer = new StringBuilder();
388        append(null, buffer, strategy);
389        return buffer.toString();
390    }
391
392    public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
393        strategy.appendStart(locator, this, buffer);
394        appendFields(locator, buffer, strategy);
395        strategy.appendEnd(locator, this, buffer);
396        return buffer;
397    }
398
399    public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
400        {
401            List<Object> theBrokerServiceOrAny;
402            theBrokerServiceOrAny = (((this.brokerServiceOrAny!= null)&&(!this.brokerServiceOrAny.isEmpty()))?this.getBrokerServiceOrAny():null);
403            strategy.appendField(locator, this, "brokerServiceOrAny", buffer, theBrokerServiceOrAny);
404        }
405        {
406            String theBrokerService;
407            theBrokerService = this.getBrokerService();
408            strategy.appendField(locator, this, "brokerService", buffer, theBrokerService);
409        }
410        {
411            Boolean theIgnoreAllErrors;
412            theIgnoreAllErrors = this.isIgnoreAllErrors();
413            strategy.appendField(locator, this, "ignoreAllErrors", buffer, theIgnoreAllErrors);
414        }
415        {
416            Boolean theIgnoreNoSpaceErrors;
417            theIgnoreNoSpaceErrors = this.isIgnoreNoSpaceErrors();
418            strategy.appendField(locator, this, "ignoreNoSpaceErrors", buffer, theIgnoreNoSpaceErrors);
419        }
420        {
421            Boolean theIgnoreSQLExceptions;
422            theIgnoreSQLExceptions = this.isIgnoreSQLExceptions();
423            strategy.appendField(locator, this, "ignoreSQLExceptions", buffer, theIgnoreSQLExceptions);
424        }
425        {
426            String theNoSpaceMessage;
427            theNoSpaceMessage = this.getNoSpaceMessage();
428            strategy.appendField(locator, this, "noSpaceMessage", buffer, theNoSpaceMessage);
429        }
430        {
431            Long theResumeCheckSleepPeriod;
432            theResumeCheckSleepPeriod = this.getResumeCheckSleepPeriod();
433            strategy.appendField(locator, this, "resumeCheckSleepPeriod", buffer, theResumeCheckSleepPeriod);
434        }
435        {
436            String theSqlExceptionMessage;
437            theSqlExceptionMessage = this.getSqlExceptionMessage();
438            strategy.appendField(locator, this, "sqlExceptionMessage", buffer, theSqlExceptionMessage);
439        }
440        {
441            Boolean theStopStartConnectors;
442            theStopStartConnectors = this.isStopStartConnectors();
443            strategy.appendField(locator, this, "stopStartConnectors", buffer, theStopStartConnectors);
444        }
445        {
446            String theId;
447            theId = this.getId();
448            strategy.appendField(locator, this, "id", buffer, theId);
449        }
450        return buffer;
451    }
452
453    public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
454        int currentHashCode = 1;
455        {
456            List<Object> theBrokerServiceOrAny;
457            theBrokerServiceOrAny = (((this.brokerServiceOrAny!= null)&&(!this.brokerServiceOrAny.isEmpty()))?this.getBrokerServiceOrAny():null);
458            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brokerServiceOrAny", theBrokerServiceOrAny), currentHashCode, theBrokerServiceOrAny);
459        }
460        {
461            String theBrokerService;
462            theBrokerService = this.getBrokerService();
463            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brokerService", theBrokerService), currentHashCode, theBrokerService);
464        }
465        {
466            Boolean theIgnoreAllErrors;
467            theIgnoreAllErrors = this.isIgnoreAllErrors();
468            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ignoreAllErrors", theIgnoreAllErrors), currentHashCode, theIgnoreAllErrors);
469        }
470        {
471            Boolean theIgnoreNoSpaceErrors;
472            theIgnoreNoSpaceErrors = this.isIgnoreNoSpaceErrors();
473            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ignoreNoSpaceErrors", theIgnoreNoSpaceErrors), currentHashCode, theIgnoreNoSpaceErrors);
474        }
475        {
476            Boolean theIgnoreSQLExceptions;
477            theIgnoreSQLExceptions = this.isIgnoreSQLExceptions();
478            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ignoreSQLExceptions", theIgnoreSQLExceptions), currentHashCode, theIgnoreSQLExceptions);
479        }
480        {
481            String theNoSpaceMessage;
482            theNoSpaceMessage = this.getNoSpaceMessage();
483            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "noSpaceMessage", theNoSpaceMessage), currentHashCode, theNoSpaceMessage);
484        }
485        {
486            Long theResumeCheckSleepPeriod;
487            theResumeCheckSleepPeriod = this.getResumeCheckSleepPeriod();
488            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resumeCheckSleepPeriod", theResumeCheckSleepPeriod), currentHashCode, theResumeCheckSleepPeriod);
489        }
490        {
491            String theSqlExceptionMessage;
492            theSqlExceptionMessage = this.getSqlExceptionMessage();
493            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sqlExceptionMessage", theSqlExceptionMessage), currentHashCode, theSqlExceptionMessage);
494        }
495        {
496            Boolean theStopStartConnectors;
497            theStopStartConnectors = this.isStopStartConnectors();
498            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stopStartConnectors", theStopStartConnectors), currentHashCode, theStopStartConnectors);
499        }
500        {
501            String theId;
502            theId = this.getId();
503            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
504        }
505        return currentHashCode;
506    }
507
508    public int hashCode() {
509        final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
510        return this.hashCode(null, strategy);
511    }
512
513    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
514        if (!(object instanceof DtoJDBCIOExceptionHandler)) {
515            return false;
516        }
517        if (this == object) {
518            return true;
519        }
520        final DtoJDBCIOExceptionHandler that = ((DtoJDBCIOExceptionHandler) object);
521        {
522            List<Object> lhsBrokerServiceOrAny;
523            lhsBrokerServiceOrAny = (((this.brokerServiceOrAny!= null)&&(!this.brokerServiceOrAny.isEmpty()))?this.getBrokerServiceOrAny():null);
524            List<Object> rhsBrokerServiceOrAny;
525            rhsBrokerServiceOrAny = (((that.brokerServiceOrAny!= null)&&(!that.brokerServiceOrAny.isEmpty()))?that.getBrokerServiceOrAny():null);
526            if (!strategy.equals(LocatorUtils.property(thisLocator, "brokerServiceOrAny", lhsBrokerServiceOrAny), LocatorUtils.property(thatLocator, "brokerServiceOrAny", rhsBrokerServiceOrAny), lhsBrokerServiceOrAny, rhsBrokerServiceOrAny)) {
527                return false;
528            }
529        }
530        {
531            String lhsBrokerService;
532            lhsBrokerService = this.getBrokerService();
533            String rhsBrokerService;
534            rhsBrokerService = that.getBrokerService();
535            if (!strategy.equals(LocatorUtils.property(thisLocator, "brokerService", lhsBrokerService), LocatorUtils.property(thatLocator, "brokerService", rhsBrokerService), lhsBrokerService, rhsBrokerService)) {
536                return false;
537            }
538        }
539        {
540            Boolean lhsIgnoreAllErrors;
541            lhsIgnoreAllErrors = this.isIgnoreAllErrors();
542            Boolean rhsIgnoreAllErrors;
543            rhsIgnoreAllErrors = that.isIgnoreAllErrors();
544            if (!strategy.equals(LocatorUtils.property(thisLocator, "ignoreAllErrors", lhsIgnoreAllErrors), LocatorUtils.property(thatLocator, "ignoreAllErrors", rhsIgnoreAllErrors), lhsIgnoreAllErrors, rhsIgnoreAllErrors)) {
545                return false;
546            }
547        }
548        {
549            Boolean lhsIgnoreNoSpaceErrors;
550            lhsIgnoreNoSpaceErrors = this.isIgnoreNoSpaceErrors();
551            Boolean rhsIgnoreNoSpaceErrors;
552            rhsIgnoreNoSpaceErrors = that.isIgnoreNoSpaceErrors();
553            if (!strategy.equals(LocatorUtils.property(thisLocator, "ignoreNoSpaceErrors", lhsIgnoreNoSpaceErrors), LocatorUtils.property(thatLocator, "ignoreNoSpaceErrors", rhsIgnoreNoSpaceErrors), lhsIgnoreNoSpaceErrors, rhsIgnoreNoSpaceErrors)) {
554                return false;
555            }
556        }
557        {
558            Boolean lhsIgnoreSQLExceptions;
559            lhsIgnoreSQLExceptions = this.isIgnoreSQLExceptions();
560            Boolean rhsIgnoreSQLExceptions;
561            rhsIgnoreSQLExceptions = that.isIgnoreSQLExceptions();
562            if (!strategy.equals(LocatorUtils.property(thisLocator, "ignoreSQLExceptions", lhsIgnoreSQLExceptions), LocatorUtils.property(thatLocator, "ignoreSQLExceptions", rhsIgnoreSQLExceptions), lhsIgnoreSQLExceptions, rhsIgnoreSQLExceptions)) {
563                return false;
564            }
565        }
566        {
567            String lhsNoSpaceMessage;
568            lhsNoSpaceMessage = this.getNoSpaceMessage();
569            String rhsNoSpaceMessage;
570            rhsNoSpaceMessage = that.getNoSpaceMessage();
571            if (!strategy.equals(LocatorUtils.property(thisLocator, "noSpaceMessage", lhsNoSpaceMessage), LocatorUtils.property(thatLocator, "noSpaceMessage", rhsNoSpaceMessage), lhsNoSpaceMessage, rhsNoSpaceMessage)) {
572                return false;
573            }
574        }
575        {
576            Long lhsResumeCheckSleepPeriod;
577            lhsResumeCheckSleepPeriod = this.getResumeCheckSleepPeriod();
578            Long rhsResumeCheckSleepPeriod;
579            rhsResumeCheckSleepPeriod = that.getResumeCheckSleepPeriod();
580            if (!strategy.equals(LocatorUtils.property(thisLocator, "resumeCheckSleepPeriod", lhsResumeCheckSleepPeriod), LocatorUtils.property(thatLocator, "resumeCheckSleepPeriod", rhsResumeCheckSleepPeriod), lhsResumeCheckSleepPeriod, rhsResumeCheckSleepPeriod)) {
581                return false;
582            }
583        }
584        {
585            String lhsSqlExceptionMessage;
586            lhsSqlExceptionMessage = this.getSqlExceptionMessage();
587            String rhsSqlExceptionMessage;
588            rhsSqlExceptionMessage = that.getSqlExceptionMessage();
589            if (!strategy.equals(LocatorUtils.property(thisLocator, "sqlExceptionMessage", lhsSqlExceptionMessage), LocatorUtils.property(thatLocator, "sqlExceptionMessage", rhsSqlExceptionMessage), lhsSqlExceptionMessage, rhsSqlExceptionMessage)) {
590                return false;
591            }
592        }
593        {
594            Boolean lhsStopStartConnectors;
595            lhsStopStartConnectors = this.isStopStartConnectors();
596            Boolean rhsStopStartConnectors;
597            rhsStopStartConnectors = that.isStopStartConnectors();
598            if (!strategy.equals(LocatorUtils.property(thisLocator, "stopStartConnectors", lhsStopStartConnectors), LocatorUtils.property(thatLocator, "stopStartConnectors", rhsStopStartConnectors), lhsStopStartConnectors, rhsStopStartConnectors)) {
599                return false;
600            }
601        }
602        {
603            String lhsId;
604            lhsId = this.getId();
605            String rhsId;
606            rhsId = that.getId();
607            if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) {
608                return false;
609            }
610        }
611        return true;
612    }
613
614    public boolean equals(Object object) {
615        final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
616        return equals(null, null, object, strategy);
617    }
618
619
620    /**
621     * <p>Java class for anonymous complex type.
622     * 
623     * <p>The following schema fragment specifies the expected content contained within this class.
624     * 
625     * <pre>
626     * &lt;complexType>
627     *   &lt;complexContent>
628     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
629     *       &lt;choice minOccurs="0">
630     *         &lt;element ref="{http://activemq.apache.org/schema/core}broker"/>
631     *         &lt;element ref="{http://activemq.apache.org/schema/core}brokerService"/>
632     *         &lt;any namespace='##other'/>
633     *       &lt;/choice>
634     *     &lt;/restriction>
635     *   &lt;/complexContent>
636     * &lt;/complexType>
637     * </pre>
638     * 
639     * 
640     */
641    @XmlAccessorType(XmlAccessType.FIELD)
642    @XmlType(name = "", propOrder = {
643        "broker",
644        "brokerService",
645        "any"
646    })
647    public static class BrokerService
648        implements Equals, HashCode, ToString
649    {
650
651        protected DtoBroker broker;
652        protected DtoBrokerService brokerService;
653        @XmlAnyElement(lax = true)
654        protected Object any;
655
656        /**
657         * Gets the value of the broker property.
658         * 
659         * @return
660         *     possible object is
661         *     {@link DtoBroker }
662         *     
663         */
664        public DtoBroker getBroker() {
665            return broker;
666        }
667
668        /**
669         * Sets the value of the broker property.
670         * 
671         * @param value
672         *     allowed object is
673         *     {@link DtoBroker }
674         *     
675         */
676        public void setBroker(DtoBroker value) {
677            this.broker = value;
678        }
679
680        /**
681         * Gets the value of the brokerService property.
682         * 
683         * @return
684         *     possible object is
685         *     {@link DtoBrokerService }
686         *     
687         */
688        public DtoBrokerService getBrokerService() {
689            return brokerService;
690        }
691
692        /**
693         * Sets the value of the brokerService property.
694         * 
695         * @param value
696         *     allowed object is
697         *     {@link DtoBrokerService }
698         *     
699         */
700        public void setBrokerService(DtoBrokerService value) {
701            this.brokerService = value;
702        }
703
704        /**
705         * Gets the value of the any property.
706         * 
707         * @return
708         *     possible object is
709         *     {@link Object }
710         *     
711         */
712        public Object getAny() {
713            return any;
714        }
715
716        /**
717         * Sets the value of the any property.
718         * 
719         * @param value
720         *     allowed object is
721         *     {@link Object }
722         *     
723         */
724        public void setAny(Object value) {
725            this.any = value;
726        }
727
728        public String toString() {
729            final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
730            final StringBuilder buffer = new StringBuilder();
731            append(null, buffer, strategy);
732            return buffer.toString();
733        }
734
735        public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
736            strategy.appendStart(locator, this, buffer);
737            appendFields(locator, buffer, strategy);
738            strategy.appendEnd(locator, this, buffer);
739            return buffer;
740        }
741
742        public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
743            {
744                DtoBroker theBroker;
745                theBroker = this.getBroker();
746                strategy.appendField(locator, this, "broker", buffer, theBroker);
747            }
748            {
749                DtoBrokerService theBrokerService;
750                theBrokerService = this.getBrokerService();
751                strategy.appendField(locator, this, "brokerService", buffer, theBrokerService);
752            }
753            {
754                Object theAny;
755                theAny = this.getAny();
756                strategy.appendField(locator, this, "any", buffer, theAny);
757            }
758            return buffer;
759        }
760
761        public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
762            int currentHashCode = 1;
763            {
764                DtoBroker theBroker;
765                theBroker = this.getBroker();
766                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "broker", theBroker), currentHashCode, theBroker);
767            }
768            {
769                DtoBrokerService theBrokerService;
770                theBrokerService = this.getBrokerService();
771                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brokerService", theBrokerService), currentHashCode, theBrokerService);
772            }
773            {
774                Object theAny;
775                theAny = this.getAny();
776                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny);
777            }
778            return currentHashCode;
779        }
780
781        public int hashCode() {
782            final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
783            return this.hashCode(null, strategy);
784        }
785
786        public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
787            if (!(object instanceof DtoJDBCIOExceptionHandler.BrokerService)) {
788                return false;
789            }
790            if (this == object) {
791                return true;
792            }
793            final DtoJDBCIOExceptionHandler.BrokerService that = ((DtoJDBCIOExceptionHandler.BrokerService) object);
794            {
795                DtoBroker lhsBroker;
796                lhsBroker = this.getBroker();
797                DtoBroker rhsBroker;
798                rhsBroker = that.getBroker();
799                if (!strategy.equals(LocatorUtils.property(thisLocator, "broker", lhsBroker), LocatorUtils.property(thatLocator, "broker", rhsBroker), lhsBroker, rhsBroker)) {
800                    return false;
801                }
802            }
803            {
804                DtoBrokerService lhsBrokerService;
805                lhsBrokerService = this.getBrokerService();
806                DtoBrokerService rhsBrokerService;
807                rhsBrokerService = that.getBrokerService();
808                if (!strategy.equals(LocatorUtils.property(thisLocator, "brokerService", lhsBrokerService), LocatorUtils.property(thatLocator, "brokerService", rhsBrokerService), lhsBrokerService, rhsBrokerService)) {
809                    return false;
810                }
811            }
812            {
813                Object lhsAny;
814                lhsAny = this.getAny();
815                Object rhsAny;
816                rhsAny = that.getAny();
817                if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) {
818                    return false;
819                }
820            }
821            return true;
822        }
823
824        public boolean equals(Object object) {
825            final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
826            return equals(null, null, object, strategy);
827        }
828
829    }
830
831}