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

io.atlasmap.xml.test.v2.XmlAddressAttribute 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.XmlType;


/**
 * 

Java class for XmlAddressAttribute complex type. * *

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

 * <complexType name="XmlAddressAttribute">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <attribute name="addressLine1" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="addressLine2" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="city" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="state" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="zipCode" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "XmlAddressAttribute") public class XmlAddressAttribute implements Serializable { private final static long serialVersionUID = 1L; @XmlAttribute(name = "addressLine1") protected String addressLine1; @XmlAttribute(name = "addressLine2") protected String addressLine2; @XmlAttribute(name = "city") protected String city; @XmlAttribute(name = "state") protected String state; @XmlAttribute(name = "zipCode") protected String zipCode; /** * Gets the value of the addressLine1 property. * * @return * possible object is * {@link String } * */ public String getAddressLine1() { return addressLine1; } /** * Sets the value of the addressLine1 property. * * @param value * allowed object is * {@link String } * */ public void setAddressLine1(String value) { this.addressLine1 = value; } /** * Gets the value of the addressLine2 property. * * @return * possible object is * {@link String } * */ public String getAddressLine2() { return addressLine2; } /** * Sets the value of the addressLine2 property. * * @param value * allowed object is * {@link String } * */ public void setAddressLine2(String value) { this.addressLine2 = value; } /** * Gets the value of the city property. * * @return * possible object is * {@link String } * */ public String getCity() { return city; } /** * Sets the value of the city property. * * @param value * allowed object is * {@link String } * */ public void setCity(String value) { this.city = value; } /** * Gets the value of the state property. * * @return * possible object is * {@link String } * */ public String getState() { return state; } /** * Sets the value of the state property. * * @param value * allowed object is * {@link String } * */ public void setState(String value) { this.state = value; } /** * Gets the value of the zipCode property. * * @return * possible object is * {@link String } * */ public String getZipCode() { return zipCode; } /** * Sets the value of the zipCode property. * * @param value * allowed object is * {@link String } * */ public void setZipCode(String value) { this.zipCode = value; } public boolean equals(Object object) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final XmlAddressAttribute that = ((XmlAddressAttribute) object); { String leftAddressLine1; leftAddressLine1 = this.getAddressLine1(); String rightAddressLine1; rightAddressLine1 = that.getAddressLine1(); if (this.addressLine1 != null) { if (that.addressLine1 != null) { if (!leftAddressLine1 .equals(rightAddressLine1)) { return false; } } else { return false; } } else { if (that.addressLine1 != null) { return false; } } } { String leftAddressLine2; leftAddressLine2 = this.getAddressLine2(); String rightAddressLine2; rightAddressLine2 = that.getAddressLine2(); if (this.addressLine2 != null) { if (that.addressLine2 != null) { if (!leftAddressLine2 .equals(rightAddressLine2)) { return false; } } else { return false; } } else { if (that.addressLine2 != null) { return false; } } } { String leftCity; leftCity = this.getCity(); String rightCity; rightCity = that.getCity(); if (this.city!= null) { if (that.city!= null) { if (!leftCity.equals(rightCity)) { return false; } } else { return false; } } else { if (that.city!= null) { return false; } } } { String leftState; leftState = this.getState(); String rightState; rightState = that.getState(); if (this.state!= null) { if (that.state!= null) { if (!leftState.equals(rightState)) { return false; } } else { return false; } } else { if (that.state!= null) { return false; } } } { String leftZipCode; leftZipCode = this.getZipCode(); String rightZipCode; rightZipCode = that.getZipCode(); if (this.zipCode!= null) { if (that.zipCode!= null) { if (!leftZipCode.equals(rightZipCode)) { return false; } } else { return false; } } else { if (that.zipCode!= null) { return false; } } } return true; } public int hashCode() { int currentHashCode = 1; { currentHashCode = (currentHashCode* 31); String theAddressLine1; theAddressLine1 = this.getAddressLine1(); if (this.addressLine1 != null) { currentHashCode += theAddressLine1 .hashCode(); } } { currentHashCode = (currentHashCode* 31); String theAddressLine2; theAddressLine2 = this.getAddressLine2(); if (this.addressLine2 != null) { currentHashCode += theAddressLine2 .hashCode(); } } { currentHashCode = (currentHashCode* 31); String theCity; theCity = this.getCity(); if (this.city!= null) { currentHashCode += theCity.hashCode(); } } { currentHashCode = (currentHashCode* 31); String theState; theState = this.getState(); if (this.state!= null) { currentHashCode += theState.hashCode(); } } { currentHashCode = (currentHashCode* 31); String theZipCode; theZipCode = this.getZipCode(); if (this.zipCode!= null) { currentHashCode += theZipCode.hashCode(); } } return currentHashCode; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy