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