001//
002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.10-b140310.1920 
003// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
004// Any modifications to this file will be lost upon recompilation of the source schema. 
005// Generated on: 2015.08.06 at 10:20:24 AM EDT 
006//
007
008
009package org.apache.activemq.schema.core;
010
011import java.util.HashMap;
012import java.util.Map;
013import javax.xml.bind.annotation.XmlAccessType;
014import javax.xml.bind.annotation.XmlAccessorType;
015import javax.xml.bind.annotation.XmlAnyAttribute;
016import javax.xml.bind.annotation.XmlAttribute;
017import javax.xml.bind.annotation.XmlID;
018import javax.xml.bind.annotation.XmlRootElement;
019import javax.xml.bind.annotation.XmlSchemaType;
020import javax.xml.bind.annotation.XmlType;
021import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
022import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
023import javax.xml.namespace.QName;
024import org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy;
025import org.jvnet.jaxb2_commons.lang.Equals;
026import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
027import org.jvnet.jaxb2_commons.lang.HashCode;
028import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
029import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
030import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
031import org.jvnet.jaxb2_commons.lang.ToString;
032import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
033import org.jvnet.jaxb2_commons.locator.ObjectLocator;
034import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
035
036
037/**
038 * <p>Java class for anonymous complex type.
039 * 
040 * <p>The following schema fragment specifies the expected content contained within this class.
041 * 
042 * <pre>
043 * &lt;complexType>
044 *   &lt;complexContent>
045 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
046 *       &lt;attribute name="destinationPerDurableSubscriber" type="{http://www.w3.org/2001/XMLSchema}boolean" />
047 *       &lt;attribute name="enableAudit" type="{http://www.w3.org/2001/XMLSchema}boolean" />
048 *       &lt;attribute name="processExpired" type="{http://www.w3.org/2001/XMLSchema}boolean" />
049 *       &lt;attribute name="processNonPersistent" type="{http://www.w3.org/2001/XMLSchema}boolean" />
050 *       &lt;attribute name="queuePrefix" type="{http://www.w3.org/2001/XMLSchema}string" />
051 *       &lt;attribute name="queueSuffix" type="{http://www.w3.org/2001/XMLSchema}string" />
052 *       &lt;attribute name="topicPrefix" type="{http://www.w3.org/2001/XMLSchema}string" />
053 *       &lt;attribute name="topicSuffix" type="{http://www.w3.org/2001/XMLSchema}string" />
054 *       &lt;attribute name="useQueueForQueueMessages" type="{http://www.w3.org/2001/XMLSchema}boolean" />
055 *       &lt;attribute name="useQueueForTopicMessages" type="{http://www.w3.org/2001/XMLSchema}boolean" />
056 *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
057 *       &lt;anyAttribute processContents='lax' namespace='##other'/>
058 *     &lt;/restriction>
059 *   &lt;/complexContent>
060 * &lt;/complexType>
061 * </pre>
062 * 
063 * 
064 */
065@XmlAccessorType(XmlAccessType.FIELD)
066@XmlType(name = "")
067@XmlRootElement(name = "individualDeadLetterStrategy")
068public class DtoIndividualDeadLetterStrategy
069    implements Equals, HashCode, ToString
070{
071
072    @XmlAttribute(name = "destinationPerDurableSubscriber")
073    protected Boolean destinationPerDurableSubscriber;
074    @XmlAttribute(name = "enableAudit")
075    protected Boolean enableAudit;
076    @XmlAttribute(name = "processExpired")
077    protected Boolean processExpired;
078    @XmlAttribute(name = "processNonPersistent")
079    protected Boolean processNonPersistent;
080    @XmlAttribute(name = "queuePrefix")
081    protected String queuePrefix;
082    @XmlAttribute(name = "queueSuffix")
083    protected String queueSuffix;
084    @XmlAttribute(name = "topicPrefix")
085    protected String topicPrefix;
086    @XmlAttribute(name = "topicSuffix")
087    protected String topicSuffix;
088    @XmlAttribute(name = "useQueueForQueueMessages")
089    protected Boolean useQueueForQueueMessages;
090    @XmlAttribute(name = "useQueueForTopicMessages")
091    protected Boolean useQueueForTopicMessages;
092    @XmlAttribute(name = "id")
093    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
094    @XmlID
095    @XmlSchemaType(name = "ID")
096    protected String id;
097    @XmlAnyAttribute
098    private Map<QName, String> otherAttributes = new HashMap<QName, String>();
099
100    /**
101     * Gets the value of the destinationPerDurableSubscriber property.
102     * 
103     * @return
104     *     possible object is
105     *     {@link Boolean }
106     *     
107     */
108    public Boolean isDestinationPerDurableSubscriber() {
109        return destinationPerDurableSubscriber;
110    }
111
112    /**
113     * Sets the value of the destinationPerDurableSubscriber property.
114     * 
115     * @param value
116     *     allowed object is
117     *     {@link Boolean }
118     *     
119     */
120    public void setDestinationPerDurableSubscriber(Boolean value) {
121        this.destinationPerDurableSubscriber = value;
122    }
123
124    /**
125     * Gets the value of the enableAudit property.
126     * 
127     * @return
128     *     possible object is
129     *     {@link Boolean }
130     *     
131     */
132    public Boolean isEnableAudit() {
133        return enableAudit;
134    }
135
136    /**
137     * Sets the value of the enableAudit property.
138     * 
139     * @param value
140     *     allowed object is
141     *     {@link Boolean }
142     *     
143     */
144    public void setEnableAudit(Boolean value) {
145        this.enableAudit = value;
146    }
147
148    /**
149     * Gets the value of the processExpired property.
150     * 
151     * @return
152     *     possible object is
153     *     {@link Boolean }
154     *     
155     */
156    public Boolean isProcessExpired() {
157        return processExpired;
158    }
159
160    /**
161     * Sets the value of the processExpired property.
162     * 
163     * @param value
164     *     allowed object is
165     *     {@link Boolean }
166     *     
167     */
168    public void setProcessExpired(Boolean value) {
169        this.processExpired = value;
170    }
171
172    /**
173     * Gets the value of the processNonPersistent property.
174     * 
175     * @return
176     *     possible object is
177     *     {@link Boolean }
178     *     
179     */
180    public Boolean isProcessNonPersistent() {
181        return processNonPersistent;
182    }
183
184    /**
185     * Sets the value of the processNonPersistent property.
186     * 
187     * @param value
188     *     allowed object is
189     *     {@link Boolean }
190     *     
191     */
192    public void setProcessNonPersistent(Boolean value) {
193        this.processNonPersistent = value;
194    }
195
196    /**
197     * Gets the value of the queuePrefix property.
198     * 
199     * @return
200     *     possible object is
201     *     {@link String }
202     *     
203     */
204    public String getQueuePrefix() {
205        return queuePrefix;
206    }
207
208    /**
209     * Sets the value of the queuePrefix property.
210     * 
211     * @param value
212     *     allowed object is
213     *     {@link String }
214     *     
215     */
216    public void setQueuePrefix(String value) {
217        this.queuePrefix = value;
218    }
219
220    /**
221     * Gets the value of the queueSuffix property.
222     * 
223     * @return
224     *     possible object is
225     *     {@link String }
226     *     
227     */
228    public String getQueueSuffix() {
229        return queueSuffix;
230    }
231
232    /**
233     * Sets the value of the queueSuffix property.
234     * 
235     * @param value
236     *     allowed object is
237     *     {@link String }
238     *     
239     */
240    public void setQueueSuffix(String value) {
241        this.queueSuffix = value;
242    }
243
244    /**
245     * Gets the value of the topicPrefix property.
246     * 
247     * @return
248     *     possible object is
249     *     {@link String }
250     *     
251     */
252    public String getTopicPrefix() {
253        return topicPrefix;
254    }
255
256    /**
257     * Sets the value of the topicPrefix property.
258     * 
259     * @param value
260     *     allowed object is
261     *     {@link String }
262     *     
263     */
264    public void setTopicPrefix(String value) {
265        this.topicPrefix = value;
266    }
267
268    /**
269     * Gets the value of the topicSuffix property.
270     * 
271     * @return
272     *     possible object is
273     *     {@link String }
274     *     
275     */
276    public String getTopicSuffix() {
277        return topicSuffix;
278    }
279
280    /**
281     * Sets the value of the topicSuffix property.
282     * 
283     * @param value
284     *     allowed object is
285     *     {@link String }
286     *     
287     */
288    public void setTopicSuffix(String value) {
289        this.topicSuffix = value;
290    }
291
292    /**
293     * Gets the value of the useQueueForQueueMessages property.
294     * 
295     * @return
296     *     possible object is
297     *     {@link Boolean }
298     *     
299     */
300    public Boolean isUseQueueForQueueMessages() {
301        return useQueueForQueueMessages;
302    }
303
304    /**
305     * Sets the value of the useQueueForQueueMessages property.
306     * 
307     * @param value
308     *     allowed object is
309     *     {@link Boolean }
310     *     
311     */
312    public void setUseQueueForQueueMessages(Boolean value) {
313        this.useQueueForQueueMessages = value;
314    }
315
316    /**
317     * Gets the value of the useQueueForTopicMessages property.
318     * 
319     * @return
320     *     possible object is
321     *     {@link Boolean }
322     *     
323     */
324    public Boolean isUseQueueForTopicMessages() {
325        return useQueueForTopicMessages;
326    }
327
328    /**
329     * Sets the value of the useQueueForTopicMessages property.
330     * 
331     * @param value
332     *     allowed object is
333     *     {@link Boolean }
334     *     
335     */
336    public void setUseQueueForTopicMessages(Boolean value) {
337        this.useQueueForTopicMessages = value;
338    }
339
340    /**
341     * Gets the value of the id property.
342     * 
343     * @return
344     *     possible object is
345     *     {@link String }
346     *     
347     */
348    public String getId() {
349        return id;
350    }
351
352    /**
353     * Sets the value of the id property.
354     * 
355     * @param value
356     *     allowed object is
357     *     {@link String }
358     *     
359     */
360    public void setId(String value) {
361        this.id = value;
362    }
363
364    /**
365     * Gets a map that contains attributes that aren't bound to any typed property on this class.
366     * 
367     * <p>
368     * the map is keyed by the name of the attribute and 
369     * the value is the string value of the attribute.
370     * 
371     * the map returned by this method is live, and you can add new attribute
372     * by updating the map directly. Because of this design, there's no setter.
373     * 
374     * 
375     * @return
376     *     always non-null
377     */
378    public Map<QName, String> getOtherAttributes() {
379        return otherAttributes;
380    }
381
382    public String toString() {
383        final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
384        final StringBuilder buffer = new StringBuilder();
385        append(null, buffer, strategy);
386        return buffer.toString();
387    }
388
389    public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
390        strategy.appendStart(locator, this, buffer);
391        appendFields(locator, buffer, strategy);
392        strategy.appendEnd(locator, this, buffer);
393        return buffer;
394    }
395
396    public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
397        {
398            Boolean theDestinationPerDurableSubscriber;
399            theDestinationPerDurableSubscriber = this.isDestinationPerDurableSubscriber();
400            strategy.appendField(locator, this, "destinationPerDurableSubscriber", buffer, theDestinationPerDurableSubscriber);
401        }
402        {
403            Boolean theEnableAudit;
404            theEnableAudit = this.isEnableAudit();
405            strategy.appendField(locator, this, "enableAudit", buffer, theEnableAudit);
406        }
407        {
408            Boolean theProcessExpired;
409            theProcessExpired = this.isProcessExpired();
410            strategy.appendField(locator, this, "processExpired", buffer, theProcessExpired);
411        }
412        {
413            Boolean theProcessNonPersistent;
414            theProcessNonPersistent = this.isProcessNonPersistent();
415            strategy.appendField(locator, this, "processNonPersistent", buffer, theProcessNonPersistent);
416        }
417        {
418            String theQueuePrefix;
419            theQueuePrefix = this.getQueuePrefix();
420            strategy.appendField(locator, this, "queuePrefix", buffer, theQueuePrefix);
421        }
422        {
423            String theQueueSuffix;
424            theQueueSuffix = this.getQueueSuffix();
425            strategy.appendField(locator, this, "queueSuffix", buffer, theQueueSuffix);
426        }
427        {
428            String theTopicPrefix;
429            theTopicPrefix = this.getTopicPrefix();
430            strategy.appendField(locator, this, "topicPrefix", buffer, theTopicPrefix);
431        }
432        {
433            String theTopicSuffix;
434            theTopicSuffix = this.getTopicSuffix();
435            strategy.appendField(locator, this, "topicSuffix", buffer, theTopicSuffix);
436        }
437        {
438            Boolean theUseQueueForQueueMessages;
439            theUseQueueForQueueMessages = this.isUseQueueForQueueMessages();
440            strategy.appendField(locator, this, "useQueueForQueueMessages", buffer, theUseQueueForQueueMessages);
441        }
442        {
443            Boolean theUseQueueForTopicMessages;
444            theUseQueueForTopicMessages = this.isUseQueueForTopicMessages();
445            strategy.appendField(locator, this, "useQueueForTopicMessages", buffer, theUseQueueForTopicMessages);
446        }
447        {
448            String theId;
449            theId = this.getId();
450            strategy.appendField(locator, this, "id", buffer, theId);
451        }
452        return buffer;
453    }
454
455    public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
456        int currentHashCode = 1;
457        {
458            Boolean theDestinationPerDurableSubscriber;
459            theDestinationPerDurableSubscriber = this.isDestinationPerDurableSubscriber();
460            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destinationPerDurableSubscriber", theDestinationPerDurableSubscriber), currentHashCode, theDestinationPerDurableSubscriber);
461        }
462        {
463            Boolean theEnableAudit;
464            theEnableAudit = this.isEnableAudit();
465            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "enableAudit", theEnableAudit), currentHashCode, theEnableAudit);
466        }
467        {
468            Boolean theProcessExpired;
469            theProcessExpired = this.isProcessExpired();
470            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "processExpired", theProcessExpired), currentHashCode, theProcessExpired);
471        }
472        {
473            Boolean theProcessNonPersistent;
474            theProcessNonPersistent = this.isProcessNonPersistent();
475            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "processNonPersistent", theProcessNonPersistent), currentHashCode, theProcessNonPersistent);
476        }
477        {
478            String theQueuePrefix;
479            theQueuePrefix = this.getQueuePrefix();
480            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queuePrefix", theQueuePrefix), currentHashCode, theQueuePrefix);
481        }
482        {
483            String theQueueSuffix;
484            theQueueSuffix = this.getQueueSuffix();
485            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "queueSuffix", theQueueSuffix), currentHashCode, theQueueSuffix);
486        }
487        {
488            String theTopicPrefix;
489            theTopicPrefix = this.getTopicPrefix();
490            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "topicPrefix", theTopicPrefix), currentHashCode, theTopicPrefix);
491        }
492        {
493            String theTopicSuffix;
494            theTopicSuffix = this.getTopicSuffix();
495            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "topicSuffix", theTopicSuffix), currentHashCode, theTopicSuffix);
496        }
497        {
498            Boolean theUseQueueForQueueMessages;
499            theUseQueueForQueueMessages = this.isUseQueueForQueueMessages();
500            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "useQueueForQueueMessages", theUseQueueForQueueMessages), currentHashCode, theUseQueueForQueueMessages);
501        }
502        {
503            Boolean theUseQueueForTopicMessages;
504            theUseQueueForTopicMessages = this.isUseQueueForTopicMessages();
505            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "useQueueForTopicMessages", theUseQueueForTopicMessages), currentHashCode, theUseQueueForTopicMessages);
506        }
507        {
508            String theId;
509            theId = this.getId();
510            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
511        }
512        return currentHashCode;
513    }
514
515    public int hashCode() {
516        final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
517        return this.hashCode(null, strategy);
518    }
519
520    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
521        if (!(object instanceof DtoIndividualDeadLetterStrategy)) {
522            return false;
523        }
524        if (this == object) {
525            return true;
526        }
527        final DtoIndividualDeadLetterStrategy that = ((DtoIndividualDeadLetterStrategy) object);
528        {
529            Boolean lhsDestinationPerDurableSubscriber;
530            lhsDestinationPerDurableSubscriber = this.isDestinationPerDurableSubscriber();
531            Boolean rhsDestinationPerDurableSubscriber;
532            rhsDestinationPerDurableSubscriber = that.isDestinationPerDurableSubscriber();
533            if (!strategy.equals(LocatorUtils.property(thisLocator, "destinationPerDurableSubscriber", lhsDestinationPerDurableSubscriber), LocatorUtils.property(thatLocator, "destinationPerDurableSubscriber", rhsDestinationPerDurableSubscriber), lhsDestinationPerDurableSubscriber, rhsDestinationPerDurableSubscriber)) {
534                return false;
535            }
536        }
537        {
538            Boolean lhsEnableAudit;
539            lhsEnableAudit = this.isEnableAudit();
540            Boolean rhsEnableAudit;
541            rhsEnableAudit = that.isEnableAudit();
542            if (!strategy.equals(LocatorUtils.property(thisLocator, "enableAudit", lhsEnableAudit), LocatorUtils.property(thatLocator, "enableAudit", rhsEnableAudit), lhsEnableAudit, rhsEnableAudit)) {
543                return false;
544            }
545        }
546        {
547            Boolean lhsProcessExpired;
548            lhsProcessExpired = this.isProcessExpired();
549            Boolean rhsProcessExpired;
550            rhsProcessExpired = that.isProcessExpired();
551            if (!strategy.equals(LocatorUtils.property(thisLocator, "processExpired", lhsProcessExpired), LocatorUtils.property(thatLocator, "processExpired", rhsProcessExpired), lhsProcessExpired, rhsProcessExpired)) {
552                return false;
553            }
554        }
555        {
556            Boolean lhsProcessNonPersistent;
557            lhsProcessNonPersistent = this.isProcessNonPersistent();
558            Boolean rhsProcessNonPersistent;
559            rhsProcessNonPersistent = that.isProcessNonPersistent();
560            if (!strategy.equals(LocatorUtils.property(thisLocator, "processNonPersistent", lhsProcessNonPersistent), LocatorUtils.property(thatLocator, "processNonPersistent", rhsProcessNonPersistent), lhsProcessNonPersistent, rhsProcessNonPersistent)) {
561                return false;
562            }
563        }
564        {
565            String lhsQueuePrefix;
566            lhsQueuePrefix = this.getQueuePrefix();
567            String rhsQueuePrefix;
568            rhsQueuePrefix = that.getQueuePrefix();
569            if (!strategy.equals(LocatorUtils.property(thisLocator, "queuePrefix", lhsQueuePrefix), LocatorUtils.property(thatLocator, "queuePrefix", rhsQueuePrefix), lhsQueuePrefix, rhsQueuePrefix)) {
570                return false;
571            }
572        }
573        {
574            String lhsQueueSuffix;
575            lhsQueueSuffix = this.getQueueSuffix();
576            String rhsQueueSuffix;
577            rhsQueueSuffix = that.getQueueSuffix();
578            if (!strategy.equals(LocatorUtils.property(thisLocator, "queueSuffix", lhsQueueSuffix), LocatorUtils.property(thatLocator, "queueSuffix", rhsQueueSuffix), lhsQueueSuffix, rhsQueueSuffix)) {
579                return false;
580            }
581        }
582        {
583            String lhsTopicPrefix;
584            lhsTopicPrefix = this.getTopicPrefix();
585            String rhsTopicPrefix;
586            rhsTopicPrefix = that.getTopicPrefix();
587            if (!strategy.equals(LocatorUtils.property(thisLocator, "topicPrefix", lhsTopicPrefix), LocatorUtils.property(thatLocator, "topicPrefix", rhsTopicPrefix), lhsTopicPrefix, rhsTopicPrefix)) {
588                return false;
589            }
590        }
591        {
592            String lhsTopicSuffix;
593            lhsTopicSuffix = this.getTopicSuffix();
594            String rhsTopicSuffix;
595            rhsTopicSuffix = that.getTopicSuffix();
596            if (!strategy.equals(LocatorUtils.property(thisLocator, "topicSuffix", lhsTopicSuffix), LocatorUtils.property(thatLocator, "topicSuffix", rhsTopicSuffix), lhsTopicSuffix, rhsTopicSuffix)) {
597                return false;
598            }
599        }
600        {
601            Boolean lhsUseQueueForQueueMessages;
602            lhsUseQueueForQueueMessages = this.isUseQueueForQueueMessages();
603            Boolean rhsUseQueueForQueueMessages;
604            rhsUseQueueForQueueMessages = that.isUseQueueForQueueMessages();
605            if (!strategy.equals(LocatorUtils.property(thisLocator, "useQueueForQueueMessages", lhsUseQueueForQueueMessages), LocatorUtils.property(thatLocator, "useQueueForQueueMessages", rhsUseQueueForQueueMessages), lhsUseQueueForQueueMessages, rhsUseQueueForQueueMessages)) {
606                return false;
607            }
608        }
609        {
610            Boolean lhsUseQueueForTopicMessages;
611            lhsUseQueueForTopicMessages = this.isUseQueueForTopicMessages();
612            Boolean rhsUseQueueForTopicMessages;
613            rhsUseQueueForTopicMessages = that.isUseQueueForTopicMessages();
614            if (!strategy.equals(LocatorUtils.property(thisLocator, "useQueueForTopicMessages", lhsUseQueueForTopicMessages), LocatorUtils.property(thatLocator, "useQueueForTopicMessages", rhsUseQueueForTopicMessages), lhsUseQueueForTopicMessages, rhsUseQueueForTopicMessages)) {
615                return false;
616            }
617        }
618        {
619            String lhsId;
620            lhsId = this.getId();
621            String rhsId;
622            rhsId = that.getId();
623            if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) {
624                return false;
625            }
626        }
627        return true;
628    }
629
630    public boolean equals(Object object) {
631        final EqualsStrategy strategy = new ElementAwareEqualsStrategy();
632        return equals(null, null, object, strategy);
633    }
634
635}