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.math.BigInteger;
012    import java.util.ArrayList;
013    import java.util.HashMap;
014    import java.util.List;
015    import java.util.Map;
016    import javax.xml.bind.JAXBElement;
017    import javax.xml.bind.annotation.XmlAccessType;
018    import javax.xml.bind.annotation.XmlAccessorType;
019    import javax.xml.bind.annotation.XmlAnyAttribute;
020    import javax.xml.bind.annotation.XmlAnyElement;
021    import javax.xml.bind.annotation.XmlAttribute;
022    import javax.xml.bind.annotation.XmlElementRef;
023    import javax.xml.bind.annotation.XmlElementRefs;
024    import javax.xml.bind.annotation.XmlID;
025    import javax.xml.bind.annotation.XmlRootElement;
026    import javax.xml.bind.annotation.XmlSchemaType;
027    import javax.xml.bind.annotation.XmlType;
028    import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
029    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
030    import javax.xml.namespace.QName;
031    import org.jvnet.jaxb2_commons.lang.Equals;
032    import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
033    import org.jvnet.jaxb2_commons.lang.HashCode;
034    import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
035    import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
036    import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
037    import org.jvnet.jaxb2_commons.lang.ToString;
038    import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
039    import org.jvnet.jaxb2_commons.locator.ObjectLocator;
040    import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
041    
042    
043    /**
044     * <p>Java class for anonymous complex type.
045     * 
046     * <p>The following schema fragment specifies the expected content contained within this class.
047     * 
048     * <pre>
049     * &lt;complexType>
050     *   &lt;complexContent>
051     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
052     *       &lt;choice maxOccurs="unbounded" minOccurs="0">
053     *         &lt;choice>
054     *           &lt;element name="connectionFactory" minOccurs="0">
055     *             &lt;complexType>
056     *               &lt;complexContent>
057     *                 &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
058     *                   &lt;choice minOccurs="0">
059     *                     &lt;element ref="{http://activemq.apache.org/schema/core}connectionFactory"/>
060     *                     &lt;element ref="{http://activemq.apache.org/schema/core}xaConnectionFactory"/>
061     *                     &lt;any namespace='##other'/>
062     *                   &lt;/choice>
063     *                 &lt;/restriction>
064     *               &lt;/complexContent>
065     *             &lt;/complexType>
066     *           &lt;/element>
067     *           &lt;element name="transactionManager" minOccurs="0">
068     *             &lt;complexType>
069     *               &lt;complexContent>
070     *                 &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
071     *                   &lt;sequence minOccurs="0">
072     *                     &lt;any maxOccurs="unbounded" minOccurs="0"/>
073     *                   &lt;/sequence>
074     *                 &lt;/restriction>
075     *               &lt;/complexContent>
076     *             &lt;/complexType>
077     *           &lt;/element>
078     *           &lt;any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
079     *         &lt;/choice>
080     *       &lt;/choice>
081     *       &lt;attribute name="connectionFactory" type="{http://www.w3.org/2001/XMLSchema}string" />
082     *       &lt;attribute name="maxConnections" type="{http://www.w3.org/2001/XMLSchema}integer" />
083     *       &lt;attribute name="maximumActive" type="{http://www.w3.org/2001/XMLSchema}integer" />
084     *       &lt;attribute name="resourceName" type="{http://www.w3.org/2001/XMLSchema}string" />
085     *       &lt;attribute name="transactionManager" type="{http://www.w3.org/2001/XMLSchema}string" />
086     *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
087     *       &lt;anyAttribute processContents='lax' namespace='##other'/>
088     *     &lt;/restriction>
089     *   &lt;/complexContent>
090     * &lt;/complexType>
091     * </pre>
092     * 
093     * 
094     */
095    @XmlAccessorType(XmlAccessType.FIELD)
096    @XmlType(name = "", propOrder = {
097        "connectionFactoryOrTransactionManagerOrAny"
098    })
099    @XmlRootElement(name = "pooledConnectionFactory")
100    public class DtoPooledConnectionFactory
101        implements Equals, HashCode, ToString
102    {
103    
104        @XmlElementRefs({
105            @XmlElementRef(name = "transactionManager", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class),
106            @XmlElementRef(name = "connectionFactory", namespace = "http://activemq.apache.org/schema/core", type = JAXBElement.class)
107        })
108        @XmlAnyElement(lax = true)
109        protected List<Object> connectionFactoryOrTransactionManagerOrAny;
110        @XmlAttribute(name = "connectionFactory")
111        protected String connectionFactory;
112        @XmlAttribute(name = "maxConnections")
113        protected BigInteger maxConnections;
114        @XmlAttribute(name = "maximumActive")
115        protected BigInteger maximumActive;
116        @XmlAttribute(name = "resourceName")
117        protected String resourceName;
118        @XmlAttribute(name = "transactionManager")
119        protected String transactionManager;
120        @XmlAttribute(name = "id")
121        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
122        @XmlID
123        @XmlSchemaType(name = "ID")
124        protected String id;
125        @XmlAnyAttribute
126        private Map<QName, String> otherAttributes = new HashMap<QName, String>();
127    
128        /**
129         * Gets the value of the connectionFactoryOrTransactionManagerOrAny property.
130         * 
131         * <p>
132         * This accessor method returns a reference to the live list,
133         * not a snapshot. Therefore any modification you make to the
134         * returned list will be present inside the JAXB object.
135         * This is why there is not a <CODE>set</CODE> method for the connectionFactoryOrTransactionManagerOrAny property.
136         * 
137         * <p>
138         * For example, to add a new item, do as follows:
139         * <pre>
140         *    getConnectionFactoryOrTransactionManagerOrAny().add(newItem);
141         * </pre>
142         * 
143         * 
144         * <p>
145         * Objects of the following type(s) are allowed in the list
146         * {@link JAXBElement }{@code <}{@link DtoPooledConnectionFactory.ConnectionFactory }{@code >}
147         * {@link Object }
148         * {@link JAXBElement }{@code <}{@link DtoPooledConnectionFactory.TransactionManager }{@code >}
149         * 
150         * 
151         */
152        public List<Object> getConnectionFactoryOrTransactionManagerOrAny() {
153            if (connectionFactoryOrTransactionManagerOrAny == null) {
154                connectionFactoryOrTransactionManagerOrAny = new ArrayList<Object>();
155            }
156            return this.connectionFactoryOrTransactionManagerOrAny;
157        }
158    
159        /**
160         * Gets the value of the connectionFactory property.
161         * 
162         * @return
163         *     possible object is
164         *     {@link String }
165         *     
166         */
167        public String getConnectionFactory() {
168            return connectionFactory;
169        }
170    
171        /**
172         * Sets the value of the connectionFactory property.
173         * 
174         * @param value
175         *     allowed object is
176         *     {@link String }
177         *     
178         */
179        public void setConnectionFactory(String value) {
180            this.connectionFactory = value;
181        }
182    
183        /**
184         * Gets the value of the maxConnections property.
185         * 
186         * @return
187         *     possible object is
188         *     {@link BigInteger }
189         *     
190         */
191        public BigInteger getMaxConnections() {
192            return maxConnections;
193        }
194    
195        /**
196         * Sets the value of the maxConnections property.
197         * 
198         * @param value
199         *     allowed object is
200         *     {@link BigInteger }
201         *     
202         */
203        public void setMaxConnections(BigInteger value) {
204            this.maxConnections = value;
205        }
206    
207        /**
208         * Gets the value of the maximumActive property.
209         * 
210         * @return
211         *     possible object is
212         *     {@link BigInteger }
213         *     
214         */
215        public BigInteger getMaximumActive() {
216            return maximumActive;
217        }
218    
219        /**
220         * Sets the value of the maximumActive property.
221         * 
222         * @param value
223         *     allowed object is
224         *     {@link BigInteger }
225         *     
226         */
227        public void setMaximumActive(BigInteger value) {
228            this.maximumActive = value;
229        }
230    
231        /**
232         * Gets the value of the resourceName property.
233         * 
234         * @return
235         *     possible object is
236         *     {@link String }
237         *     
238         */
239        public String getResourceName() {
240            return resourceName;
241        }
242    
243        /**
244         * Sets the value of the resourceName property.
245         * 
246         * @param value
247         *     allowed object is
248         *     {@link String }
249         *     
250         */
251        public void setResourceName(String value) {
252            this.resourceName = value;
253        }
254    
255        /**
256         * Gets the value of the transactionManager property.
257         * 
258         * @return
259         *     possible object is
260         *     {@link String }
261         *     
262         */
263        public String getTransactionManager() {
264            return transactionManager;
265        }
266    
267        /**
268         * Sets the value of the transactionManager property.
269         * 
270         * @param value
271         *     allowed object is
272         *     {@link String }
273         *     
274         */
275        public void setTransactionManager(String value) {
276            this.transactionManager = value;
277        }
278    
279        /**
280         * Gets the value of the id property.
281         * 
282         * @return
283         *     possible object is
284         *     {@link String }
285         *     
286         */
287        public String getId() {
288            return id;
289        }
290    
291        /**
292         * Sets the value of the id property.
293         * 
294         * @param value
295         *     allowed object is
296         *     {@link String }
297         *     
298         */
299        public void setId(String value) {
300            this.id = value;
301        }
302    
303        /**
304         * Gets a map that contains attributes that aren't bound to any typed property on this class.
305         * 
306         * <p>
307         * the map is keyed by the name of the attribute and 
308         * the value is the string value of the attribute.
309         * 
310         * the map returned by this method is live, and you can add new attribute
311         * by updating the map directly. Because of this design, there's no setter.
312         * 
313         * 
314         * @return
315         *     always non-null
316         */
317        public Map<QName, String> getOtherAttributes() {
318            return otherAttributes;
319        }
320    
321        public String toString() {
322            final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
323            final StringBuilder buffer = new StringBuilder();
324            append(null, buffer, strategy);
325            return buffer.toString();
326        }
327    
328        public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
329            strategy.appendStart(locator, this, buffer);
330            appendFields(locator, buffer, strategy);
331            strategy.appendEnd(locator, this, buffer);
332            return buffer;
333        }
334    
335        public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
336            {
337                List<Object> theConnectionFactoryOrTransactionManagerOrAny;
338                theConnectionFactoryOrTransactionManagerOrAny = (((this.connectionFactoryOrTransactionManagerOrAny!= null)&&(!this.connectionFactoryOrTransactionManagerOrAny.isEmpty()))?this.getConnectionFactoryOrTransactionManagerOrAny():null);
339                strategy.appendField(locator, this, "connectionFactoryOrTransactionManagerOrAny", buffer, theConnectionFactoryOrTransactionManagerOrAny);
340            }
341            {
342                String theConnectionFactory;
343                theConnectionFactory = this.getConnectionFactory();
344                strategy.appendField(locator, this, "connectionFactory", buffer, theConnectionFactory);
345            }
346            {
347                BigInteger theMaxConnections;
348                theMaxConnections = this.getMaxConnections();
349                strategy.appendField(locator, this, "maxConnections", buffer, theMaxConnections);
350            }
351            {
352                BigInteger theMaximumActive;
353                theMaximumActive = this.getMaximumActive();
354                strategy.appendField(locator, this, "maximumActive", buffer, theMaximumActive);
355            }
356            {
357                String theResourceName;
358                theResourceName = this.getResourceName();
359                strategy.appendField(locator, this, "resourceName", buffer, theResourceName);
360            }
361            {
362                String theTransactionManager;
363                theTransactionManager = this.getTransactionManager();
364                strategy.appendField(locator, this, "transactionManager", buffer, theTransactionManager);
365            }
366            {
367                String theId;
368                theId = this.getId();
369                strategy.appendField(locator, this, "id", buffer, theId);
370            }
371            return buffer;
372        }
373    
374        public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
375            int currentHashCode = 1;
376            {
377                List<Object> theConnectionFactoryOrTransactionManagerOrAny;
378                theConnectionFactoryOrTransactionManagerOrAny = (((this.connectionFactoryOrTransactionManagerOrAny!= null)&&(!this.connectionFactoryOrTransactionManagerOrAny.isEmpty()))?this.getConnectionFactoryOrTransactionManagerOrAny():null);
379                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "connectionFactoryOrTransactionManagerOrAny", theConnectionFactoryOrTransactionManagerOrAny), currentHashCode, theConnectionFactoryOrTransactionManagerOrAny);
380            }
381            {
382                String theConnectionFactory;
383                theConnectionFactory = this.getConnectionFactory();
384                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "connectionFactory", theConnectionFactory), currentHashCode, theConnectionFactory);
385            }
386            {
387                BigInteger theMaxConnections;
388                theMaxConnections = this.getMaxConnections();
389                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maxConnections", theMaxConnections), currentHashCode, theMaxConnections);
390            }
391            {
392                BigInteger theMaximumActive;
393                theMaximumActive = this.getMaximumActive();
394                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maximumActive", theMaximumActive), currentHashCode, theMaximumActive);
395            }
396            {
397                String theResourceName;
398                theResourceName = this.getResourceName();
399                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resourceName", theResourceName), currentHashCode, theResourceName);
400            }
401            {
402                String theTransactionManager;
403                theTransactionManager = this.getTransactionManager();
404                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "transactionManager", theTransactionManager), currentHashCode, theTransactionManager);
405            }
406            {
407                String theId;
408                theId = this.getId();
409                currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
410            }
411            return currentHashCode;
412        }
413    
414        public int hashCode() {
415            final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
416            return this.hashCode(null, strategy);
417        }
418    
419        public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
420            if (!(object instanceof DtoPooledConnectionFactory)) {
421                return false;
422            }
423            if (this == object) {
424                return true;
425            }
426            final DtoPooledConnectionFactory that = ((DtoPooledConnectionFactory) object);
427            {
428                List<Object> lhsConnectionFactoryOrTransactionManagerOrAny;
429                lhsConnectionFactoryOrTransactionManagerOrAny = (((this.connectionFactoryOrTransactionManagerOrAny!= null)&&(!this.connectionFactoryOrTransactionManagerOrAny.isEmpty()))?this.getConnectionFactoryOrTransactionManagerOrAny():null);
430                List<Object> rhsConnectionFactoryOrTransactionManagerOrAny;
431                rhsConnectionFactoryOrTransactionManagerOrAny = (((that.connectionFactoryOrTransactionManagerOrAny!= null)&&(!that.connectionFactoryOrTransactionManagerOrAny.isEmpty()))?that.getConnectionFactoryOrTransactionManagerOrAny():null);
432                if (!strategy.equals(LocatorUtils.property(thisLocator, "connectionFactoryOrTransactionManagerOrAny", lhsConnectionFactoryOrTransactionManagerOrAny), LocatorUtils.property(thatLocator, "connectionFactoryOrTransactionManagerOrAny", rhsConnectionFactoryOrTransactionManagerOrAny), lhsConnectionFactoryOrTransactionManagerOrAny, rhsConnectionFactoryOrTransactionManagerOrAny)) {
433                    return false;
434                }
435            }
436            {
437                String lhsConnectionFactory;
438                lhsConnectionFactory = this.getConnectionFactory();
439                String rhsConnectionFactory;
440                rhsConnectionFactory = that.getConnectionFactory();
441                if (!strategy.equals(LocatorUtils.property(thisLocator, "connectionFactory", lhsConnectionFactory), LocatorUtils.property(thatLocator, "connectionFactory", rhsConnectionFactory), lhsConnectionFactory, rhsConnectionFactory)) {
442                    return false;
443                }
444            }
445            {
446                BigInteger lhsMaxConnections;
447                lhsMaxConnections = this.getMaxConnections();
448                BigInteger rhsMaxConnections;
449                rhsMaxConnections = that.getMaxConnections();
450                if (!strategy.equals(LocatorUtils.property(thisLocator, "maxConnections", lhsMaxConnections), LocatorUtils.property(thatLocator, "maxConnections", rhsMaxConnections), lhsMaxConnections, rhsMaxConnections)) {
451                    return false;
452                }
453            }
454            {
455                BigInteger lhsMaximumActive;
456                lhsMaximumActive = this.getMaximumActive();
457                BigInteger rhsMaximumActive;
458                rhsMaximumActive = that.getMaximumActive();
459                if (!strategy.equals(LocatorUtils.property(thisLocator, "maximumActive", lhsMaximumActive), LocatorUtils.property(thatLocator, "maximumActive", rhsMaximumActive), lhsMaximumActive, rhsMaximumActive)) {
460                    return false;
461                }
462            }
463            {
464                String lhsResourceName;
465                lhsResourceName = this.getResourceName();
466                String rhsResourceName;
467                rhsResourceName = that.getResourceName();
468                if (!strategy.equals(LocatorUtils.property(thisLocator, "resourceName", lhsResourceName), LocatorUtils.property(thatLocator, "resourceName", rhsResourceName), lhsResourceName, rhsResourceName)) {
469                    return false;
470                }
471            }
472            {
473                String lhsTransactionManager;
474                lhsTransactionManager = this.getTransactionManager();
475                String rhsTransactionManager;
476                rhsTransactionManager = that.getTransactionManager();
477                if (!strategy.equals(LocatorUtils.property(thisLocator, "transactionManager", lhsTransactionManager), LocatorUtils.property(thatLocator, "transactionManager", rhsTransactionManager), lhsTransactionManager, rhsTransactionManager)) {
478                    return false;
479                }
480            }
481            {
482                String lhsId;
483                lhsId = this.getId();
484                String rhsId;
485                rhsId = that.getId();
486                if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) {
487                    return false;
488                }
489            }
490            return true;
491        }
492    
493        public boolean equals(Object object) {
494            final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
495            return equals(null, null, object, strategy);
496        }
497    
498    
499        /**
500         * <p>Java class for anonymous complex type.
501         * 
502         * <p>The following schema fragment specifies the expected content contained within this class.
503         * 
504         * <pre>
505         * &lt;complexType>
506         *   &lt;complexContent>
507         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
508         *       &lt;choice minOccurs="0">
509         *         &lt;element ref="{http://activemq.apache.org/schema/core}connectionFactory"/>
510         *         &lt;element ref="{http://activemq.apache.org/schema/core}xaConnectionFactory"/>
511         *         &lt;any namespace='##other'/>
512         *       &lt;/choice>
513         *     &lt;/restriction>
514         *   &lt;/complexContent>
515         * &lt;/complexType>
516         * </pre>
517         * 
518         * 
519         */
520        @XmlAccessorType(XmlAccessType.FIELD)
521        @XmlType(name = "", propOrder = {
522            "connectionFactory",
523            "xaConnectionFactory",
524            "any"
525        })
526        public static class ConnectionFactory
527            implements Equals, HashCode, ToString
528        {
529    
530            protected DtoConnectionFactory connectionFactory;
531            protected DtoXaConnectionFactory xaConnectionFactory;
532            @XmlAnyElement(lax = true)
533            protected Object any;
534    
535            /**
536             * Gets the value of the connectionFactory property.
537             * 
538             * @return
539             *     possible object is
540             *     {@link DtoConnectionFactory }
541             *     
542             */
543            public DtoConnectionFactory getConnectionFactory() {
544                return connectionFactory;
545            }
546    
547            /**
548             * Sets the value of the connectionFactory property.
549             * 
550             * @param value
551             *     allowed object is
552             *     {@link DtoConnectionFactory }
553             *     
554             */
555            public void setConnectionFactory(DtoConnectionFactory value) {
556                this.connectionFactory = value;
557            }
558    
559            /**
560             * Gets the value of the xaConnectionFactory property.
561             * 
562             * @return
563             *     possible object is
564             *     {@link DtoXaConnectionFactory }
565             *     
566             */
567            public DtoXaConnectionFactory getXaConnectionFactory() {
568                return xaConnectionFactory;
569            }
570    
571            /**
572             * Sets the value of the xaConnectionFactory property.
573             * 
574             * @param value
575             *     allowed object is
576             *     {@link DtoXaConnectionFactory }
577             *     
578             */
579            public void setXaConnectionFactory(DtoXaConnectionFactory value) {
580                this.xaConnectionFactory = value;
581            }
582    
583            /**
584             * Gets the value of the any property.
585             * 
586             * @return
587             *     possible object is
588             *     {@link Object }
589             *     
590             */
591            public Object getAny() {
592                return any;
593            }
594    
595            /**
596             * Sets the value of the any property.
597             * 
598             * @param value
599             *     allowed object is
600             *     {@link Object }
601             *     
602             */
603            public void setAny(Object value) {
604                this.any = value;
605            }
606    
607            public String toString() {
608                final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
609                final StringBuilder buffer = new StringBuilder();
610                append(null, buffer, strategy);
611                return buffer.toString();
612            }
613    
614            public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
615                strategy.appendStart(locator, this, buffer);
616                appendFields(locator, buffer, strategy);
617                strategy.appendEnd(locator, this, buffer);
618                return buffer;
619            }
620    
621            public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
622                {
623                    DtoConnectionFactory theConnectionFactory;
624                    theConnectionFactory = this.getConnectionFactory();
625                    strategy.appendField(locator, this, "connectionFactory", buffer, theConnectionFactory);
626                }
627                {
628                    DtoXaConnectionFactory theXaConnectionFactory;
629                    theXaConnectionFactory = this.getXaConnectionFactory();
630                    strategy.appendField(locator, this, "xaConnectionFactory", buffer, theXaConnectionFactory);
631                }
632                {
633                    Object theAny;
634                    theAny = this.getAny();
635                    strategy.appendField(locator, this, "any", buffer, theAny);
636                }
637                return buffer;
638            }
639    
640            public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
641                int currentHashCode = 1;
642                {
643                    DtoConnectionFactory theConnectionFactory;
644                    theConnectionFactory = this.getConnectionFactory();
645                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "connectionFactory", theConnectionFactory), currentHashCode, theConnectionFactory);
646                }
647                {
648                    DtoXaConnectionFactory theXaConnectionFactory;
649                    theXaConnectionFactory = this.getXaConnectionFactory();
650                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "xaConnectionFactory", theXaConnectionFactory), currentHashCode, theXaConnectionFactory);
651                }
652                {
653                    Object theAny;
654                    theAny = this.getAny();
655                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny);
656                }
657                return currentHashCode;
658            }
659    
660            public int hashCode() {
661                final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
662                return this.hashCode(null, strategy);
663            }
664    
665            public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
666                if (!(object instanceof DtoPooledConnectionFactory.ConnectionFactory)) {
667                    return false;
668                }
669                if (this == object) {
670                    return true;
671                }
672                final DtoPooledConnectionFactory.ConnectionFactory that = ((DtoPooledConnectionFactory.ConnectionFactory) object);
673                {
674                    DtoConnectionFactory lhsConnectionFactory;
675                    lhsConnectionFactory = this.getConnectionFactory();
676                    DtoConnectionFactory rhsConnectionFactory;
677                    rhsConnectionFactory = that.getConnectionFactory();
678                    if (!strategy.equals(LocatorUtils.property(thisLocator, "connectionFactory", lhsConnectionFactory), LocatorUtils.property(thatLocator, "connectionFactory", rhsConnectionFactory), lhsConnectionFactory, rhsConnectionFactory)) {
679                        return false;
680                    }
681                }
682                {
683                    DtoXaConnectionFactory lhsXaConnectionFactory;
684                    lhsXaConnectionFactory = this.getXaConnectionFactory();
685                    DtoXaConnectionFactory rhsXaConnectionFactory;
686                    rhsXaConnectionFactory = that.getXaConnectionFactory();
687                    if (!strategy.equals(LocatorUtils.property(thisLocator, "xaConnectionFactory", lhsXaConnectionFactory), LocatorUtils.property(thatLocator, "xaConnectionFactory", rhsXaConnectionFactory), lhsXaConnectionFactory, rhsXaConnectionFactory)) {
688                        return false;
689                    }
690                }
691                {
692                    Object lhsAny;
693                    lhsAny = this.getAny();
694                    Object rhsAny;
695                    rhsAny = that.getAny();
696                    if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) {
697                        return false;
698                    }
699                }
700                return true;
701            }
702    
703            public boolean equals(Object object) {
704                final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
705                return equals(null, null, object, strategy);
706            }
707    
708        }
709    
710    
711        /**
712         * <p>Java class for anonymous complex type.
713         * 
714         * <p>The following schema fragment specifies the expected content contained within this class.
715         * 
716         * <pre>
717         * &lt;complexType>
718         *   &lt;complexContent>
719         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
720         *       &lt;sequence minOccurs="0">
721         *         &lt;any maxOccurs="unbounded" minOccurs="0"/>
722         *       &lt;/sequence>
723         *     &lt;/restriction>
724         *   &lt;/complexContent>
725         * &lt;/complexType>
726         * </pre>
727         * 
728         * 
729         */
730        @XmlAccessorType(XmlAccessType.FIELD)
731        @XmlType(name = "", propOrder = {
732            "any"
733        })
734        public static class TransactionManager
735            implements Equals, HashCode, ToString
736        {
737    
738            @XmlAnyElement(lax = true)
739            protected List<Object> any;
740    
741            /**
742             * Gets the value of the any property.
743             * 
744             * <p>
745             * This accessor method returns a reference to the live list,
746             * not a snapshot. Therefore any modification you make to the
747             * returned list will be present inside the JAXB object.
748             * This is why there is not a <CODE>set</CODE> method for the any property.
749             * 
750             * <p>
751             * For example, to add a new item, do as follows:
752             * <pre>
753             *    getAny().add(newItem);
754             * </pre>
755             * 
756             * 
757             * <p>
758             * Objects of the following type(s) are allowed in the list
759             * {@link Object }
760             * 
761             * 
762             */
763            public List<Object> getAny() {
764                if (any == null) {
765                    any = new ArrayList<Object>();
766                }
767                return this.any;
768            }
769    
770            public String toString() {
771                final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
772                final StringBuilder buffer = new StringBuilder();
773                append(null, buffer, strategy);
774                return buffer.toString();
775            }
776    
777            public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
778                strategy.appendStart(locator, this, buffer);
779                appendFields(locator, buffer, strategy);
780                strategy.appendEnd(locator, this, buffer);
781                return buffer;
782            }
783    
784            public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
785                {
786                    List<Object> theAny;
787                    theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null);
788                    strategy.appendField(locator, this, "any", buffer, theAny);
789                }
790                return buffer;
791            }
792    
793            public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
794                int currentHashCode = 1;
795                {
796                    List<Object> theAny;
797                    theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null);
798                    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny);
799                }
800                return currentHashCode;
801            }
802    
803            public int hashCode() {
804                final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
805                return this.hashCode(null, strategy);
806            }
807    
808            public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
809                if (!(object instanceof DtoPooledConnectionFactory.TransactionManager)) {
810                    return false;
811                }
812                if (this == object) {
813                    return true;
814                }
815                final DtoPooledConnectionFactory.TransactionManager that = ((DtoPooledConnectionFactory.TransactionManager) object);
816                {
817                    List<Object> lhsAny;
818                    lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null);
819                    List<Object> rhsAny;
820                    rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null);
821                    if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) {
822                        return false;
823                    }
824                }
825                return true;
826            }
827    
828            public boolean equals(Object object) {
829                final EqualsStrategy strategy = new org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy();
830                return equals(null, null, object, strategy);
831            }
832    
833        }
834    
835    }