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.math.BigInteger;
012import java.util.ArrayList;
013import java.util.HashMap;
014import java.util.List;
015import java.util.Map;
016import javax.xml.bind.JAXBElement;
017import javax.xml.bind.annotation.XmlAccessType;
018import javax.xml.bind.annotation.XmlAccessorType;
019import javax.xml.bind.annotation.XmlAnyAttribute;
020import javax.xml.bind.annotation.XmlAnyElement;
021import javax.xml.bind.annotation.XmlAttribute;
022import javax.xml.bind.annotation.XmlElementRef;
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 * &lt;complexType>
049 *   &lt;complexContent>
050 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
051 *       &lt;choice maxOccurs="unbounded" minOccurs="0">
052 *         &lt;choice>
053 *           &lt;element name="brokerService" minOccurs="0">
054 *             &lt;complexType>
055 *               &lt;complexContent>
056 *                 &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
057 *                   &lt;choice minOccurs="0">
058 *                     &lt;element ref="{http://activemq.apache.org/schema/core}broker"/>
059 *                     &lt;element ref="{http://activemq.apache.org/schema/core}brokerService"/>
060 *                     &lt;any namespace='##other'/>
061 *                   &lt;/choice>
062 *                 &lt;/restriction>
063 *               &lt;/complexContent>
064 *             &lt;/complexType>
065 *           &lt;/element>
066 *           &lt;any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
067 *         &lt;/choice>
068 *       &lt;/choice>
069 *       &lt;attribute name="brokerService" type="{http://www.w3.org/2001/XMLSchema}string" />
070 *       &lt;attribute name="cleanupInterval" type="{http://www.w3.org/2001/XMLSchema}long" />
071 *       &lt;attribute name="directory" type="{http://www.w3.org/2001/XMLSchema}string" />
072 *       &lt;attribute name="enableIndexWriteAsync" type="{http://www.w3.org/2001/XMLSchema}boolean" />
073 *       &lt;attribute name="failIfDatabaseIsLocked" type="{http://www.w3.org/2001/XMLSchema}boolean" />
074 *       &lt;attribute name="indexCacheSize" type="{http://www.w3.org/2001/XMLSchema}integer" />
075 *       &lt;attribute name="indexEnablePageCaching" type="{http://www.w3.org/2001/XMLSchema}boolean" />
076 *       &lt;attribute name="indexPageSize" type="{http://www.w3.org/2001/XMLSchema}integer" />
077 *       &lt;attribute name="indexWriteBatchSize" type="{http://www.w3.org/2001/XMLSchema}integer" />
078 *       &lt;attribute name="journalMaxFileLength" type="{http://www.w3.org/2001/XMLSchema}integer" />
079 *       &lt;attribute name="journalMaxWriteBatchSize" type="{http://www.w3.org/2001/XMLSchema}integer" />
080 *       &lt;attribute name="lazyInit" type="{http://www.w3.org/2001/XMLSchema}boolean" />
081 *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
082 *       &lt;anyAttribute processContents='lax' namespace='##other'/>
083 *     &lt;/restriction>
084 *   &lt;/complexContent>
085 * &lt;/complexType>
086 * </pre>
087 * 
088 * 
089 */
090@XmlAccessorType(XmlAccessType.FIELD)
091@XmlType(name = "", propOrder = {
092    "brokerServiceOrAny"
093})
094@XmlRootElement(name = "pListStoreImpl")
095public class DtoPListStoreImpl implements Equals, HashCode, ToString
096{
097
098    @XmlElementRef(name = "brokerService", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false)
099    @XmlAnyElement(lax = true)
100    protected List<Object> brokerServiceOrAny;
101    @XmlAttribute(name = "brokerService")
102    protected String brokerService;
103    @XmlAttribute(name = "cleanupInterval")
104    protected Long cleanupInterval;
105    @XmlAttribute(name = "directory")
106    protected String directory;
107    @XmlAttribute(name = "enableIndexWriteAsync")
108    protected Boolean enableIndexWriteAsync;
109    @XmlAttribute(name = "failIfDatabaseIsLocked")
110    protected Boolean failIfDatabaseIsLocked;
111    @XmlAttribute(name = "indexCacheSize")
112    protected BigInteger indexCacheSize;
113    @XmlAttribute(name = "indexEnablePageCaching")
114    protected Boolean indexEnablePageCaching;
115    @XmlAttribute(name = "indexPageSize")
116    protected BigInteger indexPageSize;
117    @XmlAttribute(name = "indexWriteBatchSize")
118    protected BigInteger indexWriteBatchSize;
119    @XmlAttribute(name = "journalMaxFileLength")
120    protected BigInteger journalMaxFileLength;
121    @XmlAttribute(name = "journalMaxWriteBatchSize")
122    protected BigInteger journalMaxWriteBatchSize;
123    @XmlAttribute(name = "lazyInit")
124    protected Boolean lazyInit;
125    @XmlAttribute(name = "id")
126    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
127    @XmlID
128    @XmlSchemaType(name = "ID")
129    protected String id;
130    @XmlAnyAttribute
131    private Map<QName, String> otherAttributes = new HashMap<QName, String>();
132
133    /**
134     * Gets the value of the brokerServiceOrAny property.
135     * 
136     * <p>
137     * This accessor method returns a reference to the live list,
138     * not a snapshot. Therefore any modification you make to the
139     * returned list will be present inside the JAXB object.
140     * This is why there is not a <CODE>set</CODE> method for the brokerServiceOrAny property.
141     * 
142     * <p>
143     * For example, to add a new item, do as follows:
144     * <pre>
145     *    getBrokerServiceOrAny().add(newItem);
146     * </pre>
147     * 
148     * 
149     * <p>
150     * Objects of the following type(s) are allowed in the list
151     * {@link JAXBElement }{@code <}{@link DtoPListStoreImpl.BrokerService }{@code >}
152     * {@link Object }
153     * 
154     * 
155     */
156    public List<Object> getBrokerServiceOrAny() {
157        if (brokerServiceOrAny == null) {
158            brokerServiceOrAny = new ArrayList<Object>();
159        }
160        return this.brokerServiceOrAny;
161    }
162
163    /**
164     * Gets the value of the brokerService property.
165     * 
166     * @return
167     *     possible object is
168     *     {@link String }
169     *     
170     */
171    public String getBrokerService() {
172        return brokerService;
173    }
174
175    /**
176     * Sets the value of the brokerService property.
177     * 
178     * @param value
179     *     allowed object is
180     *     {@link String }
181     *     
182     */
183    public void setBrokerService(String value) {
184        this.brokerService = value;
185    }
186
187    /**
188     * Gets the value of the cleanupInterval property.
189     * 
190     * @return
191     *     possible object is
192     *     {@link Long }
193     *     
194     */
195    public Long getCleanupInterval() {
196        return cleanupInterval;
197    }
198
199    /**
200     * Sets the value of the cleanupInterval property.
201     * 
202     * @param value
203     *     allowed object is
204     *     {@link Long }
205     *     
206     */
207    public void setCleanupInterval(Long value) {
208        this.cleanupInterval = value;
209    }
210
211    /**
212     * Gets the value of the directory property.
213     * 
214     * @return
215     *     possible object is
216     *     {@link String }
217     *     
218     */
219    public String getDirectory() {
220        return directory;
221    }
222
223    /**
224     * Sets the value of the directory property.
225     * 
226     * @param value
227     *     allowed object is
228     *     {@link String }
229     *     
230     */
231    public void setDirectory(String value) {
232        this.directory = value;
233    }
234
235    /**
236     * Gets the value of the enableIndexWriteAsync property.
237     * 
238     * @return
239     *     possible object is
240     *     {@link Boolean }
241     *     
242     */
243    public Boolean isEnableIndexWriteAsync() {
244        return enableIndexWriteAsync;
245    }
246
247    /**
248     * Sets the value of the enableIndexWriteAsync property.
249     * 
250     * @param value
251     *     allowed object is
252     *     {@link Boolean }
253     *     
254     */
255    public void setEnableIndexWriteAsync(Boolean value) {
256        this.enableIndexWriteAsync = value;
257    }
258
259    /**
260     * Gets the value of the failIfDatabaseIsLocked property.
261     * 
262     * @return
263     *     possible object is
264     *     {@link Boolean }
265     *     
266     */
267    public Boolean isFailIfDatabaseIsLocked() {
268        return failIfDatabaseIsLocked;
269    }
270
271    /**
272     * Sets the value of the failIfDatabaseIsLocked property.
273     * 
274     * @param value
275     *     allowed object is
276     *     {@link Boolean }
277     *     
278     */
279    public void setFailIfDatabaseIsLocked(Boolean value) {
280        this.failIfDatabaseIsLocked = value;
281    }
282
283    /**
284     * Gets the value of the indexCacheSize property.
285     * 
286     * @return
287     *     possible object is
288     *     {@link BigInteger }
289     *     
290     */
291    public BigInteger getIndexCacheSize() {
292        return indexCacheSize;
293    }
294
295    /**
296     * Sets the value of the indexCacheSize property.
297     * 
298     * @param value
299     *     allowed object is
300     *     {@link BigInteger }
301     *     
302     */
303    public void setIndexCacheSize(BigInteger value) {
304        this.indexCacheSize = value;
305    }
306
307    /**
308     * Gets the value of the indexEnablePageCaching property.
309     * 
310     * @return
311     *     possible object is
312     *     {@link Boolean }
313     *     
314     */
315    public Boolean isIndexEnablePageCaching() {
316        return indexEnablePageCaching;
317    }
318
319    /**
320     * Sets the value of the indexEnablePageCaching property.
321     * 
322     * @param value
323     *     allowed object is
324     *     {@link Boolean }
325     *     
326     */
327    public void setIndexEnablePageCaching(Boolean value) {
328        this.indexEnablePageCaching = value;
329    }
330
331    /**
332     * Gets the value of the indexPageSize property.
333     * 
334     * @return
335     *     possible object is
336     *     {@link BigInteger }
337     *     
338     */
339    public BigInteger getIndexPageSize() {
340        return indexPageSize;
341    }
342
343    /**
344     * Sets the value of the indexPageSize property.
345     * 
346     * @param value
347     *     allowed object is
348     *     {@link BigInteger }
349     *     
350     */
351    public void setIndexPageSize(BigInteger value) {
352        this.indexPageSize = value;
353    }
354
355    /**
356     * Gets the value of the indexWriteBatchSize property.
357     * 
358     * @return
359     *     possible object is
360     *     {@link BigInteger }
361     *     
362     */
363    public BigInteger getIndexWriteBatchSize() {
364        return indexWriteBatchSize;
365    }
366
367    /**
368     * Sets the value of the indexWriteBatchSize property.
369     * 
370     * @param value
371     *     allowed object is
372     *     {@link BigInteger }
373     *     
374     */
375    public void setIndexWriteBatchSize(BigInteger value) {
376        this.indexWriteBatchSize = value;
377    }
378
379    /**
380     * Gets the value of the journalMaxFileLength property.
381     * 
382     * @return
383     *     possible object is
384     *     {@link BigInteger }
385     *     
386     */
387    public BigInteger getJournalMaxFileLength() {
388        return journalMaxFileLength;
389    }
390
391    /**
392     * Sets the value of the journalMaxFileLength property.
393     * 
394     * @param value
395     *     allowed object is
396     *     {@link BigInteger }
397     *     
398     */
399    public void setJournalMaxFileLength(BigInteger value) {
400        this.journalMaxFileLength = value;
401    }
402
403    /**
404     * Gets the value of the journalMaxWriteBatchSize property.
405     * 
406     * @return
407     *     possible object is
408     *     {@link BigInteger }
409     *     
410     */
411    public BigInteger getJournalMaxWriteBatchSize() {
412        return journalMaxWriteBatchSize;
413    }
414
415    /**
416     * Sets the value of the journalMaxWriteBatchSize property.
417     * 
418     * @param value
419     *     allowed object is
420     *     {@link BigInteger }
421     *     
422     */
423    public void setJournalMaxWriteBatchSize(BigInteger value) {
424        this.journalMaxWriteBatchSize = value;
425    }
426
427    /**
428     * Gets the value of the lazyInit property.
429     * 
430     * @return
431     *     possible object is
432     *     {@link Boolean }
433     *     
434     */
435    public Boolean isLazyInit() {
436        return lazyInit;
437    }
438
439    /**
440     * Sets the value of the lazyInit property.
441     * 
442     * @param value
443     *     allowed object is
444     *     {@link Boolean }
445     *     
446     */
447    public void setLazyInit(Boolean value) {
448        this.lazyInit = value;
449    }
450
451    /**
452     * Gets the value of the id property.
453     * 
454     * @return
455     *     possible object is
456     *     {@link String }
457     *     
458     */
459    public String getId() {
460        return id;
461    }
462
463    /**
464     * Sets the value of the id property.
465     * 
466     * @param value
467     *     allowed object is
468     *     {@link String }
469     *     
470     */
471    public void setId(String value) {
472        this.id = value;
473    }
474
475    /**
476     * Gets a map that contains attributes that aren't bound to any typed property on this class.
477     * 
478     * <p>
479     * the map is keyed by the name of the attribute and 
480     * the value is the string value of the attribute.
481     * 
482     * the map returned by this method is live, and you can add new attribute
483     * by updating the map directly. Because of this design, there's no setter.
484     * 
485     * 
486     * @return
487     *     always non-null
488     */
489    public Map<QName, String> getOtherAttributes() {
490        return otherAttributes;
491    }
492
493    public String toString() {
494        final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
495        final StringBuilder buffer = new StringBuilder();
496        append(null, buffer, strategy);
497        return buffer.toString();
498    }
499
500    public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
501        strategy.appendStart(locator, this, buffer);
502        appendFields(locator, buffer, strategy);
503        strategy.appendEnd(locator, this, buffer);
504        return buffer;
505    }
506
507    public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
508        {
509            List<Object> theBrokerServiceOrAny;
510            theBrokerServiceOrAny = (((this.brokerServiceOrAny!= null)&&(!this.brokerServiceOrAny.isEmpty()))?this.getBrokerServiceOrAny():null);
511            strategy.appendField(locator, this, "brokerServiceOrAny", buffer, theBrokerServiceOrAny);
512        }
513        {
514            String theBrokerService;
515            theBrokerService = this.getBrokerService();
516            strategy.appendField(locator, this, "brokerService", buffer, theBrokerService);
517        }
518        {
519            Long theCleanupInterval;
520            theCleanupInterval = this.getCleanupInterval();
521            strategy.appendField(locator, this, "cleanupInterval", buffer, theCleanupInterval);
522        }
523        {
524            String theDirectory;
525            theDirectory = this.getDirectory();
526            strategy.appendField(locator, this, "directory", buffer, theDirectory);
527        }
528        {
529            Boolean theEnableIndexWriteAsync;
530            theEnableIndexWriteAsync = this.isEnableIndexWriteAsync();
531            strategy.appendField(locator, this, "enableIndexWriteAsync", buffer, theEnableIndexWriteAsync);
532        }
533        {
534            Boolean theFailIfDatabaseIsLocked;
535            theFailIfDatabaseIsLocked = this.isFailIfDatabaseIsLocked();
536            strategy.appendField(locator, this, "failIfDatabaseIsLocked", buffer, theFailIfDatabaseIsLocked);
537        }
538        {
539            BigInteger theIndexCacheSize;
540            theIndexCacheSize = this.getIndexCacheSize();
541            strategy.appendField(locator, this, "indexCacheSize", buffer, theIndexCacheSize);
542        }
543        {
544            Boolean theIndexEnablePageCaching;
545            theIndexEnablePageCaching = this.isIndexEnablePageCaching();
546            strategy.appendField(locator, this, "indexEnablePageCaching", buffer, theIndexEnablePageCaching);
547        }
548        {
549            BigInteger theIndexPageSize;
550            theIndexPageSize = this.getIndexPageSize();
551            strategy.appendField(locator, this, "indexPageSize", buffer, theIndexPageSize);
552        }
553        {
554            BigInteger theIndexWriteBatchSize;
555            theIndexWriteBatchSize = this.getIndexWriteBatchSize();
556            strategy.appendField(locator, this, "indexWriteBatchSize", buffer, theIndexWriteBatchSize);
557        }
558        {
559            BigInteger theJournalMaxFileLength;
560            theJournalMaxFileLength = this.getJournalMaxFileLength();
561            strategy.appendField(locator, this, "journalMaxFileLength", buffer, theJournalMaxFileLength);
562        }
563        {
564            BigInteger theJournalMaxWriteBatchSize;
565            theJournalMaxWriteBatchSize = this.getJournalMaxWriteBatchSize();
566            strategy.appendField(locator, this, "journalMaxWriteBatchSize", buffer, theJournalMaxWriteBatchSize);
567        }
568        {
569            Boolean theLazyInit;
570            theLazyInit = this.isLazyInit();
571            strategy.appendField(locator, this, "lazyInit", buffer, theLazyInit);
572        }
573        {
574            String theId;
575            theId = this.getId();
576            strategy.appendField(locator, this, "id", buffer, theId);
577        }
578        return buffer;
579    }
580
581    public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
582        int currentHashCode = 1;
583        {
584            List<Object> theBrokerServiceOrAny;
585            theBrokerServiceOrAny = (((this.brokerServiceOrAny!= null)&&(!this.brokerServiceOrAny.isEmpty()))?this.getBrokerServiceOrAny():null);
586            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brokerServiceOrAny", theBrokerServiceOrAny), currentHashCode, theBrokerServiceOrAny);
587        }
588        {
589            String theBrokerService;
590            theBrokerService = this.getBrokerService();
591            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brokerService", theBrokerService), currentHashCode, theBrokerService);
592        }
593        {
594            Long theCleanupInterval;
595            theCleanupInterval = this.getCleanupInterval();
596            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cleanupInterval", theCleanupInterval), currentHashCode, theCleanupInterval);
597        }
598        {
599            String theDirectory;
600            theDirectory = this.getDirectory();
601            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "directory", theDirectory), currentHashCode, theDirectory);
602        }
603        {
604            Boolean theEnableIndexWriteAsync;
605            theEnableIndexWriteAsync = this.isEnableIndexWriteAsync();
606            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "enableIndexWriteAsync", theEnableIndexWriteAsync), currentHashCode, theEnableIndexWriteAsync);
607        }
608        {
609            Boolean theFailIfDatabaseIsLocked;
610            theFailIfDatabaseIsLocked = this.isFailIfDatabaseIsLocked();
611            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "failIfDatabaseIsLocked", theFailIfDatabaseIsLocked), currentHashCode, theFailIfDatabaseIsLocked);
612        }
613        {
614            BigInteger theIndexCacheSize;
615            theIndexCacheSize = this.getIndexCacheSize();
616            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexCacheSize", theIndexCacheSize), currentHashCode, theIndexCacheSize);
617        }
618        {
619            Boolean theIndexEnablePageCaching;
620            theIndexEnablePageCaching = this.isIndexEnablePageCaching();
621            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexEnablePageCaching", theIndexEnablePageCaching), currentHashCode, theIndexEnablePageCaching);
622        }
623        {
624            BigInteger theIndexPageSize;
625            theIndexPageSize = this.getIndexPageSize();
626            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexPageSize", theIndexPageSize), currentHashCode, theIndexPageSize);
627        }
628        {
629            BigInteger theIndexWriteBatchSize;
630            theIndexWriteBatchSize = this.getIndexWriteBatchSize();
631            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexWriteBatchSize", theIndexWriteBatchSize), currentHashCode, theIndexWriteBatchSize);
632        }
633        {
634            BigInteger theJournalMaxFileLength;
635            theJournalMaxFileLength = this.getJournalMaxFileLength();
636            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "journalMaxFileLength", theJournalMaxFileLength), currentHashCode, theJournalMaxFileLength);
637        }
638        {
639            BigInteger theJournalMaxWriteBatchSize;
640            theJournalMaxWriteBatchSize = this.getJournalMaxWriteBatchSize();
641            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "journalMaxWriteBatchSize", theJournalMaxWriteBatchSize), currentHashCode, theJournalMaxWriteBatchSize);
642        }
643        {
644            Boolean theLazyInit;
645            theLazyInit = this.isLazyInit();
646            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lazyInit", theLazyInit), currentHashCode, theLazyInit);
647        }
648        {
649            String theId;
650            theId = this.getId();
651            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
652        }
653        return currentHashCode;
654    }
655
656    public int hashCode() {
657        final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
658        return this.hashCode(null, strategy);
659    }
660
661    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
662        if (!(object instanceof DtoPListStoreImpl)) {
663            return false;
664        }
665        if (this == object) {
666            return true;
667        }
668        final DtoPListStoreImpl that = ((DtoPListStoreImpl) object);
669        {
670            List<Object> lhsBrokerServiceOrAny;
671            lhsBrokerServiceOrAny = (((this.brokerServiceOrAny!= null)&&(!this.brokerServiceOrAny.isEmpty()))?this.getBrokerServiceOrAny():null);
672            List<Object> rhsBrokerServiceOrAny;
673            rhsBrokerServiceOrAny = (((that.brokerServiceOrAny!= null)&&(!that.brokerServiceOrAny.isEmpty()))?that.getBrokerServiceOrAny():null);
674            if (!strategy.equals(LocatorUtils.property(thisLocator, "brokerServiceOrAny", lhsBrokerServiceOrAny), LocatorUtils.property(thatLocator, "brokerServiceOrAny", rhsBrokerServiceOrAny), lhsBrokerServiceOrAny, rhsBrokerServiceOrAny)) {
675                return false;
676            }
677        }
678        {
679            String lhsBrokerService;
680            lhsBrokerService = this.getBrokerService();
681            String rhsBrokerService;
682            rhsBrokerService = that.getBrokerService();
683            if (!strategy.equals(LocatorUtils.property(thisLocator, "brokerService", lhsBrokerService), LocatorUtils.property(thatLocator, "brokerService", rhsBrokerService), lhsBrokerService, rhsBrokerService)) {
684                return false;
685            }
686        }
687        {
688            Long lhsCleanupInterval;
689            lhsCleanupInterval = this.getCleanupInterval();
690            Long rhsCleanupInterval;
691            rhsCleanupInterval = that.getCleanupInterval();
692            if (!strategy.equals(LocatorUtils.property(thisLocator, "cleanupInterval", lhsCleanupInterval), LocatorUtils.property(thatLocator, "cleanupInterval", rhsCleanupInterval), lhsCleanupInterval, rhsCleanupInterval)) {
693                return false;
694            }
695        }
696        {
697            String lhsDirectory;
698            lhsDirectory = this.getDirectory();
699            String rhsDirectory;
700            rhsDirectory = that.getDirectory();
701            if (!strategy.equals(LocatorUtils.property(thisLocator, "directory", lhsDirectory), LocatorUtils.property(thatLocator, "directory", rhsDirectory), lhsDirectory, rhsDirectory)) {
702                return false;
703            }
704        }
705        {
706            Boolean lhsEnableIndexWriteAsync;
707            lhsEnableIndexWriteAsync = this.isEnableIndexWriteAsync();
708            Boolean rhsEnableIndexWriteAsync;
709            rhsEnableIndexWriteAsync = that.isEnableIndexWriteAsync();
710            if (!strategy.equals(LocatorUtils.property(thisLocator, "enableIndexWriteAsync", lhsEnableIndexWriteAsync), LocatorUtils.property(thatLocator, "enableIndexWriteAsync", rhsEnableIndexWriteAsync), lhsEnableIndexWriteAsync, rhsEnableIndexWriteAsync)) {
711                return false;
712            }
713        }
714        {
715            Boolean lhsFailIfDatabaseIsLocked;
716            lhsFailIfDatabaseIsLocked = this.isFailIfDatabaseIsLocked();
717            Boolean rhsFailIfDatabaseIsLocked;
718            rhsFailIfDatabaseIsLocked = that.isFailIfDatabaseIsLocked();
719            if (!strategy.equals(LocatorUtils.property(thisLocator, "failIfDatabaseIsLocked", lhsFailIfDatabaseIsLocked), LocatorUtils.property(thatLocator, "failIfDatabaseIsLocked", rhsFailIfDatabaseIsLocked), lhsFailIfDatabaseIsLocked, rhsFailIfDatabaseIsLocked)) {
720                return false;
721            }
722        }
723        {
724            BigInteger lhsIndexCacheSize;
725            lhsIndexCacheSize = this.getIndexCacheSize();
726            BigInteger rhsIndexCacheSize;
727            rhsIndexCacheSize = that.getIndexCacheSize();
728            if (!strategy.equals(LocatorUtils.property(thisLocator, "indexCacheSize", lhsIndexCacheSize), LocatorUtils.property(thatLocator, "indexCacheSize", rhsIndexCacheSize), lhsIndexCacheSize, rhsIndexCacheSize)) {
729                return false;
730            }
731        }
732        {
733            Boolean lhsIndexEnablePageCaching;
734            lhsIndexEnablePageCaching = this.isIndexEnablePageCaching();
735            Boolean rhsIndexEnablePageCaching;
736            rhsIndexEnablePageCaching = that.isIndexEnablePageCaching();
737            if (!strategy.equals(LocatorUtils.property(thisLocator, "indexEnablePageCaching", lhsIndexEnablePageCaching), LocatorUtils.property(thatLocator, "indexEnablePageCaching", rhsIndexEnablePageCaching), lhsIndexEnablePageCaching, rhsIndexEnablePageCaching)) {
738                return false;
739            }
740        }
741        {
742            BigInteger lhsIndexPageSize;
743            lhsIndexPageSize = this.getIndexPageSize();
744            BigInteger rhsIndexPageSize;
745            rhsIndexPageSize = that.getIndexPageSize();
746            if (!strategy.equals(LocatorUtils.property(thisLocator, "indexPageSize", lhsIndexPageSize), LocatorUtils.property(thatLocator, "indexPageSize", rhsIndexPageSize), lhsIndexPageSize, rhsIndexPageSize)) {
747                return false;
748            }
749        }
750        {
751            BigInteger lhsIndexWriteBatchSize;
752            lhsIndexWriteBatchSize = this.getIndexWriteBatchSize();
753            BigInteger rhsIndexWriteBatchSize;
754            rhsIndexWriteBatchSize = that.getIndexWriteBatchSize();
755            if (!strategy.equals(LocatorUtils.property(thisLocator, "indexWriteBatchSize", lhsIndexWriteBatchSize), LocatorUtils.property(thatLocator, "indexWriteBatchSize", rhsIndexWriteBatchSize), lhsIndexWriteBatchSize, rhsIndexWriteBatchSize)) {
756                return false;
757            }
758        }
759        {
760            BigInteger lhsJournalMaxFileLength;
761            lhsJournalMaxFileLength = this.getJournalMaxFileLength();
762            BigInteger rhsJournalMaxFileLength;
763            rhsJournalMaxFileLength = that.getJournalMaxFileLength();
764            if (!strategy.equals(LocatorUtils.property(thisLocator, "journalMaxFileLength", lhsJournalMaxFileLength), LocatorUtils.property(thatLocator, "journalMaxFileLength", rhsJournalMaxFileLength), lhsJournalMaxFileLength, rhsJournalMaxFileLength)) {
765                return false;
766            }
767        }
768        {
769            BigInteger lhsJournalMaxWriteBatchSize;
770            lhsJournalMaxWriteBatchSize = this.getJournalMaxWriteBatchSize();
771            BigInteger rhsJournalMaxWriteBatchSize;
772            rhsJournalMaxWriteBatchSize = that.getJournalMaxWriteBatchSize();
773            if (!strategy.equals(LocatorUtils.property(thisLocator, "journalMaxWriteBatchSize", lhsJournalMaxWriteBatchSize), LocatorUtils.property(thatLocator, "journalMaxWriteBatchSize", rhsJournalMaxWriteBatchSize), lhsJournalMaxWriteBatchSize, rhsJournalMaxWriteBatchSize)) {
774                return false;
775            }
776        }
777        {
778            Boolean lhsLazyInit;
779            lhsLazyInit = this.isLazyInit();
780            Boolean rhsLazyInit;
781            rhsLazyInit = that.isLazyInit();
782            if (!strategy.equals(LocatorUtils.property(thisLocator, "lazyInit", lhsLazyInit), LocatorUtils.property(thatLocator, "lazyInit", rhsLazyInit), lhsLazyInit, rhsLazyInit)) {
783                return false;
784            }
785        }
786        {
787            String lhsId;
788            lhsId = this.getId();
789            String rhsId;
790            rhsId = that.getId();
791            if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) {
792                return false;
793            }
794        }
795        return true;
796    }
797
798    public boolean equals(Object object) {
799        final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
800        return equals(null, null, object, strategy);
801    }
802
803
804    /**
805     * <p>Java class for anonymous complex type.
806     * 
807     * <p>The following schema fragment specifies the expected content contained within this class.
808     * 
809     * <pre>
810     * &lt;complexType>
811     *   &lt;complexContent>
812     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
813     *       &lt;choice minOccurs="0">
814     *         &lt;element ref="{http://activemq.apache.org/schema/core}broker"/>
815     *         &lt;element ref="{http://activemq.apache.org/schema/core}brokerService"/>
816     *         &lt;any namespace='##other'/>
817     *       &lt;/choice>
818     *     &lt;/restriction>
819     *   &lt;/complexContent>
820     * &lt;/complexType>
821     * </pre>
822     * 
823     * 
824     */
825    @XmlAccessorType(XmlAccessType.FIELD)
826    @XmlType(name = "", propOrder = {
827        "broker",
828        "brokerService",
829        "any"
830    })
831    public static class BrokerService
832        implements Equals, HashCode, ToString
833    {
834
835        protected DtoBroker broker;
836        protected DtoBrokerService brokerService;
837        @XmlAnyElement(lax = true)
838        protected Object any;
839
840        /**
841         * Gets the value of the broker property.
842         * 
843         * @return
844         *     possible object is
845         *     {@link DtoBroker }
846         *     
847         */
848        public DtoBroker getBroker() {
849            return broker;
850        }
851
852        /**
853         * Sets the value of the broker property.
854         * 
855         * @param value
856         *     allowed object is
857         *     {@link DtoBroker }
858         *     
859         */
860        public void setBroker(DtoBroker value) {
861            this.broker = value;
862        }
863
864        /**
865         * Gets the value of the brokerService property.
866         * 
867         * @return
868         *     possible object is
869         *     {@link DtoBrokerService }
870         *     
871         */
872        public DtoBrokerService getBrokerService() {
873            return brokerService;
874        }
875
876        /**
877         * Sets the value of the brokerService property.
878         * 
879         * @param value
880         *     allowed object is
881         *     {@link DtoBrokerService }
882         *     
883         */
884        public void setBrokerService(DtoBrokerService value) {
885            this.brokerService = value;
886        }
887
888        /**
889         * Gets the value of the any property.
890         * 
891         * @return
892         *     possible object is
893         *     {@link Object }
894         *     
895         */
896        public Object getAny() {
897            return any;
898        }
899
900        /**
901         * Sets the value of the any property.
902         * 
903         * @param value
904         *     allowed object is
905         *     {@link Object }
906         *     
907         */
908        public void setAny(Object value) {
909            this.any = value;
910        }
911
912        public String toString() {
913            final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
914            final StringBuilder buffer = new StringBuilder();
915            append(null, buffer, strategy);
916            return buffer.toString();
917        }
918
919        public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
920            strategy.appendStart(locator, this, buffer);
921            appendFields(locator, buffer, strategy);
922            strategy.appendEnd(locator, this, buffer);
923            return buffer;
924        }
925
926        public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
927            {
928                DtoBroker theBroker;
929                theBroker = this.getBroker();
930                strategy.appendField(locator, this, "broker", buffer, theBroker);
931            }
932            {
933                DtoBrokerService theBrokerService;
934                theBrokerService = this.getBrokerService();
935                strategy.appendField(locator, this, "brokerService", buffer, theBrokerService);
936            }
937            {
938                Object theAny;
939                theAny = this.getAny();
940                strategy.appendField(locator, this, "any", buffer, theAny);
941            }
942            return buffer;
943        }
944
945        public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
946            int currentHashCode = 1;
947            {
948                DtoBroker theBroker;
949                theBroker = this.getBroker();
950                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "broker", theBroker), currentHashCode, theBroker);
951            }
952            {
953                DtoBrokerService theBrokerService;
954                theBrokerService = this.getBrokerService();
955                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brokerService", theBrokerService), currentHashCode, theBrokerService);
956            }
957            {
958                Object theAny;
959                theAny = this.getAny();
960                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny);
961            }
962            return currentHashCode;
963        }
964
965        public int hashCode() {
966            final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
967            return this.hashCode(null, strategy);
968        }
969
970        public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
971            if (!(object instanceof DtoPListStoreImpl.BrokerService)) {
972                return false;
973            }
974            if (this == object) {
975                return true;
976            }
977            final DtoPListStoreImpl.BrokerService that = ((DtoPListStoreImpl.BrokerService) object);
978            {
979                DtoBroker lhsBroker;
980                lhsBroker = this.getBroker();
981                DtoBroker rhsBroker;
982                rhsBroker = that.getBroker();
983                if (!strategy.equals(LocatorUtils.property(thisLocator, "broker", lhsBroker), LocatorUtils.property(thatLocator, "broker", rhsBroker), lhsBroker, rhsBroker)) {
984                    return false;
985                }
986            }
987            {
988                DtoBrokerService lhsBrokerService;
989                lhsBrokerService = this.getBrokerService();
990                DtoBrokerService rhsBrokerService;
991                rhsBrokerService = that.getBrokerService();
992                if (!strategy.equals(LocatorUtils.property(thisLocator, "brokerService", lhsBrokerService), LocatorUtils.property(thatLocator, "brokerService", rhsBrokerService), lhsBrokerService, rhsBrokerService)) {
993                    return false;
994                }
995            }
996            {
997                Object lhsAny;
998                lhsAny = this.getAny();
999                Object rhsAny;
1000                rhsAny = that.getAny();
1001                if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) {
1002                    return false;
1003                }
1004            }
1005            return true;
1006        }
1007
1008        public boolean equals(Object object) {
1009            final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
1010            return equals(null, null, object, strategy);
1011        }
1012
1013    }
1014
1015}