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.03.31 at 08:59:25 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="usageManager" 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}systemUsage"/>
058 *                     &lt;any namespace='##other'/>
059 *                   &lt;/choice>
060 *                 &lt;/restriction>
061 *               &lt;/complexContent>
062 *             &lt;/complexType>
063 *           &lt;/element>
064 *           &lt;any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
065 *         &lt;/choice>
066 *       &lt;/choice>
067 *       &lt;attribute name="brokerName" type="{http://www.w3.org/2001/XMLSchema}string" />
068 *       &lt;attribute name="createTransactionStore" type="{http://www.w3.org/2001/XMLSchema}boolean" />
069 *       &lt;attribute name="directory" type="{http://www.w3.org/2001/XMLSchema}string" />
070 *       &lt;attribute name="usageManager" type="{http://www.w3.org/2001/XMLSchema}string" />
071 *       &lt;attribute name="useExternalMessageReferences" type="{http://www.w3.org/2001/XMLSchema}boolean" />
072 *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
073 *       &lt;anyAttribute processContents='lax' namespace='##other'/>
074 *     &lt;/restriction>
075 *   &lt;/complexContent>
076 * &lt;/complexType>
077 * </pre>
078 * 
079 * 
080 */
081@XmlAccessorType(XmlAccessType.FIELD)
082@XmlType(name = "", propOrder = {
083    "usageManagerOrAny"
084})
085@XmlRootElement(name = "memoryPersistenceAdapter")
086public class DtoMemoryPersistenceAdapter
087    implements Equals, HashCode, ToString
088{
089
090    @XmlElementRef(name = "usageManager", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class, required = false)
091    @XmlAnyElement(lax = true)
092    protected List<Object> usageManagerOrAny;
093    @XmlAttribute(name = "brokerName")
094    protected String brokerName;
095    @XmlAttribute(name = "createTransactionStore")
096    protected Boolean createTransactionStore;
097    @XmlAttribute(name = "directory")
098    protected String directory;
099    @XmlAttribute(name = "usageManager")
100    protected String usageManager;
101    @XmlAttribute(name = "useExternalMessageReferences")
102    protected Boolean useExternalMessageReferences;
103    @XmlAttribute(name = "id")
104    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
105    @XmlID
106    @XmlSchemaType(name = "ID")
107    protected String id;
108    @XmlAnyAttribute
109    private Map<QName, String> otherAttributes = new HashMap<QName, String>();
110
111    /**
112     * Gets the value of the usageManagerOrAny property.
113     * 
114     * <p>
115     * This accessor method returns a reference to the live list,
116     * not a snapshot. Therefore any modification you make to the
117     * returned list will be present inside the JAXB object.
118     * This is why there is not a <CODE>set</CODE> method for the usageManagerOrAny property.
119     * 
120     * <p>
121     * For example, to add a new item, do as follows:
122     * <pre>
123     *    getUsageManagerOrAny().add(newItem);
124     * </pre>
125     * 
126     * 
127     * <p>
128     * Objects of the following type(s) are allowed in the list
129     * {@link Object }
130     * {@link JAXBElement }{@code <}{@link DtoMemoryPersistenceAdapter.UsageManager }{@code >}
131     * 
132     * 
133     */
134    public List<Object> getUsageManagerOrAny() {
135        if (usageManagerOrAny == null) {
136            usageManagerOrAny = new ArrayList<Object>();
137        }
138        return this.usageManagerOrAny;
139    }
140
141    /**
142     * Gets the value of the brokerName property.
143     * 
144     * @return
145     *     possible object is
146     *     {@link String }
147     *     
148     */
149    public String getBrokerName() {
150        return brokerName;
151    }
152
153    /**
154     * Sets the value of the brokerName property.
155     * 
156     * @param value
157     *     allowed object is
158     *     {@link String }
159     *     
160     */
161    public void setBrokerName(String value) {
162        this.brokerName = value;
163    }
164
165    /**
166     * Gets the value of the createTransactionStore property.
167     * 
168     * @return
169     *     possible object is
170     *     {@link Boolean }
171     *     
172     */
173    public Boolean isCreateTransactionStore() {
174        return createTransactionStore;
175    }
176
177    /**
178     * Sets the value of the createTransactionStore property.
179     * 
180     * @param value
181     *     allowed object is
182     *     {@link Boolean }
183     *     
184     */
185    public void setCreateTransactionStore(Boolean value) {
186        this.createTransactionStore = value;
187    }
188
189    /**
190     * Gets the value of the directory property.
191     * 
192     * @return
193     *     possible object is
194     *     {@link String }
195     *     
196     */
197    public String getDirectory() {
198        return directory;
199    }
200
201    /**
202     * Sets the value of the directory property.
203     * 
204     * @param value
205     *     allowed object is
206     *     {@link String }
207     *     
208     */
209    public void setDirectory(String value) {
210        this.directory = value;
211    }
212
213    /**
214     * Gets the value of the usageManager property.
215     * 
216     * @return
217     *     possible object is
218     *     {@link String }
219     *     
220     */
221    public String getUsageManager() {
222        return usageManager;
223    }
224
225    /**
226     * Sets the value of the usageManager property.
227     * 
228     * @param value
229     *     allowed object is
230     *     {@link String }
231     *     
232     */
233    public void setUsageManager(String value) {
234        this.usageManager = value;
235    }
236
237    /**
238     * Gets the value of the useExternalMessageReferences property.
239     * 
240     * @return
241     *     possible object is
242     *     {@link Boolean }
243     *     
244     */
245    public Boolean isUseExternalMessageReferences() {
246        return useExternalMessageReferences;
247    }
248
249    /**
250     * Sets the value of the useExternalMessageReferences property.
251     * 
252     * @param value
253     *     allowed object is
254     *     {@link Boolean }
255     *     
256     */
257    public void setUseExternalMessageReferences(Boolean value) {
258        this.useExternalMessageReferences = value;
259    }
260
261    /**
262     * Gets the value of the id property.
263     * 
264     * @return
265     *     possible object is
266     *     {@link String }
267     *     
268     */
269    public String getId() {
270        return id;
271    }
272
273    /**
274     * Sets the value of the id property.
275     * 
276     * @param value
277     *     allowed object is
278     *     {@link String }
279     *     
280     */
281    public void setId(String value) {
282        this.id = value;
283    }
284
285    /**
286     * Gets a map that contains attributes that aren't bound to any typed property on this class.
287     * 
288     * <p>
289     * the map is keyed by the name of the attribute and 
290     * the value is the string value of the attribute.
291     * 
292     * the map returned by this method is live, and you can add new attribute
293     * by updating the map directly. Because of this design, there's no setter.
294     * 
295     * 
296     * @return
297     *     always non-null
298     */
299    public Map<QName, String> getOtherAttributes() {
300        return otherAttributes;
301    }
302
303    public String toString() {
304        final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
305        final StringBuilder buffer = new StringBuilder();
306        append(null, buffer, strategy);
307        return buffer.toString();
308    }
309
310    public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
311        strategy.appendStart(locator, this, buffer);
312        appendFields(locator, buffer, strategy);
313        strategy.appendEnd(locator, this, buffer);
314        return buffer;
315    }
316
317    public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
318        {
319            List<Object> theUsageManagerOrAny;
320            theUsageManagerOrAny = (((this.usageManagerOrAny!= null)&&(!this.usageManagerOrAny.isEmpty()))?this.getUsageManagerOrAny():null);
321            strategy.appendField(locator, this, "usageManagerOrAny", buffer, theUsageManagerOrAny);
322        }
323        {
324            String theBrokerName;
325            theBrokerName = this.getBrokerName();
326            strategy.appendField(locator, this, "brokerName", buffer, theBrokerName);
327        }
328        {
329            Boolean theCreateTransactionStore;
330            theCreateTransactionStore = this.isCreateTransactionStore();
331            strategy.appendField(locator, this, "createTransactionStore", buffer, theCreateTransactionStore);
332        }
333        {
334            String theDirectory;
335            theDirectory = this.getDirectory();
336            strategy.appendField(locator, this, "directory", buffer, theDirectory);
337        }
338        {
339            String theUsageManager;
340            theUsageManager = this.getUsageManager();
341            strategy.appendField(locator, this, "usageManager", buffer, theUsageManager);
342        }
343        {
344            Boolean theUseExternalMessageReferences;
345            theUseExternalMessageReferences = this.isUseExternalMessageReferences();
346            strategy.appendField(locator, this, "useExternalMessageReferences", buffer, theUseExternalMessageReferences);
347        }
348        {
349            String theId;
350            theId = this.getId();
351            strategy.appendField(locator, this, "id", buffer, theId);
352        }
353        return buffer;
354    }
355
356    public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
357        int currentHashCode = 1;
358        {
359            List<Object> theUsageManagerOrAny;
360            theUsageManagerOrAny = (((this.usageManagerOrAny!= null)&&(!this.usageManagerOrAny.isEmpty()))?this.getUsageManagerOrAny():null);
361            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "usageManagerOrAny", theUsageManagerOrAny), currentHashCode, theUsageManagerOrAny);
362        }
363        {
364            String theBrokerName;
365            theBrokerName = this.getBrokerName();
366            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brokerName", theBrokerName), currentHashCode, theBrokerName);
367        }
368        {
369            Boolean theCreateTransactionStore;
370            theCreateTransactionStore = this.isCreateTransactionStore();
371            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createTransactionStore", theCreateTransactionStore), currentHashCode, theCreateTransactionStore);
372        }
373        {
374            String theDirectory;
375            theDirectory = this.getDirectory();
376            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "directory", theDirectory), currentHashCode, theDirectory);
377        }
378        {
379            String theUsageManager;
380            theUsageManager = this.getUsageManager();
381            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "usageManager", theUsageManager), currentHashCode, theUsageManager);
382        }
383        {
384            Boolean theUseExternalMessageReferences;
385            theUseExternalMessageReferences = this.isUseExternalMessageReferences();
386            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "useExternalMessageReferences", theUseExternalMessageReferences), currentHashCode, theUseExternalMessageReferences);
387        }
388        {
389            String theId;
390            theId = this.getId();
391            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
392        }
393        return currentHashCode;
394    }
395
396    public int hashCode() {
397        final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
398        return this.hashCode(null, strategy);
399    }
400
401    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
402        if (!(object instanceof DtoMemoryPersistenceAdapter)) {
403            return false;
404        }
405        if (this == object) {
406            return true;
407        }
408        final DtoMemoryPersistenceAdapter that = ((DtoMemoryPersistenceAdapter) object);
409        {
410            List<Object> lhsUsageManagerOrAny;
411            lhsUsageManagerOrAny = (((this.usageManagerOrAny!= null)&&(!this.usageManagerOrAny.isEmpty()))?this.getUsageManagerOrAny():null);
412            List<Object> rhsUsageManagerOrAny;
413            rhsUsageManagerOrAny = (((that.usageManagerOrAny!= null)&&(!that.usageManagerOrAny.isEmpty()))?that.getUsageManagerOrAny():null);
414            if (!strategy.equals(LocatorUtils.property(thisLocator, "usageManagerOrAny", lhsUsageManagerOrAny), LocatorUtils.property(thatLocator, "usageManagerOrAny", rhsUsageManagerOrAny), lhsUsageManagerOrAny, rhsUsageManagerOrAny)) {
415                return false;
416            }
417        }
418        {
419            String lhsBrokerName;
420            lhsBrokerName = this.getBrokerName();
421            String rhsBrokerName;
422            rhsBrokerName = that.getBrokerName();
423            if (!strategy.equals(LocatorUtils.property(thisLocator, "brokerName", lhsBrokerName), LocatorUtils.property(thatLocator, "brokerName", rhsBrokerName), lhsBrokerName, rhsBrokerName)) {
424                return false;
425            }
426        }
427        {
428            Boolean lhsCreateTransactionStore;
429            lhsCreateTransactionStore = this.isCreateTransactionStore();
430            Boolean rhsCreateTransactionStore;
431            rhsCreateTransactionStore = that.isCreateTransactionStore();
432            if (!strategy.equals(LocatorUtils.property(thisLocator, "createTransactionStore", lhsCreateTransactionStore), LocatorUtils.property(thatLocator, "createTransactionStore", rhsCreateTransactionStore), lhsCreateTransactionStore, rhsCreateTransactionStore)) {
433                return false;
434            }
435        }
436        {
437            String lhsDirectory;
438            lhsDirectory = this.getDirectory();
439            String rhsDirectory;
440            rhsDirectory = that.getDirectory();
441            if (!strategy.equals(LocatorUtils.property(thisLocator, "directory", lhsDirectory), LocatorUtils.property(thatLocator, "directory", rhsDirectory), lhsDirectory, rhsDirectory)) {
442                return false;
443            }
444        }
445        {
446            String lhsUsageManager;
447            lhsUsageManager = this.getUsageManager();
448            String rhsUsageManager;
449            rhsUsageManager = that.getUsageManager();
450            if (!strategy.equals(LocatorUtils.property(thisLocator, "usageManager", lhsUsageManager), LocatorUtils.property(thatLocator, "usageManager", rhsUsageManager), lhsUsageManager, rhsUsageManager)) {
451                return false;
452            }
453        }
454        {
455            Boolean lhsUseExternalMessageReferences;
456            lhsUseExternalMessageReferences = this.isUseExternalMessageReferences();
457            Boolean rhsUseExternalMessageReferences;
458            rhsUseExternalMessageReferences = that.isUseExternalMessageReferences();
459            if (!strategy.equals(LocatorUtils.property(thisLocator, "useExternalMessageReferences", lhsUseExternalMessageReferences), LocatorUtils.property(thatLocator, "useExternalMessageReferences", rhsUseExternalMessageReferences), lhsUseExternalMessageReferences, rhsUseExternalMessageReferences)) {
460                return false;
461            }
462        }
463        {
464            String lhsId;
465            lhsId = this.getId();
466            String rhsId;
467            rhsId = that.getId();
468            if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) {
469                return false;
470            }
471        }
472        return true;
473    }
474
475    public boolean equals(Object object) {
476        final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
477        return equals(null, null, object, strategy);
478    }
479
480
481    /**
482     * <p>Java class for anonymous complex type.
483     * 
484     * <p>The following schema fragment specifies the expected content contained within this class.
485     * 
486     * <pre>
487     * &lt;complexType>
488     *   &lt;complexContent>
489     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
490     *       &lt;choice minOccurs="0">
491     *         &lt;element ref="{http://activemq.apache.org/schema/core}systemUsage"/>
492     *         &lt;any namespace='##other'/>
493     *       &lt;/choice>
494     *     &lt;/restriction>
495     *   &lt;/complexContent>
496     * &lt;/complexType>
497     * </pre>
498     * 
499     * 
500     */
501    @XmlAccessorType(XmlAccessType.FIELD)
502    @XmlType(name = "", propOrder = {
503        "systemUsage",
504        "any"
505    })
506    public static class UsageManager
507        implements Equals, HashCode, ToString
508    {
509
510        protected DtoSystemUsage systemUsage;
511        @XmlAnyElement(lax = true)
512        protected Object any;
513
514        /**
515         * Gets the value of the systemUsage property.
516         * 
517         * @return
518         *     possible object is
519         *     {@link DtoSystemUsage }
520         *     
521         */
522        public DtoSystemUsage getSystemUsage() {
523            return systemUsage;
524        }
525
526        /**
527         * Sets the value of the systemUsage property.
528         * 
529         * @param value
530         *     allowed object is
531         *     {@link DtoSystemUsage }
532         *     
533         */
534        public void setSystemUsage(DtoSystemUsage value) {
535            this.systemUsage = value;
536        }
537
538        /**
539         * Gets the value of the any property.
540         * 
541         * @return
542         *     possible object is
543         *     {@link Object }
544         *     
545         */
546        public Object getAny() {
547            return any;
548        }
549
550        /**
551         * Sets the value of the any property.
552         * 
553         * @param value
554         *     allowed object is
555         *     {@link Object }
556         *     
557         */
558        public void setAny(Object value) {
559            this.any = value;
560        }
561
562        public String toString() {
563            final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
564            final StringBuilder buffer = new StringBuilder();
565            append(null, buffer, strategy);
566            return buffer.toString();
567        }
568
569        public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
570            strategy.appendStart(locator, this, buffer);
571            appendFields(locator, buffer, strategy);
572            strategy.appendEnd(locator, this, buffer);
573            return buffer;
574        }
575
576        public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
577            {
578                DtoSystemUsage theSystemUsage;
579                theSystemUsage = this.getSystemUsage();
580                strategy.appendField(locator, this, "systemUsage", buffer, theSystemUsage);
581            }
582            {
583                Object theAny;
584                theAny = this.getAny();
585                strategy.appendField(locator, this, "any", buffer, theAny);
586            }
587            return buffer;
588        }
589
590        public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
591            int currentHashCode = 1;
592            {
593                DtoSystemUsage theSystemUsage;
594                theSystemUsage = this.getSystemUsage();
595                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "systemUsage", theSystemUsage), currentHashCode, theSystemUsage);
596            }
597            {
598                Object theAny;
599                theAny = this.getAny();
600                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny);
601            }
602            return currentHashCode;
603        }
604
605        public int hashCode() {
606            final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
607            return this.hashCode(null, strategy);
608        }
609
610        public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
611            if (!(object instanceof DtoMemoryPersistenceAdapter.UsageManager)) {
612                return false;
613            }
614            if (this == object) {
615                return true;
616            }
617            final DtoMemoryPersistenceAdapter.UsageManager that = ((DtoMemoryPersistenceAdapter.UsageManager) object);
618            {
619                DtoSystemUsage lhsSystemUsage;
620                lhsSystemUsage = this.getSystemUsage();
621                DtoSystemUsage rhsSystemUsage;
622                rhsSystemUsage = that.getSystemUsage();
623                if (!strategy.equals(LocatorUtils.property(thisLocator, "systemUsage", lhsSystemUsage), LocatorUtils.property(thatLocator, "systemUsage", rhsSystemUsage), lhsSystemUsage, rhsSystemUsage)) {
624                    return false;
625                }
626            }
627            {
628                Object lhsAny;
629                lhsAny = this.getAny();
630                Object rhsAny;
631                rhsAny = that.getAny();
632                if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) {
633                    return false;
634                }
635            }
636            return true;
637        }
638
639        public boolean equals(Object object) {
640            final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
641            return equals(null, null, object, strategy);
642        }
643
644    }
645
646}