001    //
002    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 
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: 2013.10.14 at 11:56:49 PM IST 
006    //
007    
008    
009    package org.apache.activemq.schema.core;
010    
011    import java.util.ArrayList;
012    import java.util.HashMap;
013    import java.util.List;
014    import java.util.Map;
015    import javax.xml.bind.JAXBElement;
016    import javax.xml.bind.annotation.XmlAccessType;
017    import javax.xml.bind.annotation.XmlAccessorType;
018    import javax.xml.bind.annotation.XmlAnyAttribute;
019    import javax.xml.bind.annotation.XmlAnyElement;
020    import javax.xml.bind.annotation.XmlAttribute;
021    import javax.xml.bind.annotation.XmlElementRef;
022    import javax.xml.bind.annotation.XmlElementRefs;
023    import javax.xml.bind.annotation.XmlID;
024    import javax.xml.bind.annotation.XmlRootElement;
025    import javax.xml.bind.annotation.XmlSchemaType;
026    import javax.xml.bind.annotation.XmlType;
027    import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
028    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
029    import javax.xml.namespace.QName;
030    import org.jvnet.jaxb2_commons.lang.Equals;
031    import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
032    import org.jvnet.jaxb2_commons.lang.HashCode;
033    import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
034    import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
035    import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
036    import org.jvnet.jaxb2_commons.lang.ToString;
037    import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
038    import org.jvnet.jaxb2_commons.locator.ObjectLocator;
039    import 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="destination" 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}queue"/>
059     *                     &lt;element ref="{http://activemq.apache.org/schema/core}tempQueue"/>
060     *                     &lt;element ref="{http://activemq.apache.org/schema/core}tempTopic"/>
061     *                     &lt;element ref="{http://activemq.apache.org/schema/core}topic"/>
062     *                     &lt;any namespace='##other'/>
063     *                   &lt;/choice>
064     *                 &lt;/restriction>
065     *               &lt;/complexContent>
066     *             &lt;/complexType>
067     *           &lt;/element>
068     *           &lt;element name="value" minOccurs="0">
069     *             &lt;complexType>
070     *               &lt;complexContent>
071     *                 &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
072     *                   &lt;choice minOccurs="0">
073     *                     &lt;element ref="{http://activemq.apache.org/schema/core}authorizationEntry"/>
074     *                     &lt;element ref="{http://activemq.apache.org/schema/core}destinationEntry"/>
075     *                     &lt;element ref="{http://activemq.apache.org/schema/core}filteredKahaDB"/>
076     *                     &lt;element ref="{http://activemq.apache.org/schema/core}policyEntry"/>
077     *                     &lt;element ref="{http://activemq.apache.org/schema/core}redeliveryPolicy"/>
078     *                     &lt;element ref="{http://activemq.apache.org/schema/core}tempDestinationAuthorizationEntry"/>
079     *                     &lt;any namespace='##other'/>
080     *                   &lt;/choice>
081     *                 &lt;/restriction>
082     *               &lt;/complexContent>
083     *             &lt;/complexType>
084     *           &lt;/element>
085     *           &lt;any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
086     *         &lt;/choice>
087     *       &lt;/choice>
088     *       &lt;attribute name="destination" type="{http://www.w3.org/2001/XMLSchema}string" />
089     *       &lt;attribute name="queue" type="{http://www.w3.org/2001/XMLSchema}string" />
090     *       &lt;attribute name="tempQueue" type="{http://www.w3.org/2001/XMLSchema}boolean" />
091     *       &lt;attribute name="tempTopic" type="{http://www.w3.org/2001/XMLSchema}boolean" />
092     *       &lt;attribute name="topic" type="{http://www.w3.org/2001/XMLSchema}string" />
093     *       &lt;attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
094     *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
095     *       &lt;anyAttribute processContents='lax' namespace='##other'/>
096     *     &lt;/restriction>
097     *   &lt;/complexContent>
098     * &lt;/complexType>
099     * </pre>
100     * 
101     * 
102     */
103    @XmlAccessorType(XmlAccessType.FIELD)
104    @XmlType(name = "", propOrder = {
105        "destinationOrValueOrAny"
106    })
107    @XmlRootElement(name = "destinationEntry")
108    public class DtoDestinationEntry
109        implements Equals, HashCode, ToString
110    {
111    
112        @XmlElementRefs({
113            @XmlElementRef(name = "destination", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class),
114            @XmlElementRef(name = "value", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class)
115        })
116        @XmlAnyElement(lax = true)
117        protected List<Object> destinationOrValueOrAny;
118        @XmlAttribute(name = "destination")
119        protected String destination;
120        @XmlAttribute(name = "queue")
121        protected String queue;
122        @XmlAttribute(name = "tempQueue")
123        protected Boolean tempQueue;
124        @XmlAttribute(name = "tempTopic")
125        protected Boolean tempTopic;
126        @XmlAttribute(name = "topic")
127        protected String topic;
128        @XmlAttribute(name = "value")
129        protected String value;
130        @XmlAttribute(name = "id")
131        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
132        @XmlID
133        @XmlSchemaType(name = "ID")
134        protected String id;
135        @XmlAnyAttribute
136        private Map<QName, String> otherAttributes = new HashMap<QName, String>();
137    
138        /**
139         * Gets the value of the destinationOrValueOrAny property.
140         * 
141         * <p>
142         * This accessor method returns a reference to the live list,
143         * not a snapshot. Therefore any modification you make to the
144         * returned list will be present inside the JAXB object.
145         * This is why there is not a <CODE>set</CODE> method for the destinationOrValueOrAny property.
146         * 
147         * <p>
148         * For example, to add a new item, do as follows:
149         * <pre>
150         *    getDestinationOrValueOrAny().add(newItem);
151         * </pre>
152         * 
153         * 
154         * <p>
155         * Objects of the following type(s) are allowed in the list
156         * {@link JAXBElement }{@code <}{@link DtoDestinationEntry.Destination }{@code >}
157         * {@link Object }
158         * {@link JAXBElement }{@code <}{@link DtoDestinationEntry.Value }{@code >}
159         * 
160         * 
161         */
162        public List<Object> getDestinationOrValueOrAny() {
163            if (destinationOrValueOrAny == null) {
164                destinationOrValueOrAny = new ArrayList<Object>();
165            }
166            return this.destinationOrValueOrAny;
167        }
168    
169        /**
170         * Gets the value of the destination property.
171         * 
172         * @return
173         *     possible object is
174         *     {@link String }
175         *     
176         */
177        public String getDestination() {
178            return destination;
179        }
180    
181        /**
182         * Sets the value of the destination property.
183         * 
184         * @param value
185         *     allowed object is
186         *     {@link String }
187         *     
188         */
189        public void setDestination(String value) {
190            this.destination = value;
191        }
192    
193        /**
194         * Gets the value of the queue property.
195         * 
196         * @return
197         *     possible object is
198         *     {@link String }
199         *     
200         */
201        public String getQueue() {
202            return queue;
203        }
204    
205        /**
206         * Sets the value of the queue property.
207         * 
208         * @param value
209         *     allowed object is
210         *     {@link String }
211         *     
212         */
213        public void setQueue(String value) {
214            this.queue = value;
215        }
216    
217        /**
218         * Gets the value of the tempQueue property.
219         * 
220         * @return
221         *     possible object is
222         *     {@link Boolean }
223         *     
224         */
225        public Boolean isTempQueue() {
226            return tempQueue;
227        }
228    
229        /**
230         * Sets the value of the tempQueue property.
231         * 
232         * @param value
233         *     allowed object is
234         *     {@link Boolean }
235         *     
236         */
237        public void setTempQueue(Boolean value) {
238            this.tempQueue = value;
239        }
240    
241        /**
242         * Gets the value of the tempTopic property.
243         * 
244         * @return
245         *     possible object is
246         *     {@link Boolean }
247         *     
248         */
249        public Boolean isTempTopic() {
250            return tempTopic;
251        }
252    
253        /**
254         * Sets the value of the tempTopic property.
255         * 
256         * @param value
257         *     allowed object is
258         *     {@link Boolean }
259         *     
260         */
261        public void setTempTopic(Boolean value) {
262            this.tempTopic = value;
263        }
264    
265        /**
266         * Gets the value of the topic property.
267         * 
268         * @return
269         *     possible object is
270         *     {@link String }
271         *     
272         */
273        public String getTopic() {
274            return topic;
275        }
276    
277        /**
278         * Sets the value of the topic property.
279         * 
280         * @param value
281         *     allowed object is
282         *     {@link String }
283         *     
284         */
285        public void setTopic(String value) {
286            this.topic = value;
287        }
288    
289        /**
290         * Gets the value of the value property.
291         * 
292         * @return
293         *     possible object is
294         *     {@link String }
295         *     
296         */
297        public String getValue() {
298            return value;
299        }
300    
301        /**
302         * Sets the value of the value property.
303         * 
304         * @param value
305         *     allowed object is
306         *     {@link String }
307         *     
308         */
309        public void setValue(String value) {
310            this.value = value;
311        }
312    
313        /**
314         * Gets the value of the id property.
315         * 
316         * @return
317         *     possible object is
318         *     {@link String }
319         *     
320         */
321        public String getId() {
322            return id;
323        }
324    
325        /**
326         * Sets the value of the id property.
327         * 
328         * @param value
329         *     allowed object is
330         *     {@link String }
331         *     
332         */
333        public void setId(String value) {
334            this.id = value;
335        }
336    
337        /**
338         * Gets a map that contains attributes that aren't bound to any typed property on this class.
339         * 
340         * <p>
341         * the map is keyed by the name of the attribute and 
342         * the value is the string value of the attribute.
343         * 
344         * the map returned by this method is live, and you can add new attribute
345         * by updating the map directly. Because of this design, there's no setter.
346         * 
347         * 
348         * @return
349         *     always non-null
350         */
351        public Map<QName, String> getOtherAttributes() {
352            return otherAttributes;
353        }
354    
355        public String toString() {
356            final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
357            final StringBuilder buffer = new StringBuilder();
358            append(null, buffer, strategy);
359            return buffer.toString();
360        }
361    
362        public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
363            strategy.appendStart(locator, this, buffer);
364            appendFields(locator, buffer, strategy);
365            strategy.appendEnd(locator, this, buffer);
366            return buffer;
367        }
368    
369        public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
370            {
371                List<Object> theDestinationOrValueOrAny;
372                theDestinationOrValueOrAny = (((this.destinationOrValueOrAny!= null)&&(!this.destinationOrValueOrAny.isEmpty()))?this.getDestinationOrValueOrAny():null);
373                strategy.appendField(locator, this, "destinationOrValueOrAny", buffer, theDestinationOrValueOrAny);
374            }
375            {
376                String theDestination;
377                theDestination = this.getDestination();
378                strategy.appendField(locator, this, "destination", buffer, theDestination);
379            }
380            {
381                String theQueue;
382                theQueue = this.getQueue();
383                strategy.appendField(locator, this, "queue", buffer, theQueue);
384            }
385            {
386                Boolean theTempQueue;
387                theTempQueue = this.isTempQueue();
388                strategy.appendField(locator, this, "tempQueue", buffer, theTempQueue);
389            }
390            {
391                Boolean theTempTopic;
392                theTempTopic = this.isTempTopic();
393                strategy.appendField(locator, this, "tempTopic", buffer, theTempTopic);
394            }
395            {
396                String theTopic;
397                theTopic = this.getTopic();
398                strategy.appendField(locator, this, "topic", buffer, theTopic);
399            }
400            {
401                String theValue;
402                theValue = this.getValue();
403                strategy.appendField(locator, this, "value", buffer, theValue);
404            }
405            {
406                String theId;
407                theId = this.getId();
408                strategy.appendField(locator, this, "id", buffer, theId);
409            }
410            return buffer;
411        }
412    
413        public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
414            int currentHashCode = 1;
415            {
416                List<Object> theDestinationOrValueOrAny;
417                theDestinationOrValueOrAny = (((this.destinationOrValueOrAny!= null)&&(!this.destinationOrValueOrAny.isEmpty()))?this.getDestinationOrValueOrAny():null);
418                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destinationOrValueOrAny", theDestinationOrValueOrAny), currentHashCode, theDestinationOrValueOrAny);
419            }
420            {
421                String theDestination;
422                theDestination = this.getDestination();
423                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destination", theDestination), currentHashCode, theDestination);
424            }
425            {
426                String theQueue;
427                theQueue = this.getQueue();
428                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queue", theQueue), currentHashCode, theQueue);
429            }
430            {
431                Boolean theTempQueue;
432                theTempQueue = this.isTempQueue();
433                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tempQueue", theTempQueue), currentHashCode, theTempQueue);
434            }
435            {
436                Boolean theTempTopic;
437                theTempTopic = this.isTempTopic();
438                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tempTopic", theTempTopic), currentHashCode, theTempTopic);
439            }
440            {
441                String theTopic;
442                theTopic = this.getTopic();
443                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "topic", theTopic), currentHashCode, theTopic);
444            }
445            {
446                String theValue;
447                theValue = this.getValue();
448                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue);
449            }
450            {
451                String theId;
452                theId = this.getId();
453                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
454            }
455            return currentHashCode;
456        }
457    
458        public int hashCode() {
459            final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
460            return this.hashCode(null, strategy);
461        }
462    
463        public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
464            if (!(object instanceof DtoDestinationEntry)) {
465                return false;
466            }
467            if (this == object) {
468                return true;
469            }
470            final DtoDestinationEntry that = ((DtoDestinationEntry) object);
471            {
472                List<Object> lhsDestinationOrValueOrAny;
473                lhsDestinationOrValueOrAny = (((this.destinationOrValueOrAny!= null)&&(!this.destinationOrValueOrAny.isEmpty()))?this.getDestinationOrValueOrAny():null);
474                List<Object> rhsDestinationOrValueOrAny;
475                rhsDestinationOrValueOrAny = (((that.destinationOrValueOrAny!= null)&&(!that.destinationOrValueOrAny.isEmpty()))?that.getDestinationOrValueOrAny():null);
476                if (!strategy.equals(LocatorUtils.property(thisLocator, "destinationOrValueOrAny", lhsDestinationOrValueOrAny), LocatorUtils.property(thatLocator, "destinationOrValueOrAny", rhsDestinationOrValueOrAny), lhsDestinationOrValueOrAny, rhsDestinationOrValueOrAny)) {
477                    return false;
478                }
479            }
480            {
481                String lhsDestination;
482                lhsDestination = this.getDestination();
483                String rhsDestination;
484                rhsDestination = that.getDestination();
485                if (!strategy.equals(LocatorUtils.property(thisLocator, "destination", lhsDestination), LocatorUtils.property(thatLocator, "destination", rhsDestination), lhsDestination, rhsDestination)) {
486                    return false;
487                }
488            }
489            {
490                String lhsQueue;
491                lhsQueue = this.getQueue();
492                String rhsQueue;
493                rhsQueue = that.getQueue();
494                if (!strategy.equals(LocatorUtils.property(thisLocator, "queue", lhsQueue), LocatorUtils.property(thatLocator, "queue", rhsQueue), lhsQueue, rhsQueue)) {
495                    return false;
496                }
497            }
498            {
499                Boolean lhsTempQueue;
500                lhsTempQueue = this.isTempQueue();
501                Boolean rhsTempQueue;
502                rhsTempQueue = that.isTempQueue();
503                if (!strategy.equals(LocatorUtils.property(thisLocator, "tempQueue", lhsTempQueue), LocatorUtils.property(thatLocator, "tempQueue", rhsTempQueue), lhsTempQueue, rhsTempQueue)) {
504                    return false;
505                }
506            }
507            {
508                Boolean lhsTempTopic;
509                lhsTempTopic = this.isTempTopic();
510                Boolean rhsTempTopic;
511                rhsTempTopic = that.isTempTopic();
512                if (!strategy.equals(LocatorUtils.property(thisLocator, "tempTopic", lhsTempTopic), LocatorUtils.property(thatLocator, "tempTopic", rhsTempTopic), lhsTempTopic, rhsTempTopic)) {
513                    return false;
514                }
515            }
516            {
517                String lhsTopic;
518                lhsTopic = this.getTopic();
519                String rhsTopic;
520                rhsTopic = that.getTopic();
521                if (!strategy.equals(LocatorUtils.property(thisLocator, "topic", lhsTopic), LocatorUtils.property(thatLocator, "topic", rhsTopic), lhsTopic, rhsTopic)) {
522                    return false;
523                }
524            }
525            {
526                String lhsValue;
527                lhsValue = this.getValue();
528                String rhsValue;
529                rhsValue = that.getValue();
530                if (!strategy.equals(LocatorUtils.property(thisLocator, "value", lhsValue), LocatorUtils.property(thatLocator, "value", rhsValue), lhsValue, rhsValue)) {
531                    return false;
532                }
533            }
534            {
535                String lhsId;
536                lhsId = this.getId();
537                String rhsId;
538                rhsId = that.getId();
539                if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) {
540                    return false;
541                }
542            }
543            return true;
544        }
545    
546        public boolean equals(Object object) {
547            final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
548            return equals(null, null, object, strategy);
549        }
550    
551    
552        /**
553         * <p>Java class for anonymous complex type.
554         * 
555         * <p>The following schema fragment specifies the expected content contained within this class.
556         * 
557         * <pre>
558         * &lt;complexType>
559         *   &lt;complexContent>
560         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
561         *       &lt;choice minOccurs="0">
562         *         &lt;element ref="{http://activemq.apache.org/schema/core}queue"/>
563         *         &lt;element ref="{http://activemq.apache.org/schema/core}tempQueue"/>
564         *         &lt;element ref="{http://activemq.apache.org/schema/core}tempTopic"/>
565         *         &lt;element ref="{http://activemq.apache.org/schema/core}topic"/>
566         *         &lt;any namespace='##other'/>
567         *       &lt;/choice>
568         *     &lt;/restriction>
569         *   &lt;/complexContent>
570         * &lt;/complexType>
571         * </pre>
572         * 
573         * 
574         */
575        @XmlAccessorType(XmlAccessType.FIELD)
576        @XmlType(name = "", propOrder = {
577            "queue",
578            "tempQueue",
579            "tempTopic",
580            "topic",
581            "any"
582        })
583        public static class Destination
584            implements Equals, HashCode, ToString
585        {
586    
587            protected DtoQueue queue;
588            protected DtoTempQueue tempQueue;
589            protected DtoTempTopic tempTopic;
590            protected DtoTopic topic;
591            @XmlAnyElement(lax = true)
592            protected Object any;
593    
594            /**
595             * Gets the value of the queue property.
596             * 
597             * @return
598             *     possible object is
599             *     {@link DtoQueue }
600             *     
601             */
602            public DtoQueue getQueue() {
603                return queue;
604            }
605    
606            /**
607             * Sets the value of the queue property.
608             * 
609             * @param value
610             *     allowed object is
611             *     {@link DtoQueue }
612             *     
613             */
614            public void setQueue(DtoQueue value) {
615                this.queue = value;
616            }
617    
618            /**
619             * Gets the value of the tempQueue property.
620             * 
621             * @return
622             *     possible object is
623             *     {@link DtoTempQueue }
624             *     
625             */
626            public DtoTempQueue getTempQueue() {
627                return tempQueue;
628            }
629    
630            /**
631             * Sets the value of the tempQueue property.
632             * 
633             * @param value
634             *     allowed object is
635             *     {@link DtoTempQueue }
636             *     
637             */
638            public void setTempQueue(DtoTempQueue value) {
639                this.tempQueue = value;
640            }
641    
642            /**
643             * Gets the value of the tempTopic property.
644             * 
645             * @return
646             *     possible object is
647             *     {@link DtoTempTopic }
648             *     
649             */
650            public DtoTempTopic getTempTopic() {
651                return tempTopic;
652            }
653    
654            /**
655             * Sets the value of the tempTopic property.
656             * 
657             * @param value
658             *     allowed object is
659             *     {@link DtoTempTopic }
660             *     
661             */
662            public void setTempTopic(DtoTempTopic value) {
663                this.tempTopic = value;
664            }
665    
666            /**
667             * Gets the value of the topic property.
668             * 
669             * @return
670             *     possible object is
671             *     {@link DtoTopic }
672             *     
673             */
674            public DtoTopic getTopic() {
675                return topic;
676            }
677    
678            /**
679             * Sets the value of the topic property.
680             * 
681             * @param value
682             *     allowed object is
683             *     {@link DtoTopic }
684             *     
685             */
686            public void setTopic(DtoTopic value) {
687                this.topic = value;
688            }
689    
690            /**
691             * Gets the value of the any property.
692             * 
693             * @return
694             *     possible object is
695             *     {@link Object }
696             *     
697             */
698            public Object getAny() {
699                return any;
700            }
701    
702            /**
703             * Sets the value of the any property.
704             * 
705             * @param value
706             *     allowed object is
707             *     {@link Object }
708             *     
709             */
710            public void setAny(Object value) {
711                this.any = value;
712            }
713    
714            public String toString() {
715                final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
716                final StringBuilder buffer = new StringBuilder();
717                append(null, buffer, strategy);
718                return buffer.toString();
719            }
720    
721            public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
722                strategy.appendStart(locator, this, buffer);
723                appendFields(locator, buffer, strategy);
724                strategy.appendEnd(locator, this, buffer);
725                return buffer;
726            }
727    
728            public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
729                {
730                    DtoQueue theQueue;
731                    theQueue = this.getQueue();
732                    strategy.appendField(locator, this, "queue", buffer, theQueue);
733                }
734                {
735                    DtoTempQueue theTempQueue;
736                    theTempQueue = this.getTempQueue();
737                    strategy.appendField(locator, this, "tempQueue", buffer, theTempQueue);
738                }
739                {
740                    DtoTempTopic theTempTopic;
741                    theTempTopic = this.getTempTopic();
742                    strategy.appendField(locator, this, "tempTopic", buffer, theTempTopic);
743                }
744                {
745                    DtoTopic theTopic;
746                    theTopic = this.getTopic();
747                    strategy.appendField(locator, this, "topic", buffer, theTopic);
748                }
749                {
750                    Object theAny;
751                    theAny = this.getAny();
752                    strategy.appendField(locator, this, "any", buffer, theAny);
753                }
754                return buffer;
755            }
756    
757            public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
758                int currentHashCode = 1;
759                {
760                    DtoQueue theQueue;
761                    theQueue = this.getQueue();
762                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queue", theQueue), currentHashCode, theQueue);
763                }
764                {
765                    DtoTempQueue theTempQueue;
766                    theTempQueue = this.getTempQueue();
767                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tempQueue", theTempQueue), currentHashCode, theTempQueue);
768                }
769                {
770                    DtoTempTopic theTempTopic;
771                    theTempTopic = this.getTempTopic();
772                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tempTopic", theTempTopic), currentHashCode, theTempTopic);
773                }
774                {
775                    DtoTopic theTopic;
776                    theTopic = this.getTopic();
777                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "topic", theTopic), currentHashCode, theTopic);
778                }
779                {
780                    Object theAny;
781                    theAny = this.getAny();
782                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny);
783                }
784                return currentHashCode;
785            }
786    
787            public int hashCode() {
788                final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
789                return this.hashCode(null, strategy);
790            }
791    
792            public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
793                if (!(object instanceof DtoDestinationEntry.Destination)) {
794                    return false;
795                }
796                if (this == object) {
797                    return true;
798                }
799                final DtoDestinationEntry.Destination that = ((DtoDestinationEntry.Destination) object);
800                {
801                    DtoQueue lhsQueue;
802                    lhsQueue = this.getQueue();
803                    DtoQueue rhsQueue;
804                    rhsQueue = that.getQueue();
805                    if (!strategy.equals(LocatorUtils.property(thisLocator, "queue", lhsQueue), LocatorUtils.property(thatLocator, "queue", rhsQueue), lhsQueue, rhsQueue)) {
806                        return false;
807                    }
808                }
809                {
810                    DtoTempQueue lhsTempQueue;
811                    lhsTempQueue = this.getTempQueue();
812                    DtoTempQueue rhsTempQueue;
813                    rhsTempQueue = that.getTempQueue();
814                    if (!strategy.equals(LocatorUtils.property(thisLocator, "tempQueue", lhsTempQueue), LocatorUtils.property(thatLocator, "tempQueue", rhsTempQueue), lhsTempQueue, rhsTempQueue)) {
815                        return false;
816                    }
817                }
818                {
819                    DtoTempTopic lhsTempTopic;
820                    lhsTempTopic = this.getTempTopic();
821                    DtoTempTopic rhsTempTopic;
822                    rhsTempTopic = that.getTempTopic();
823                    if (!strategy.equals(LocatorUtils.property(thisLocator, "tempTopic", lhsTempTopic), LocatorUtils.property(thatLocator, "tempTopic", rhsTempTopic), lhsTempTopic, rhsTempTopic)) {
824                        return false;
825                    }
826                }
827                {
828                    DtoTopic lhsTopic;
829                    lhsTopic = this.getTopic();
830                    DtoTopic rhsTopic;
831                    rhsTopic = that.getTopic();
832                    if (!strategy.equals(LocatorUtils.property(thisLocator, "topic", lhsTopic), LocatorUtils.property(thatLocator, "topic", rhsTopic), lhsTopic, rhsTopic)) {
833                        return false;
834                    }
835                }
836                {
837                    Object lhsAny;
838                    lhsAny = this.getAny();
839                    Object rhsAny;
840                    rhsAny = that.getAny();
841                    if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) {
842                        return false;
843                    }
844                }
845                return true;
846            }
847    
848            public boolean equals(Object object) {
849                final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
850                return equals(null, null, object, strategy);
851            }
852    
853        }
854    
855    
856        /**
857         * <p>Java class for anonymous complex type.
858         * 
859         * <p>The following schema fragment specifies the expected content contained within this class.
860         * 
861         * <pre>
862         * &lt;complexType>
863         *   &lt;complexContent>
864         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
865         *       &lt;choice minOccurs="0">
866         *         &lt;element ref="{http://activemq.apache.org/schema/core}authorizationEntry"/>
867         *         &lt;element ref="{http://activemq.apache.org/schema/core}destinationEntry"/>
868         *         &lt;element ref="{http://activemq.apache.org/schema/core}filteredKahaDB"/>
869         *         &lt;element ref="{http://activemq.apache.org/schema/core}policyEntry"/>
870         *         &lt;element ref="{http://activemq.apache.org/schema/core}redeliveryPolicy"/>
871         *         &lt;element ref="{http://activemq.apache.org/schema/core}tempDestinationAuthorizationEntry"/>
872         *         &lt;any namespace='##other'/>
873         *       &lt;/choice>
874         *     &lt;/restriction>
875         *   &lt;/complexContent>
876         * &lt;/complexType>
877         * </pre>
878         * 
879         * 
880         */
881        @XmlAccessorType(XmlAccessType.FIELD)
882        @XmlType(name = "", propOrder = {
883            "authorizationEntry",
884            "destinationEntry",
885            "filteredKahaDB",
886            "policyEntry",
887            "redeliveryPolicy",
888            "tempDestinationAuthorizationEntry",
889            "any"
890        })
891        public static class Value
892            implements Equals, HashCode, ToString
893        {
894    
895            protected DtoAuthorizationEntry authorizationEntry;
896            protected DtoDestinationEntry destinationEntry;
897            protected DtoFilteredKahaDB filteredKahaDB;
898            protected DtoPolicyEntry policyEntry;
899            protected DtoRedeliveryPolicy redeliveryPolicy;
900            protected DtoTempDestinationAuthorizationEntry tempDestinationAuthorizationEntry;
901            @XmlAnyElement(lax = true)
902            protected Object any;
903    
904            /**
905             * Gets the value of the authorizationEntry property.
906             * 
907             * @return
908             *     possible object is
909             *     {@link DtoAuthorizationEntry }
910             *     
911             */
912            public DtoAuthorizationEntry getAuthorizationEntry() {
913                return authorizationEntry;
914            }
915    
916            /**
917             * Sets the value of the authorizationEntry property.
918             * 
919             * @param value
920             *     allowed object is
921             *     {@link DtoAuthorizationEntry }
922             *     
923             */
924            public void setAuthorizationEntry(DtoAuthorizationEntry value) {
925                this.authorizationEntry = value;
926            }
927    
928            /**
929             * Gets the value of the destinationEntry property.
930             * 
931             * @return
932             *     possible object is
933             *     {@link DtoDestinationEntry }
934             *     
935             */
936            public DtoDestinationEntry getDestinationEntry() {
937                return destinationEntry;
938            }
939    
940            /**
941             * Sets the value of the destinationEntry property.
942             * 
943             * @param value
944             *     allowed object is
945             *     {@link DtoDestinationEntry }
946             *     
947             */
948            public void setDestinationEntry(DtoDestinationEntry value) {
949                this.destinationEntry = value;
950            }
951    
952            /**
953             * Gets the value of the filteredKahaDB property.
954             * 
955             * @return
956             *     possible object is
957             *     {@link DtoFilteredKahaDB }
958             *     
959             */
960            public DtoFilteredKahaDB getFilteredKahaDB() {
961                return filteredKahaDB;
962            }
963    
964            /**
965             * Sets the value of the filteredKahaDB property.
966             * 
967             * @param value
968             *     allowed object is
969             *     {@link DtoFilteredKahaDB }
970             *     
971             */
972            public void setFilteredKahaDB(DtoFilteredKahaDB value) {
973                this.filteredKahaDB = value;
974            }
975    
976            /**
977             * Gets the value of the policyEntry property.
978             * 
979             * @return
980             *     possible object is
981             *     {@link DtoPolicyEntry }
982             *     
983             */
984            public DtoPolicyEntry getPolicyEntry() {
985                return policyEntry;
986            }
987    
988            /**
989             * Sets the value of the policyEntry property.
990             * 
991             * @param value
992             *     allowed object is
993             *     {@link DtoPolicyEntry }
994             *     
995             */
996            public void setPolicyEntry(DtoPolicyEntry value) {
997                this.policyEntry = value;
998            }
999    
1000            /**
1001             * Gets the value of the redeliveryPolicy property.
1002             * 
1003             * @return
1004             *     possible object is
1005             *     {@link DtoRedeliveryPolicy }
1006             *     
1007             */
1008            public DtoRedeliveryPolicy getRedeliveryPolicy() {
1009                return redeliveryPolicy;
1010            }
1011    
1012            /**
1013             * Sets the value of the redeliveryPolicy property.
1014             * 
1015             * @param value
1016             *     allowed object is
1017             *     {@link DtoRedeliveryPolicy }
1018             *     
1019             */
1020            public void setRedeliveryPolicy(DtoRedeliveryPolicy value) {
1021                this.redeliveryPolicy = value;
1022            }
1023    
1024            /**
1025             * Gets the value of the tempDestinationAuthorizationEntry property.
1026             * 
1027             * @return
1028             *     possible object is
1029             *     {@link DtoTempDestinationAuthorizationEntry }
1030             *     
1031             */
1032            public DtoTempDestinationAuthorizationEntry getTempDestinationAuthorizationEntry() {
1033                return tempDestinationAuthorizationEntry;
1034            }
1035    
1036            /**
1037             * Sets the value of the tempDestinationAuthorizationEntry property.
1038             * 
1039             * @param value
1040             *     allowed object is
1041             *     {@link DtoTempDestinationAuthorizationEntry }
1042             *     
1043             */
1044            public void setTempDestinationAuthorizationEntry(DtoTempDestinationAuthorizationEntry value) {
1045                this.tempDestinationAuthorizationEntry = value;
1046            }
1047    
1048            /**
1049             * Gets the value of the any property.
1050             * 
1051             * @return
1052             *     possible object is
1053             *     {@link Object }
1054             *     
1055             */
1056            public Object getAny() {
1057                return any;
1058            }
1059    
1060            /**
1061             * Sets the value of the any property.
1062             * 
1063             * @param value
1064             *     allowed object is
1065             *     {@link Object }
1066             *     
1067             */
1068            public void setAny(Object value) {
1069                this.any = value;
1070            }
1071    
1072            public String toString() {
1073                final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
1074                final StringBuilder buffer = new StringBuilder();
1075                append(null, buffer, strategy);
1076                return buffer.toString();
1077            }
1078    
1079            public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
1080                strategy.appendStart(locator, this, buffer);
1081                appendFields(locator, buffer, strategy);
1082                strategy.appendEnd(locator, this, buffer);
1083                return buffer;
1084            }
1085    
1086            public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
1087                {
1088                    DtoAuthorizationEntry theAuthorizationEntry;
1089                    theAuthorizationEntry = this.getAuthorizationEntry();
1090                    strategy.appendField(locator, this, "authorizationEntry", buffer, theAuthorizationEntry);
1091                }
1092                {
1093                    DtoDestinationEntry theDestinationEntry;
1094                    theDestinationEntry = this.getDestinationEntry();
1095                    strategy.appendField(locator, this, "destinationEntry", buffer, theDestinationEntry);
1096                }
1097                {
1098                    DtoFilteredKahaDB theFilteredKahaDB;
1099                    theFilteredKahaDB = this.getFilteredKahaDB();
1100                    strategy.appendField(locator, this, "filteredKahaDB", buffer, theFilteredKahaDB);
1101                }
1102                {
1103                    DtoPolicyEntry thePolicyEntry;
1104                    thePolicyEntry = this.getPolicyEntry();
1105                    strategy.appendField(locator, this, "policyEntry", buffer, thePolicyEntry);
1106                }
1107                {
1108                    DtoRedeliveryPolicy theRedeliveryPolicy;
1109                    theRedeliveryPolicy = this.getRedeliveryPolicy();
1110                    strategy.appendField(locator, this, "redeliveryPolicy", buffer, theRedeliveryPolicy);
1111                }
1112                {
1113                    DtoTempDestinationAuthorizationEntry theTempDestinationAuthorizationEntry;
1114                    theTempDestinationAuthorizationEntry = this.getTempDestinationAuthorizationEntry();
1115                    strategy.appendField(locator, this, "tempDestinationAuthorizationEntry", buffer, theTempDestinationAuthorizationEntry);
1116                }
1117                {
1118                    Object theAny;
1119                    theAny = this.getAny();
1120                    strategy.appendField(locator, this, "any", buffer, theAny);
1121                }
1122                return buffer;
1123            }
1124    
1125            public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
1126                int currentHashCode = 1;
1127                {
1128                    DtoAuthorizationEntry theAuthorizationEntry;
1129                    theAuthorizationEntry = this.getAuthorizationEntry();
1130                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "authorizationEntry", theAuthorizationEntry), currentHashCode, theAuthorizationEntry);
1131                }
1132                {
1133                    DtoDestinationEntry theDestinationEntry;
1134                    theDestinationEntry = this.getDestinationEntry();
1135                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destinationEntry", theDestinationEntry), currentHashCode, theDestinationEntry);
1136                }
1137                {
1138                    DtoFilteredKahaDB theFilteredKahaDB;
1139                    theFilteredKahaDB = this.getFilteredKahaDB();
1140                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "filteredKahaDB", theFilteredKahaDB), currentHashCode, theFilteredKahaDB);
1141                }
1142                {
1143                    DtoPolicyEntry thePolicyEntry;
1144                    thePolicyEntry = this.getPolicyEntry();
1145                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "policyEntry", thePolicyEntry), currentHashCode, thePolicyEntry);
1146                }
1147                {
1148                    DtoRedeliveryPolicy theRedeliveryPolicy;
1149                    theRedeliveryPolicy = this.getRedeliveryPolicy();
1150                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "redeliveryPolicy", theRedeliveryPolicy), currentHashCode, theRedeliveryPolicy);
1151                }
1152                {
1153                    DtoTempDestinationAuthorizationEntry theTempDestinationAuthorizationEntry;
1154                    theTempDestinationAuthorizationEntry = this.getTempDestinationAuthorizationEntry();
1155                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tempDestinationAuthorizationEntry", theTempDestinationAuthorizationEntry), currentHashCode, theTempDestinationAuthorizationEntry);
1156                }
1157                {
1158                    Object theAny;
1159                    theAny = this.getAny();
1160                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny);
1161                }
1162                return currentHashCode;
1163            }
1164    
1165            public int hashCode() {
1166                final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
1167                return this.hashCode(null, strategy);
1168            }
1169    
1170            public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
1171                if (!(object instanceof DtoDestinationEntry.Value)) {
1172                    return false;
1173                }
1174                if (this == object) {
1175                    return true;
1176                }
1177                final DtoDestinationEntry.Value that = ((DtoDestinationEntry.Value) object);
1178                {
1179                    DtoAuthorizationEntry lhsAuthorizationEntry;
1180                    lhsAuthorizationEntry = this.getAuthorizationEntry();
1181                    DtoAuthorizationEntry rhsAuthorizationEntry;
1182                    rhsAuthorizationEntry = that.getAuthorizationEntry();
1183                    if (!strategy.equals(LocatorUtils.property(thisLocator, "authorizationEntry", lhsAuthorizationEntry), LocatorUtils.property(thatLocator, "authorizationEntry", rhsAuthorizationEntry), lhsAuthorizationEntry, rhsAuthorizationEntry)) {
1184                        return false;
1185                    }
1186                }
1187                {
1188                    DtoDestinationEntry lhsDestinationEntry;
1189                    lhsDestinationEntry = this.getDestinationEntry();
1190                    DtoDestinationEntry rhsDestinationEntry;
1191                    rhsDestinationEntry = that.getDestinationEntry();
1192                    if (!strategy.equals(LocatorUtils.property(thisLocator, "destinationEntry", lhsDestinationEntry), LocatorUtils.property(thatLocator, "destinationEntry", rhsDestinationEntry), lhsDestinationEntry, rhsDestinationEntry)) {
1193                        return false;
1194                    }
1195                }
1196                {
1197                    DtoFilteredKahaDB lhsFilteredKahaDB;
1198                    lhsFilteredKahaDB = this.getFilteredKahaDB();
1199                    DtoFilteredKahaDB rhsFilteredKahaDB;
1200                    rhsFilteredKahaDB = that.getFilteredKahaDB();
1201                    if (!strategy.equals(LocatorUtils.property(thisLocator, "filteredKahaDB", lhsFilteredKahaDB), LocatorUtils.property(thatLocator, "filteredKahaDB", rhsFilteredKahaDB), lhsFilteredKahaDB, rhsFilteredKahaDB)) {
1202                        return false;
1203                    }
1204                }
1205                {
1206                    DtoPolicyEntry lhsPolicyEntry;
1207                    lhsPolicyEntry = this.getPolicyEntry();
1208                    DtoPolicyEntry rhsPolicyEntry;
1209                    rhsPolicyEntry = that.getPolicyEntry();
1210                    if (!strategy.equals(LocatorUtils.property(thisLocator, "policyEntry", lhsPolicyEntry), LocatorUtils.property(thatLocator, "policyEntry", rhsPolicyEntry), lhsPolicyEntry, rhsPolicyEntry)) {
1211                        return false;
1212                    }
1213                }
1214                {
1215                    DtoRedeliveryPolicy lhsRedeliveryPolicy;
1216                    lhsRedeliveryPolicy = this.getRedeliveryPolicy();
1217                    DtoRedeliveryPolicy rhsRedeliveryPolicy;
1218                    rhsRedeliveryPolicy = that.getRedeliveryPolicy();
1219                    if (!strategy.equals(LocatorUtils.property(thisLocator, "redeliveryPolicy", lhsRedeliveryPolicy), LocatorUtils.property(thatLocator, "redeliveryPolicy", rhsRedeliveryPolicy), lhsRedeliveryPolicy, rhsRedeliveryPolicy)) {
1220                        return false;
1221                    }
1222                }
1223                {
1224                    DtoTempDestinationAuthorizationEntry lhsTempDestinationAuthorizationEntry;
1225                    lhsTempDestinationAuthorizationEntry = this.getTempDestinationAuthorizationEntry();
1226                    DtoTempDestinationAuthorizationEntry rhsTempDestinationAuthorizationEntry;
1227                    rhsTempDestinationAuthorizationEntry = that.getTempDestinationAuthorizationEntry();
1228                    if (!strategy.equals(LocatorUtils.property(thisLocator, "tempDestinationAuthorizationEntry", lhsTempDestinationAuthorizationEntry), LocatorUtils.property(thatLocator, "tempDestinationAuthorizationEntry", rhsTempDestinationAuthorizationEntry), lhsTempDestinationAuthorizationEntry, rhsTempDestinationAuthorizationEntry)) {
1229                        return false;
1230                    }
1231                }
1232                {
1233                    Object lhsAny;
1234                    lhsAny = this.getAny();
1235                    Object rhsAny;
1236                    rhsAny = that.getAny();
1237                    if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) {
1238                        return false;
1239                    }
1240                }
1241                return true;
1242            }
1243    
1244            public boolean equals(Object object) {
1245                final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
1246                return equals(null, null, object, strategy);
1247            }
1248    
1249        }
1250    
1251    }