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: 2016.09.15 at 06:37:38 AM EDT 006// 007 008 009package org.apache.activemq.schema.core; 010 011import java.math.BigInteger; 012import java.util.HashMap; 013import java.util.Map; 014import javax.xml.bind.annotation.XmlAccessType; 015import javax.xml.bind.annotation.XmlAccessorType; 016import javax.xml.bind.annotation.XmlAnyAttribute; 017import javax.xml.bind.annotation.XmlAttribute; 018import javax.xml.bind.annotation.XmlID; 019import javax.xml.bind.annotation.XmlRootElement; 020import javax.xml.bind.annotation.XmlSchemaType; 021import javax.xml.bind.annotation.XmlType; 022import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 023import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 024import javax.xml.namespace.QName; 025import org.apache.activemq.plugin.jaxb2_commons.ElementAwareEqualsStrategy; 026import org.jvnet.jaxb2_commons.lang.Equals; 027import org.jvnet.jaxb2_commons.lang.EqualsStrategy; 028import org.jvnet.jaxb2_commons.lang.HashCode; 029import org.jvnet.jaxb2_commons.lang.HashCodeStrategy; 030import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy; 031import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy; 032import org.jvnet.jaxb2_commons.lang.ToString; 033import org.jvnet.jaxb2_commons.lang.ToStringStrategy; 034import org.jvnet.jaxb2_commons.locator.ObjectLocator; 035import org.jvnet.jaxb2_commons.locator.util.LocatorUtils; 036 037 038/** 039 * <p>Java class for anonymous complex type. 040 * 041 * <p>The following schema fragment specifies the expected content contained within this class. 042 * 043 * <pre> 044 * <complexType> 045 * <complexContent> 046 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 047 * <attribute name="checkPeriod" type="{http://www.w3.org/2001/XMLSchema}integer" /> 048 * <attribute name="routesFile" type="{http://www.w3.org/2001/XMLSchema}string" /> 049 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 050 * <anyAttribute processContents='lax' namespace='##other'/> 051 * </restriction> 052 * </complexContent> 053 * </complexType> 054 * </pre> 055 * 056 * 057 */ 058@XmlAccessorType(XmlAccessType.FIELD) 059@XmlType(name = "") 060@XmlRootElement(name = "camelRoutesBrokerPlugin") 061public class DtoCamelRoutesBrokerPlugin implements Equals, HashCode, ToString 062{ 063 064 @XmlAttribute(name = "checkPeriod") 065 protected BigInteger checkPeriod; 066 @XmlAttribute(name = "routesFile") 067 protected String routesFile; 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 checkPeriod property. 078 * 079 * @return 080 * possible object is 081 * {@link BigInteger } 082 * 083 */ 084 public BigInteger getCheckPeriod() { 085 return checkPeriod; 086 } 087 088 /** 089 * Sets the value of the checkPeriod property. 090 * 091 * @param value 092 * allowed object is 093 * {@link BigInteger } 094 * 095 */ 096 public void setCheckPeriod(BigInteger value) { 097 this.checkPeriod = value; 098 } 099 100 /** 101 * Gets the value of the routesFile property. 102 * 103 * @return 104 * possible object is 105 * {@link String } 106 * 107 */ 108 public String getRoutesFile() { 109 return routesFile; 110 } 111 112 /** 113 * Sets the value of the routesFile property. 114 * 115 * @param value 116 * allowed object is 117 * {@link String } 118 * 119 */ 120 public void setRoutesFile(String value) { 121 this.routesFile = 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 BigInteger theCheckPeriod; 183 theCheckPeriod = this.getCheckPeriod(); 184 strategy.appendField(locator, this, "checkPeriod", buffer, theCheckPeriod); 185 } 186 { 187 String theRoutesFile; 188 theRoutesFile = this.getRoutesFile(); 189 strategy.appendField(locator, this, "routesFile", buffer, theRoutesFile); 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 BigInteger theCheckPeriod; 203 theCheckPeriod = this.getCheckPeriod(); 204 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "checkPeriod", theCheckPeriod), currentHashCode, theCheckPeriod); 205 } 206 { 207 String theRoutesFile; 208 theRoutesFile = this.getRoutesFile(); 209 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "routesFile", theRoutesFile), currentHashCode, theRoutesFile); 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 DtoCamelRoutesBrokerPlugin)) { 226 return false; 227 } 228 if (this == object) { 229 return true; 230 } 231 final DtoCamelRoutesBrokerPlugin that = ((DtoCamelRoutesBrokerPlugin) object); 232 { 233 BigInteger lhsCheckPeriod; 234 lhsCheckPeriod = this.getCheckPeriod(); 235 BigInteger rhsCheckPeriod; 236 rhsCheckPeriod = that.getCheckPeriod(); 237 if (!strategy.equals(LocatorUtils.property(thisLocator, "checkPeriod", lhsCheckPeriod), LocatorUtils.property(thatLocator, "checkPeriod", rhsCheckPeriod), lhsCheckPeriod, rhsCheckPeriod)) { 238 return false; 239 } 240 } 241 { 242 String lhsRoutesFile; 243 lhsRoutesFile = this.getRoutesFile(); 244 String rhsRoutesFile; 245 rhsRoutesFile = that.getRoutesFile(); 246 if (!strategy.equals(LocatorUtils.property(thisLocator, "routesFile", lhsRoutesFile), LocatorUtils.property(thatLocator, "routesFile", rhsRoutesFile), lhsRoutesFile, rhsRoutesFile)) { 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}