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

io.atlasmap.xml.test.v2.XmlOrderElement 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.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for XmlOrderElement complex type. * *

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy