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