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: 2021.01.20 at 07:26:32 AM EST 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 * <complexType> 044 * <complexContent> 045 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 046 * <attribute name="immediatePriorityDispatch" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 047 * <attribute name="useCache" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 048 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 049 * <anyAttribute processContents='lax' namespace='##other'/> 050 * </restriction> 051 * </complexContent> 052 * </complexType> 053 * </pre> 054 * 055 * 056 */ 057@XmlAccessorType(XmlAccessType.FIELD) 058@XmlType(name = "") 059@XmlRootElement(name = "storeDurableSubscriberCursor") 060public class DtoStoreDurableSubscriberCursor 061 implements Equals, HashCode, ToString 062{ 063 064 @XmlAttribute(name = "immediatePriorityDispatch") 065 protected Boolean immediatePriorityDispatch; 066 @XmlAttribute(name = "useCache") 067 protected Boolean useCache; 068 @XmlAttribute(name = "id") 069 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 070 @XmlID 071 @XmlSchemaType(name = "ID") 072 protected String id; 073 @XmlAnyAttribute 074 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 075 076 /** 077 * Gets the value of the immediatePriorityDispatch property. 078 * 079 * @return 080 * possible object is 081 * {@link Boolean } 082 * 083 */ 084 public Boolean isImmediatePriorityDispatch() { 085 return immediatePriorityDispatch; 086 } 087 088 /** 089 * Sets the value of the immediatePriorityDispatch property. 090 * 091 * @param value 092 * allowed object is 093 * {@link Boolean } 094 * 095 */ 096 public void setImmediatePriorityDispatch(Boolean value) { 097 this.immediatePriorityDispatch = value; 098 } 099 100 /** 101 * Gets the value of the useCache property. 102 * 103 * @return 104 * possible object is 105 * {@link Boolean } 106 * 107 */ 108 public Boolean isUseCache() { 109 return useCache; 110 } 111 112 /** 113 * Sets the value of the useCache property. 114 * 115 * @param value 116 * allowed object is 117 * {@link Boolean } 118 * 119 */ 120 public void setUseCache(Boolean value) { 121 this.useCache = value; 122 } 123 124 /** 125 * Gets the value of the id property. 126 * 127 * @return 128 * possible object is 129 * {@link String } 130 * 131 */ 132 public String getId() { 133 return id; 134 } 135 136 /** 137 * Sets the value of the id property. 138 * 139 * @param value 140 * allowed object is 141 * {@link String } 142 * 143 */ 144 public void setId(String value) { 145 this.id = value; 146 } 147 148 /** 149 * Gets a map that contains attributes that aren't bound to any typed property on this class. 150 * 151 * <p> 152 * the map is keyed by the name of the attribute and 153 * the value is the string value of the attribute. 154 * 155 * the map returned by this method is live, and you can add new attribute 156 * by updating the map directly. Because of this design, there's no setter. 157 * 158 * 159 * @return 160 * always non-null 161 */ 162 public Map<QName, String> getOtherAttributes() { 163 return otherAttributes; 164 } 165 166 public String toString() { 167 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; 168 final StringBuilder buffer = new StringBuilder(); 169 append(null, buffer, strategy); 170 return buffer.toString(); 171 } 172 173 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 174 strategy.appendStart(locator, this, buffer); 175 appendFields(locator, buffer, strategy); 176 strategy.appendEnd(locator, this, buffer); 177 return buffer; 178 } 179 180 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { 181 { 182 Boolean theImmediatePriorityDispatch; 183 theImmediatePriorityDispatch = this.isImmediatePriorityDispatch(); 184 strategy.appendField(locator, this, "immediatePriorityDispatch", buffer, theImmediatePriorityDispatch); 185 } 186 { 187 Boolean theUseCache; 188 theUseCache = this.isUseCache(); 189 strategy.appendField(locator, this, "useCache", buffer, theUseCache); 190 } 191 { 192 String theId; 193 theId = this.getId(); 194 strategy.appendField(locator, this, "id", buffer, theId); 195 } 196 return buffer; 197 } 198 199 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { 200 int currentHashCode = 1; 201 { 202 Boolean theImmediatePriorityDispatch; 203 theImmediatePriorityDispatch = this.isImmediatePriorityDispatch(); 204 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "immediatePriorityDispatch", theImmediatePriorityDispatch), currentHashCode, theImmediatePriorityDispatch); 205 } 206 { 207 Boolean theUseCache; 208 theUseCache = this.isUseCache(); 209 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "useCache", theUseCache), currentHashCode, theUseCache); 210 } 211 { 212 String theId; 213 theId = this.getId(); 214 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); 215 } 216 return currentHashCode; 217 } 218 219 public int hashCode() { 220 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 221 return this.hashCode(null, strategy); 222 } 223 224 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { 225 if (!(object instanceof DtoStoreDurableSubscriberCursor)) { 226 return false; 227 } 228 if (this == object) { 229 return true; 230 } 231 final DtoStoreDurableSubscriberCursor that = ((DtoStoreDurableSubscriberCursor) object); 232 { 233 Boolean lhsImmediatePriorityDispatch; 234 lhsImmediatePriorityDispatch = this.isImmediatePriorityDispatch(); 235 Boolean rhsImmediatePriorityDispatch; 236 rhsImmediatePriorityDispatch = that.isImmediatePriorityDispatch(); 237 if (!strategy.equals(LocatorUtils.property(thisLocator, "immediatePriorityDispatch", lhsImmediatePriorityDispatch), LocatorUtils.property(thatLocator, "immediatePriorityDispatch", rhsImmediatePriorityDispatch), lhsImmediatePriorityDispatch, rhsImmediatePriorityDispatch)) { 238 return false; 239 } 240 } 241 { 242 Boolean lhsUseCache; 243 lhsUseCache = this.isUseCache(); 244 Boolean rhsUseCache; 245 rhsUseCache = that.isUseCache(); 246 if (!strategy.equals(LocatorUtils.property(thisLocator, "useCache", lhsUseCache), LocatorUtils.property(thatLocator, "useCache", rhsUseCache), lhsUseCache, rhsUseCache)) { 247 return false; 248 } 249 } 250 { 251 String lhsId; 252 lhsId = this.getId(); 253 String rhsId; 254 rhsId = that.getId(); 255 if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { 256 return false; 257 } 258 } 259 return true; 260 } 261 262 public boolean equals(Object object) { 263 final EqualsStrategy strategy = new ElementAwareEqualsStrategy(); 264 return equals(null, null, object, strategy); 265 } 266 267}