io.atlasmap.xml.test.v2.XmlAddressElement Maven / Gradle / Ivy
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 XmlAddressElement complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="XmlAddressElement">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="addressLine1" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="addressLine2" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="city" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="state" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="zipCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "XmlAddressElement", propOrder = {
"addressLine1",
"addressLine2",
"city",
"state",
"zipCode"
})
public class XmlAddressElement implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(required = true)
protected String addressLine1;
@XmlElement(required = true)
protected String addressLine2;
@XmlElement(required = true)
protected String city;
@XmlElement(required = true)
protected String state;
@XmlElement(required = true)
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 XmlAddressElement that = ((XmlAddressElement) 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