All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.atlasmap.xml.test.v2.XmlOrderAttribute Maven / Gradle / Ivy

There is a newer version: 2.5.2
Show newest version

package io.atlasmap.xml.test.v2;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for XmlOrderAttribute complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="XmlOrderAttribute">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Address" type="{http://atlasmap.io/xml/test/v2}XmlAddressAttribute" minOccurs="0"/>
 *         <element name="Contact" type="{http://atlasmap.io/xml/test/v2}XmlContactAttribute" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="orderId" type="{http://www.w3.org/2001/XMLSchema}int" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "XmlOrderAttribute", propOrder = { "address", "contact" }) public class XmlOrderAttribute implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(name = "Address") protected XmlAddressAttribute address; @XmlElement(name = "Contact") protected XmlContactAttribute contact; @XmlAttribute(name = "orderId") protected Integer orderId; /** * Gets the value of the address property. * * @return * possible object is * {@link XmlAddressAttribute } * */ public XmlAddressAttribute getAddress() { return address; } /** * Sets the value of the address property. * * @param value * allowed object is * {@link XmlAddressAttribute } * */ public void setAddress(XmlAddressAttribute value) { this.address = value; } /** * Gets the value of the contact property. * * @return * possible object is * {@link XmlContactAttribute } * */ public XmlContactAttribute getContact() { return contact; } /** * Sets the value of the contact property. * * @param value * allowed object is * {@link XmlContactAttribute } * */ public void setContact(XmlContactAttribute value) { this.contact = value; } /** * Gets the value of the orderId property. * * @return * possible object is * {@link Integer } * */ public Integer getOrderId() { return orderId; } /** * Sets the value of the orderId property. * * @param value * allowed object is * {@link Integer } * */ public void setOrderId(Integer value) { this.orderId = value; } public boolean equals(Object object) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final XmlOrderAttribute that = ((XmlOrderAttribute) object); { XmlAddressAttribute leftAddress; leftAddress = this.getAddress(); XmlAddressAttribute rightAddress; rightAddress = that.getAddress(); if (this.address!= null) { if (that.address!= null) { if (!leftAddress.equals(rightAddress)) { return false; } } else { return false; } } else { if (that.address!= null) { return false; } } } { XmlContactAttribute leftContact; leftContact = this.getContact(); XmlContactAttribute rightContact; rightContact = that.getContact(); if (this.contact!= null) { if (that.contact!= null) { if (!leftContact.equals(rightContact)) { return false; } } else { return false; } } else { if (that.contact!= null) { return false; } } } { Integer leftOrderId; leftOrderId = this.getOrderId(); Integer rightOrderId; rightOrderId = that.getOrderId(); if (this.orderId!= null) { if (that.orderId!= null) { if (!leftOrderId.equals(rightOrderId)) { return false; } } else { return false; } } else { if (that.orderId!= null) { return false; } } } return true; } public int hashCode() { int currentHashCode = 1; { currentHashCode = (currentHashCode* 31); XmlAddressAttribute theAddress; theAddress = this.getAddress(); if (this.address!= null) { currentHashCode += theAddress.hashCode(); } } { currentHashCode = (currentHashCode* 31); XmlContactAttribute theContact; theContact = this.getContact(); if (this.contact!= null) { currentHashCode += theContact.hashCode(); } } { currentHashCode = (currentHashCode* 31); Integer theOrderId; theOrderId = this.getOrderId(); if (this.orderId!= null) { currentHashCode += theOrderId.hashCode(); } } return currentHashCode; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy