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