|
| 1 | +// |
| 2 | +// This file was generated by the Eclipse Implementation of JAXB, v2.3.7 |
| 3 | +// See https://eclipse-ee4j.github.io/jaxb-ri |
| 4 | +// Any modifications to this file will be lost upon recompilation of the source schema. |
| 5 | +// Generated on: 2025.09.23 at 11:13:56 AM IST |
| 6 | +// |
| 7 | + |
| 8 | + |
| 9 | +package com.intuit.ipp.data; |
| 10 | + |
| 11 | +import java.io.Serializable; |
| 12 | +import jakarta.xml.bind.annotation.XmlAccessType; |
| 13 | +import jakarta.xml.bind.annotation.XmlAccessorType; |
| 14 | +import jakarta.xml.bind.annotation.XmlElement; |
| 15 | +import jakarta.xml.bind.annotation.XmlType; |
| 16 | +import org.jvnet.jaxb2_commons.lang.Equals2; |
| 17 | +import org.jvnet.jaxb2_commons.lang.EqualsStrategy2; |
| 18 | +import org.jvnet.jaxb2_commons.lang.HashCode2; |
| 19 | +import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2; |
| 20 | +import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy; |
| 21 | +import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy; |
| 22 | +import org.jvnet.jaxb2_commons.locator.ObjectLocator; |
| 23 | +import org.jvnet.jaxb2_commons.locator.util.LocatorUtils; |
| 24 | + |
| 25 | + |
| 26 | +/** |
| 27 | + * |
| 28 | + * Product: IES |
| 29 | + * Description: Custom Extensions Values associated with entities like transactions |
| 30 | + * |
| 31 | + * |
| 32 | + * <p>Java class for CustomExtensionAssociatedValues complex type. |
| 33 | + * |
| 34 | + * <p>The following schema fragment specifies the expected content contained within this class. |
| 35 | + * |
| 36 | + * <pre> |
| 37 | + * <complexType name="CustomExtensionAssociatedValues"> |
| 38 | + * <complexContent> |
| 39 | + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| 40 | + * <sequence> |
| 41 | + * <element name="Key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| 42 | + * <element name="Value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| 43 | + * </sequence> |
| 44 | + * </restriction> |
| 45 | + * </complexContent> |
| 46 | + * </complexType> |
| 47 | + * </pre> |
| 48 | + * |
| 49 | + * |
| 50 | + */ |
| 51 | +@XmlAccessorType(XmlAccessType.FIELD) |
| 52 | +@XmlType(name = "CustomExtensionAssociatedValues", propOrder = { |
| 53 | + "key", |
| 54 | + "value" |
| 55 | +}) |
| 56 | +public class CustomExtensionAssociatedValues implements Serializable, Equals2, HashCode2 |
| 57 | +{ |
| 58 | + |
| 59 | + private final static long serialVersionUID = 1L; |
| 60 | + @XmlElement(name = "Key") |
| 61 | + protected String key; |
| 62 | + @XmlElement(name = "Value") |
| 63 | + protected String value; |
| 64 | + |
| 65 | + /** |
| 66 | + * Gets the value of the key property. |
| 67 | + * |
| 68 | + * @return |
| 69 | + * possible object is |
| 70 | + * {@link String } |
| 71 | + * |
| 72 | + */ |
| 73 | + public String getKey() { |
| 74 | + return key; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * Sets the value of the key property. |
| 79 | + * |
| 80 | + * @param value |
| 81 | + * allowed object is |
| 82 | + * {@link String } |
| 83 | + * |
| 84 | + */ |
| 85 | + public void setKey(String value) { |
| 86 | + this.key = value; |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * Gets the value of the value property. |
| 91 | + * |
| 92 | + * @return |
| 93 | + * possible object is |
| 94 | + * {@link String } |
| 95 | + * |
| 96 | + */ |
| 97 | + public String getValue() { |
| 98 | + return value; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * Sets the value of the value property. |
| 103 | + * |
| 104 | + * @param value |
| 105 | + * allowed object is |
| 106 | + * {@link String } |
| 107 | + * |
| 108 | + */ |
| 109 | + public void setValue(String value) { |
| 110 | + this.value = value; |
| 111 | + } |
| 112 | + |
| 113 | + public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { |
| 114 | + if ((object == null)||(this.getClass()!= object.getClass())) { |
| 115 | + return false; |
| 116 | + } |
| 117 | + if (this == object) { |
| 118 | + return true; |
| 119 | + } |
| 120 | + final CustomExtensionAssociatedValues that = ((CustomExtensionAssociatedValues) object); |
| 121 | + { |
| 122 | + String lhsKey; |
| 123 | + lhsKey = this.getKey(); |
| 124 | + String rhsKey; |
| 125 | + rhsKey = that.getKey(); |
| 126 | + if (!strategy.equals(LocatorUtils.property(thisLocator, "key", lhsKey), LocatorUtils.property(thatLocator, "key", rhsKey), lhsKey, rhsKey, (this.key!= null), (that.key!= null))) { |
| 127 | + return false; |
| 128 | + } |
| 129 | + } |
| 130 | + { |
| 131 | + String lhsValue; |
| 132 | + lhsValue = this.getValue(); |
| 133 | + String rhsValue; |
| 134 | + rhsValue = that.getValue(); |
| 135 | + if (!strategy.equals(LocatorUtils.property(thisLocator, "value", lhsValue), LocatorUtils.property(thatLocator, "value", rhsValue), lhsValue, rhsValue, (this.value!= null), (that.value!= null))) { |
| 136 | + return false; |
| 137 | + } |
| 138 | + } |
| 139 | + return true; |
| 140 | + } |
| 141 | + |
| 142 | + public boolean equals(Object object) { |
| 143 | + final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; |
| 144 | + return equals(null, null, object, strategy); |
| 145 | + } |
| 146 | + |
| 147 | + public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { |
| 148 | + int currentHashCode = 1; |
| 149 | + { |
| 150 | + String theKey; |
| 151 | + theKey = this.getKey(); |
| 152 | + currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "key", theKey), currentHashCode, theKey, (this.key!= null)); |
| 153 | + } |
| 154 | + { |
| 155 | + String theValue; |
| 156 | + theValue = this.getValue(); |
| 157 | + currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue, (this.value!= null)); |
| 158 | + } |
| 159 | + return currentHashCode; |
| 160 | + } |
| 161 | + |
| 162 | + public int hashCode() { |
| 163 | + final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; |
| 164 | + return this.hashCode(null, strategy); |
| 165 | + } |
| 166 | + |
| 167 | +} |
0 commit comments