/**
* RoleSoap.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 RoleSoap implements java.io.Serializable {
private long classNameId;
private long classPK;
private long companyId;
private java.lang.String description;
private java.lang.String name;
private long primaryKey;
private long roleId;
private java.lang.String subtype;
private java.lang.String title;
private int type;
public RoleSoap() {
}
public RoleSoap(
long classNameId,
long classPK,
long companyId,
java.lang.String description,
java.lang.String name,
long primaryKey,
long roleId,
java.lang.String subtype,
java.lang.String title,
int type) {
this.classNameId = classNameId;
this.classPK = classPK;
this.companyId = companyId;
this.description = description;
this.name = name;
this.primaryKey = primaryKey;
this.roleId = roleId;
this.subtype = subtype;
this.title = title;
this.type = type;
}
/**
* Gets the classNameId value for this RoleSoap.
*
* @return classNameId
*/
public long getClassNameId() {
return classNameId;
}
/**
* Sets the classNameId value for this RoleSoap.
*
* @param classNameId
*/
public void setClassNameId(long classNameId) {
this.classNameId = classNameId;
}
/**
* Gets the classPK value for this RoleSoap.
*
* @return classPK
*/
public long getClassPK() {
return classPK;
}
/**
* Sets the classPK value for this RoleSoap.
*
* @param classPK
*/
public void setClassPK(long classPK) {
this.classPK = classPK;
}
/**
* Gets the companyId value for this RoleSoap.
*
* @return companyId
*/
public long getCompanyId() {
return companyId;
}
/**
* Sets the companyId value for this RoleSoap.
*
* @param companyId
*/
public void setCompanyId(long companyId) {
this.companyId = companyId;
}
/**
* Gets the description value for this RoleSoap.
*
* @return description
*/
public java.lang.String getDescription() {
return description;
}
/**
* Sets the description value for this RoleSoap.
*
* @param description
*/
public void setDescription(java.lang.String description) {
this.description = description;
}
/**
* Gets the name value for this RoleSoap.
*
* @return name
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the name value for this RoleSoap.
*
* @param name
*/
public void setName(java.lang.String name) {
this.name = name;
}
/**
* Gets the primaryKey value for this RoleSoap.
*
* @return primaryKey
*/
public long getPrimaryKey() {
return primaryKey;
}
/**
* Sets the primaryKey value for this RoleSoap.
*
* @param primaryKey
*/
public void setPrimaryKey(long primaryKey) {
this.primaryKey = primaryKey;
}
/**
* Gets the roleId value for this RoleSoap.
*
* @return roleId
*/
public long getRoleId() {
return roleId;
}
/**
* Sets the roleId value for this RoleSoap.
*
* @param roleId
*/
public void setRoleId(long roleId) {
this.roleId = roleId;
}
/**
* Gets the subtype value for this RoleSoap.
*
* @return subtype
*/
public java.lang.String getSubtype() {
return subtype;
}
/**
* Sets the subtype value for this RoleSoap.
*
* @param subtype
*/
public void setSubtype(java.lang.String subtype) {
this.subtype = subtype;
}
/**
* Gets the title value for this RoleSoap.
*
* @return title
*/
public java.lang.String getTitle() {
return title;
}
/**
* Sets the title value for this RoleSoap.
*
* @param title
*/
public void setTitle(java.lang.String title) {
this.title = title;
}
/**
* Gets the type value for this RoleSoap.
*
* @return type
*/
public int getType() {
return type;
}
/**
* Sets the type value for this RoleSoap.
*
* @param type
*/
public void setType(int type) {
this.type = type;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof RoleSoap)) return false;
RoleSoap other = (RoleSoap) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.classNameId == other.getClassNameId() &&
this.classPK == other.getClassPK() &&
this.companyId == other.getCompanyId() &&
((this.description==null && other.getDescription()==null) ||
(this.description!=null &&
this.description.equals(other.getDescription()))) &&
((this.name==null && other.getName()==null) ||
(this.name!=null &&
this.name.equals(other.getName()))) &&
this.primaryKey == other.getPrimaryKey() &&
this.roleId == other.getRoleId() &&
((this.subtype==null && other.getSubtype()==null) ||
(this.subtype!=null &&
this.subtype.equals(other.getSubtype()))) &&
((this.title==null && other.getTitle()==null) ||
(this.title!=null &&
this.title.equals(other.getTitle()))) &&
this.type == other.getType();
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += new Long(getClassNameId()).hashCode();
_hashCode += new Long(getClassPK()).hashCode();
_hashCode += new Long(getCompanyId()).hashCode();
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
if (getName() != null) {
_hashCode += getName().hashCode();
}
_hashCode += new Long(getPrimaryKey()).hashCode();
_hashCode += new Long(getRoleId()).hashCode();
if (getSubtype() != null) {
_hashCode += getSubtype().hashCode();
}
if (getTitle() != null) {
_hashCode += getTitle().hashCode();
}
_hashCode += getType();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RoleSoap.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "RoleSoap"));
org.apache.axis.description.ElementDesc 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("description");
elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
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("name");
elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
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("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("roleId");
elemField.setXmlName(new javax.xml.namespace.QName("", "roleId"));
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("subtype");
elemField.setXmlName(new javax.xml.namespace.QName("", "subtype"));
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("title");
elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
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("type");
elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
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);
}
}