/** * EmailAddressSoap.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 EmailAddressSoap implements java.io.Serializable { private java.lang.String address; private long classNameId; private long classPK; private long companyId; private java.util.Calendar createDate; private long emailAddressId; private java.util.Calendar modifiedDate; private boolean primary; private long primaryKey; private int typeId; private long userId; private java.lang.String userName; public EmailAddressSoap() { } public EmailAddressSoap( java.lang.String address, long classNameId, long classPK, long companyId, java.util.Calendar createDate, long emailAddressId, java.util.Calendar modifiedDate, boolean primary, long primaryKey, int typeId, long userId, java.lang.String userName) { this.address = address; this.classNameId = classNameId; this.classPK = classPK; this.companyId = companyId; this.createDate = createDate; this.emailAddressId = emailAddressId; this.modifiedDate = modifiedDate; this.primary = primary; this.primaryKey = primaryKey; this.typeId = typeId; this.userId = userId; this.userName = userName; } /** * Gets the address value for this EmailAddressSoap. * * @return address */ public java.lang.String getAddress() { return address; } /** * Sets the address value for this EmailAddressSoap. * * @param address */ public void setAddress(java.lang.String address) { this.address = address; } /** * Gets the classNameId value for this EmailAddressSoap. * * @return classNameId */ public long getClassNameId() { return classNameId; } /** * Sets the classNameId value for this EmailAddressSoap. * * @param classNameId */ public void setClassNameId(long classNameId) { this.classNameId = classNameId; } /** * Gets the classPK value for this EmailAddressSoap. * * @return classPK */ public long getClassPK() { return classPK; } /** * Sets the classPK value for this EmailAddressSoap. * * @param classPK */ public void setClassPK(long classPK) { this.classPK = classPK; } /** * Gets the companyId value for this EmailAddressSoap. * * @return companyId */ public long getCompanyId() { return companyId; } /** * Sets the companyId value for this EmailAddressSoap. * * @param companyId */ public void setCompanyId(long companyId) { this.companyId = companyId; } /** * Gets the createDate value for this EmailAddressSoap. * * @return createDate */ public java.util.Calendar getCreateDate() { return createDate; } /** * Sets the createDate value for this EmailAddressSoap. * * @param createDate */ public void setCreateDate(java.util.Calendar createDate) { this.createDate = createDate; } /** * Gets the emailAddressId value for this EmailAddressSoap. * * @return emailAddressId */ public long getEmailAddressId() { return emailAddressId; } /** * Sets the emailAddressId value for this EmailAddressSoap. * * @param emailAddressId */ public void setEmailAddressId(long emailAddressId) { this.emailAddressId = emailAddressId; } /** * Gets the modifiedDate value for this EmailAddressSoap. * * @return modifiedDate */ public java.util.Calendar getModifiedDate() { return modifiedDate; } /** * Sets the modifiedDate value for this EmailAddressSoap. * * @param modifiedDate */ public void setModifiedDate(java.util.Calendar modifiedDate) { this.modifiedDate = modifiedDate; } /** * Gets the primary value for this EmailAddressSoap. * * @return primary */ public boolean isPrimary() { return primary; } /** * Sets the primary value for this EmailAddressSoap. * * @param primary */ public void setPrimary(boolean primary) { this.primary = primary; } /** * Gets the primaryKey value for this EmailAddressSoap. * * @return primaryKey */ public long getPrimaryKey() { return primaryKey; } /** * Sets the primaryKey value for this EmailAddressSoap. * * @param primaryKey */ public void setPrimaryKey(long primaryKey) { this.primaryKey = primaryKey; } /** * Gets the typeId value for this EmailAddressSoap. * * @return typeId */ public int getTypeId() { return typeId; } /** * Sets the typeId value for this EmailAddressSoap. * * @param typeId */ public void setTypeId(int typeId) { this.typeId = typeId; } /** * Gets the userId value for this EmailAddressSoap. * * @return userId */ public long getUserId() { return userId; } /** * Sets the userId value for this EmailAddressSoap. * * @param userId */ public void setUserId(long userId) { this.userId = userId; } /** * Gets the userName value for this EmailAddressSoap. * * @return userName */ public java.lang.String getUserName() { return userName; } /** * Sets the userName value for this EmailAddressSoap. * * @param userName */ public void setUserName(java.lang.String userName) { this.userName = userName; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof EmailAddressSoap)) return false; EmailAddressSoap other = (EmailAddressSoap) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.address==null && other.getAddress()==null) || (this.address!=null && this.address.equals(other.getAddress()))) && this.classNameId == other.getClassNameId() && this.classPK == other.getClassPK() && this.companyId == other.getCompanyId() && ((this.createDate==null && other.getCreateDate()==null) || (this.createDate!=null && this.createDate.equals(other.getCreateDate()))) && this.emailAddressId == other.getEmailAddressId() && ((this.modifiedDate==null && other.getModifiedDate()==null) || (this.modifiedDate!=null && this.modifiedDate.equals(other.getModifiedDate()))) && this.primary == other.isPrimary() && this.primaryKey == other.getPrimaryKey() && this.typeId == other.getTypeId() && this.userId == other.getUserId() && ((this.userName==null && other.getUserName()==null) || (this.userName!=null && this.userName.equals(other.getUserName()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getAddress() != null) { _hashCode += getAddress().hashCode(); } _hashCode += new Long(getClassNameId()).hashCode(); _hashCode += new Long(getClassPK()).hashCode(); _hashCode += new Long(getCompanyId()).hashCode(); if (getCreateDate() != null) { _hashCode += getCreateDate().hashCode(); } _hashCode += new Long(getEmailAddressId()).hashCode(); if (getModifiedDate() != null) { _hashCode += getModifiedDate().hashCode(); } _hashCode += (isPrimary() ? Boolean.TRUE : Boolean.FALSE).hashCode(); _hashCode += new Long(getPrimaryKey()).hashCode(); _hashCode += getTypeId(); _hashCode += new Long(getUserId()).hashCode(); if (getUserName() != null) { _hashCode += getUserName().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(EmailAddressSoap.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "EmailAddressSoap")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("address"); elemField.setXmlName(new javax.xml.namespace.QName("", "address")); 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("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("emailAddressId"); elemField.setXmlName(new javax.xml.namespace.QName("", "emailAddressId")); 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("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("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); } /** * 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); } }