io.atlasmap.xml.test.v2.XmlContactElement 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 XmlContactElement complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="XmlContactElement">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="firstName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="lastName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="phoneNumber" 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 = "XmlContactElement", propOrder = {
"firstName",
"lastName",
"phoneNumber",
"zipCode"
})
public class XmlContactElement implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(required = true)
protected String firstName;
@XmlElement(required = true)
protected String lastName;
@XmlElement(required = true)
protected String phoneNumber;
@XmlElement(required = true)
protected String zipCode;
/**
* Gets the value of the firstName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFirstName() {
return firstName;
}
/**
* Sets the value of the firstName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFirstName(String value) {
this.firstName = value;
}
/**
* Gets the value of the lastName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLastName() {
return lastName;
}
/**
* Sets the value of the lastName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLastName(String value) {
this.lastName = value;
}
/**
* Gets the value of the phoneNumber property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPhoneNumber() {
return phoneNumber;
}
/**
* Sets the value of the phoneNumber property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPhoneNumber(String value) {
this.phoneNumber = 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 XmlContactElement that = ((XmlContactElement) object);
{
String leftFirstName;
leftFirstName = this.getFirstName();
String rightFirstName;
rightFirstName = that.getFirstName();
if (this.firstName!= null) {
if (that.firstName!= null) {
if (!leftFirstName.equals(rightFirstName)) {
return false;
}
} else {
return false;
}
} else {
if (that.firstName!= null) {
return false;
}
}
}
{
String leftLastName;
leftLastName = this.getLastName();
String rightLastName;
rightLastName = that.getLastName();
if (this.lastName!= null) {
if (that.lastName!= null) {
if (!leftLastName.equals(rightLastName)) {
return false;
}
} else {
return false;
}
} else {
if (that.lastName!= null) {
return false;
}
}
}
{
String leftPhoneNumber;
leftPhoneNumber = this.getPhoneNumber();
String rightPhoneNumber;
rightPhoneNumber = that.getPhoneNumber();
if (this.phoneNumber!= null) {
if (that.phoneNumber!= null) {
if (!leftPhoneNumber.equals(rightPhoneNumber)) {
return false;
}
} else {
return false;
}
} else {
if (that.phoneNumber!= 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 theFirstName;
theFirstName = this.getFirstName();
if (this.firstName!= null) {
currentHashCode += theFirstName.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
String theLastName;
theLastName = this.getLastName();
if (this.lastName!= null) {
currentHashCode += theLastName.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
String thePhoneNumber;
thePhoneNumber = this.getPhoneNumber();
if (this.phoneNumber!= null) {
currentHashCode += thePhoneNumber.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