/** * AddressSoap.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.liferay.portal.model; public class AddressSoap implements java.io.Serializable { private long addressId; private java.lang.String city; private long classNameId; private long classPK; private long companyId; private long countryId; private java.util.Calendar createDate; private boolean mailing; private java.util.Calendar modifiedDate; private boolean primary; private long primaryKey; private long regionId; private java.lang.String street1; private java.lang.String street2; private java.lang.String street3; private int typeId; private long userId; private java.lang.String userName; private java.lang.String zip; public AddressSoap() { } public AddressSoap( long addressId, java.lang.String city, long classNameId, long classPK, long companyId, long countryId, java.util.Calendar createDate, boolean mailing, java.util.Calendar modifiedDate, boolean primary, long primaryKey, long regionId, java.lang.String street1, java.lang.String street2, java.lang.String street3, int typeId, long userId, java.lang.String userName, java.lang.String zip) { this.addressId = addressId; this.city = city; this.classNameId = classNameId; this.classPK = classPK; this.companyId = companyId; this.countryId = countryId; this.createDate = createDate; this.mailing = mailing; this.modifiedDate = modifiedDate; this.primary = primary; this.primaryKey = primaryKey; this.regionId = regionId; this.street1 = street1; this.street2 = street2; this.street3 = street3; this.typeId = typeId; this.userId = userId; this.userName = userName; this.zip = zip; } /** * Gets the addressId value for this AddressSoap. * * @return addressId */ public long getAddressId() { return addressId; } /** * Sets the addressId value for this AddressSoap. * * @param addressId */ public void setAddressId(long addressId) { this.addressId = addressId; } /** * Gets the city value for this AddressSoap. * * @return city */ public java.lang.String getCity() { return city; } /** * Sets the city value for this AddressSoap. * * @param city */ public void setCity(java.lang.String city) { this.city = city; } /** * Gets the classNameId value for this AddressSoap. * * @return classNameId */ public long getClassNameId() { return classNameId; } /** * Sets the classNameId value for this AddressSoap. * * @param classNameId */ public void setClassNameId(long classNameId) { this.classNameId = classNameId; } /** * Gets the classPK value for this AddressSoap. * * @return classPK */ public long getClassPK() { return classPK; } /** * Sets the classPK value for this AddressSoap. * * @param classPK */ public void setClassPK(long classPK) { this.classPK = classPK; } /** * Gets the companyId value for this AddressSoap. * * @return companyId */ public long getCompanyId() { return companyId; } /** * Sets the companyId value for this AddressSoap. * * @param companyId */ public void setCompanyId(long companyId) { this.companyId = companyId; } /** * Gets the countryId value for this AddressSoap. * * @return countryId */ public long getCountryId() { return countryId; } /** * Sets the countryId value for this AddressSoap. * * @param countryId */ public void setCountryId(long countryId) { this.countryId = countryId; } /** * Gets the createDate value for this AddressSoap. * * @return createDate */ public java.util.Calendar getCreateDate() { return createDate; } /** * Sets the createDate value for this AddressSoap. * * @param createDate */ public void setCreateDate(java.util.Calendar createDate) { this.createDate = createDate; } /** * Gets the mailing value for this AddressSoap. * * @return mailing */ public boolean isMailing() { return mailing; } /** * Sets the mailing value for this AddressSoap. * * @param mailing */ public void setMailing(boolean mailing) { this.mailing = mailing; } /** * Gets the modifiedDate value for this AddressSoap. * * @return modifiedDate */ public java.util.Calendar getModifiedDate() { return modifiedDate; } /** * Sets the modifiedDate value for this AddressSoap. * * @param modifiedDate */ public void setModifiedDate(java.util.Calendar modifiedDate) { this.modifiedDate = modifiedDate; } /** * Gets the primary value for this AddressSoap. * * @return primary */ public boolean isPrimary() { return primary; } /** * Sets the primary value for this AddressSoap. * * @param primary */ public void setPrimary(boolean primary) { this.primary = primary; } /** * Gets the primaryKey value for this AddressSoap. * * @return primaryKey */ public long getPrimaryKey() { return primaryKey; } /** * Sets the primaryKey value for this AddressSoap. * * @param primaryKey */ public void setPrimaryKey(long primaryKey) { this.primaryKey = primaryKey; } /** * Gets the regionId value for this AddressSoap. * * @return regionId */ public long getRegionId() { return regionId; } /** * Sets the regionId value for this AddressSoap. * * @param regionId */ public void setRegionId(long regionId) { this.regionId = regionId; } /** * Gets the street1 value for this AddressSoap. * * @return street1 */ public java.lang.String getStreet1() { return street1; } /** * Sets the street1 value for this AddressSoap. * * @param street1 */ public void setStreet1(java.lang.String street1) { this.street1 = street1; } /** * Gets the street2 value for this AddressSoap. * * @return street2 */ public java.lang.String getStreet2() { return street2; } /** * Sets the street2 value for this AddressSoap. * * @param street2 */ public void setStreet2(java.lang.String street2) { this.street2 = street2; } /** * Gets the street3 value for this AddressSoap. * * @return street3 */ public java.lang.String getStreet3() { return street3; } /** * Sets the street3 value for this AddressSoap. * * @param street3 */ public void setStreet3(java.lang.String street3) { this.street3 = street3; } /** * Gets the typeId value for this AddressSoap. * * @return typeId */ public int getTypeId() { return typeId; } /** * Sets the typeId value for this AddressSoap. * * @param typeId */ public void setTypeId(int typeId) { this.typeId = typeId; } /** * Gets the userId value for this AddressSoap. * * @return userId */ public long getUserId() { return userId; } /** * Sets the userId value for this AddressSoap. * * @param userId */ public void setUserId(long userId) { this.userId = userId; } /** * Gets the userName value for this AddressSoap. * * @return userName */ public java.lang.String getUserName() { return userName; } /** * Sets the userName value for this AddressSoap. * * @param userName */ public void setUserName(java.lang.String userName) { this.userName = userName; } /** * Gets the zip value for this AddressSoap. * * @return zip */ public java.lang.String getZip() { return zip; } /** * Sets the zip value for this AddressSoap. * * @param zip */ public void setZip(java.lang.String zip) { this.zip = zip; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof AddressSoap)) return false; AddressSoap other = (AddressSoap) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && this.addressId == other.getAddressId() && ((this.city==null && other.getCity()==null) || (this.city!=null && this.city.equals(other.getCity()))) && this.classNameId == other.getClassNameId() && this.classPK == other.getClassPK() && this.companyId == other.getCompanyId() && this.countryId == other.getCountryId() && ((this.createDate==null && other.getCreateDate()==null) || (this.createDate!=null && this.createDate.equals(other.getCreateDate()))) && this.mailing == other.isMailing() && ((this.modifiedDate==null && other.getModifiedDate()==null) || (this.modifiedDate!=null && this.modifiedDate.equals(other.getModifiedDate()))) && this.primary == other.isPrimary() && this.primaryKey == other.getPrimaryKey() && this.regionId == other.getRegionId() && ((this.street1==null && other.getStreet1()==null) || (this.street1!=null && this.street1.equals(other.getStreet1()))) && ((this.street2==null && other.getStreet2()==null) || (this.street2!=null && this.street2.equals(other.getStreet2()))) && ((this.street3==null && other.getStreet3()==null) || (this.street3!=null && this.street3.equals(other.getStreet3()))) && this.typeId == other.getTypeId() && this.userId == other.getUserId() && ((this.userName==null && other.getUserName()==null) || (this.userName!=null && this.userName.equals(other.getUserName()))) && ((this.zip==null && other.getZip()==null) || (this.zip!=null && this.zip.equals(other.getZip()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; _hashCode += new Long(getAddressId()).hashCode(); if (getCity() != null) { _hashCode += getCity().hashCode(); } _hashCode += new Long(getClassNameId()).hashCode(); _hashCode += new Long(getClassPK()).hashCode(); _hashCode += new Long(getCompanyId()).hashCode(); _hashCode += new Long(getCountryId()).hashCode(); if (getCreateDate() != null) { _hashCode += getCreateDate().hashCode(); } _hashCode += (isMailing() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getModifiedDate() != null) { _hashCode += getModifiedDate().hashCode(); } _hashCode += (isPrimary() ? Boolean.TRUE : Boolean.FALSE).hashCode(); _hashCode += new Long(getPrimaryKey()).hashCode(); _hashCode += new Long(getRegionId()).hashCode(); if (getStreet1() != null) { _hashCode += getStreet1().hashCode(); } if (getStreet2() != null) { _hashCode += getStreet2().hashCode(); } if (getStreet3() != null) { _hashCode += getStreet3().hashCode(); } _hashCode += getTypeId(); _hashCode += new Long(getUserId()).hashCode(); if (getUserName() != null) { _hashCode += getUserName().hashCode(); } if (getZip() != null) { _hashCode += getZip().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(AddressSoap.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "AddressSoap")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("addressId"); elemField.setXmlName(new javax.xml.namespace.QName("", "addressId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("city"); elemField.setXmlName(new javax.xml.namespace.QName("", "city")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("classNameId"); elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("classPK"); elemField.setXmlName(new javax.xml.namespace.QName("", "classPK")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("companyId"); elemField.setXmlName(new javax.xml.namespace.QName("", "companyId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("countryId"); elemField.setXmlName(new javax.xml.namespace.QName("", "countryId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("createDate"); elemField.setXmlName(new javax.xml.namespace.QName("", "createDate")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("mailing"); elemField.setXmlName(new javax.xml.namespace.QName("", "mailing")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("modifiedDate"); elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("primary"); elemField.setXmlName(new javax.xml.namespace.QName("", "primary")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("primaryKey"); elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("regionId"); elemField.setXmlName(new javax.xml.namespace.QName("", "regionId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("street1"); elemField.setXmlName(new javax.xml.namespace.QName("", "street1")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("street2"); elemField.setXmlName(new javax.xml.namespace.QName("", "street2")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("street3"); elemField.setXmlName(new javax.xml.namespace.QName("", "street3")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("typeId"); elemField.setXmlName(new javax.xml.namespace.QName("", "typeId")); 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("userId"); elemField.setXmlName(new javax.xml.namespace.QName("", "userId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("userName"); elemField.setXmlName(new javax.xml.namespace.QName("", "userName")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("zip"); elemField.setXmlName(new javax.xml.namespace.QName("", "zip")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); 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); } }