com.allegro.webapi.CompanySecondAddressStruct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allegro-webapi Show documentation
Show all versions of allegro-webapi Show documentation
Allegro Web API WSDL converted to Java
/**
* CompanySecondAddressStruct.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.allegro.webapi;
public class CompanySecondAddressStruct implements java.io.Serializable {
private java.lang.String companyWorkerFirstName;
private java.lang.String companyWorkerLastName;
private java.lang.String companyAddress;
private java.lang.String companyPostcode;
private java.lang.String companyCity;
private int companyCountryId;
private int companyStateId;
public CompanySecondAddressStruct() {
}
public CompanySecondAddressStruct(
java.lang.String companyWorkerFirstName,
java.lang.String companyWorkerLastName,
java.lang.String companyAddress,
java.lang.String companyPostcode,
java.lang.String companyCity,
int companyCountryId,
int companyStateId) {
this.companyWorkerFirstName = companyWorkerFirstName;
this.companyWorkerLastName = companyWorkerLastName;
this.companyAddress = companyAddress;
this.companyPostcode = companyPostcode;
this.companyCity = companyCity;
this.companyCountryId = companyCountryId;
this.companyStateId = companyStateId;
}
/**
* Gets the companyWorkerFirstName value for this CompanySecondAddressStruct.
*
* @return companyWorkerFirstName
*/
public java.lang.String getCompanyWorkerFirstName() {
return companyWorkerFirstName;
}
/**
* Sets the companyWorkerFirstName value for this CompanySecondAddressStruct.
*
* @param companyWorkerFirstName
*/
public void setCompanyWorkerFirstName(java.lang.String companyWorkerFirstName) {
this.companyWorkerFirstName = companyWorkerFirstName;
}
/**
* Gets the companyWorkerLastName value for this CompanySecondAddressStruct.
*
* @return companyWorkerLastName
*/
public java.lang.String getCompanyWorkerLastName() {
return companyWorkerLastName;
}
/**
* Sets the companyWorkerLastName value for this CompanySecondAddressStruct.
*
* @param companyWorkerLastName
*/
public void setCompanyWorkerLastName(java.lang.String companyWorkerLastName) {
this.companyWorkerLastName = companyWorkerLastName;
}
/**
* Gets the companyAddress value for this CompanySecondAddressStruct.
*
* @return companyAddress
*/
public java.lang.String getCompanyAddress() {
return companyAddress;
}
/**
* Sets the companyAddress value for this CompanySecondAddressStruct.
*
* @param companyAddress
*/
public void setCompanyAddress(java.lang.String companyAddress) {
this.companyAddress = companyAddress;
}
/**
* Gets the companyPostcode value for this CompanySecondAddressStruct.
*
* @return companyPostcode
*/
public java.lang.String getCompanyPostcode() {
return companyPostcode;
}
/**
* Sets the companyPostcode value for this CompanySecondAddressStruct.
*
* @param companyPostcode
*/
public void setCompanyPostcode(java.lang.String companyPostcode) {
this.companyPostcode = companyPostcode;
}
/**
* Gets the companyCity value for this CompanySecondAddressStruct.
*
* @return companyCity
*/
public java.lang.String getCompanyCity() {
return companyCity;
}
/**
* Sets the companyCity value for this CompanySecondAddressStruct.
*
* @param companyCity
*/
public void setCompanyCity(java.lang.String companyCity) {
this.companyCity = companyCity;
}
/**
* Gets the companyCountryId value for this CompanySecondAddressStruct.
*
* @return companyCountryId
*/
public int getCompanyCountryId() {
return companyCountryId;
}
/**
* Sets the companyCountryId value for this CompanySecondAddressStruct.
*
* @param companyCountryId
*/
public void setCompanyCountryId(int companyCountryId) {
this.companyCountryId = companyCountryId;
}
/**
* Gets the companyStateId value for this CompanySecondAddressStruct.
*
* @return companyStateId
*/
public int getCompanyStateId() {
return companyStateId;
}
/**
* Sets the companyStateId value for this CompanySecondAddressStruct.
*
* @param companyStateId
*/
public void setCompanyStateId(int companyStateId) {
this.companyStateId = companyStateId;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof CompanySecondAddressStruct)) return false;
CompanySecondAddressStruct other = (CompanySecondAddressStruct) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.companyWorkerFirstName==null && other.getCompanyWorkerFirstName()==null) ||
(this.companyWorkerFirstName!=null &&
this.companyWorkerFirstName.equals(other.getCompanyWorkerFirstName()))) &&
((this.companyWorkerLastName==null && other.getCompanyWorkerLastName()==null) ||
(this.companyWorkerLastName!=null &&
this.companyWorkerLastName.equals(other.getCompanyWorkerLastName()))) &&
((this.companyAddress==null && other.getCompanyAddress()==null) ||
(this.companyAddress!=null &&
this.companyAddress.equals(other.getCompanyAddress()))) &&
((this.companyPostcode==null && other.getCompanyPostcode()==null) ||
(this.companyPostcode!=null &&
this.companyPostcode.equals(other.getCompanyPostcode()))) &&
((this.companyCity==null && other.getCompanyCity()==null) ||
(this.companyCity!=null &&
this.companyCity.equals(other.getCompanyCity()))) &&
this.companyCountryId == other.getCompanyCountryId() &&
this.companyStateId == other.getCompanyStateId();
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getCompanyWorkerFirstName() != null) {
_hashCode += getCompanyWorkerFirstName().hashCode();
}
if (getCompanyWorkerLastName() != null) {
_hashCode += getCompanyWorkerLastName().hashCode();
}
if (getCompanyAddress() != null) {
_hashCode += getCompanyAddress().hashCode();
}
if (getCompanyPostcode() != null) {
_hashCode += getCompanyPostcode().hashCode();
}
if (getCompanyCity() != null) {
_hashCode += getCompanyCity().hashCode();
}
_hashCode += getCompanyCountryId();
_hashCode += getCompanyStateId();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(CompanySecondAddressStruct.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "CompanySecondAddressStruct"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyWorkerFirstName");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "companyWorkerFirstName"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyWorkerLastName");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "companyWorkerLastName"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyAddress");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "companyAddress"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyPostcode");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "companyPostcode"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyCity");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "companyCity"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyCountryId");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "companyCountryId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyStateId");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "companyStateId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}