/**
* UserGroup.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.borland.sctm.ws.administration.entities;
public class UserGroup implements java.io.Serializable {
private long createdAt;
private java.lang.String createdBy;
private java.lang.String description;
private int id;
private boolean locked;
private java.lang.String name;
private int[] projectAssignments;
public UserGroup() {
}
public UserGroup(
long createdAt,
java.lang.String createdBy,
java.lang.String description,
int id,
boolean locked,
java.lang.String name,
int[] projectAssignments) {
this.createdAt = createdAt;
this.createdBy = createdBy;
this.description = description;
this.id = id;
this.locked = locked;
this.name = name;
this.projectAssignments = projectAssignments;
}
/**
* Gets the createdAt value for this UserGroup.
*
* @return createdAt
*/
public long getCreatedAt() {
return createdAt;
}
/**
* Sets the createdAt value for this UserGroup.
*
* @param createdAt
*/
public void setCreatedAt(long createdAt) {
this.createdAt = createdAt;
}
/**
* Gets the createdBy value for this UserGroup.
*
* @return createdBy
*/
public java.lang.String getCreatedBy() {
return createdBy;
}
/**
* Sets the createdBy value for this UserGroup.
*
* @param createdBy
*/
public void setCreatedBy(java.lang.String createdBy) {
this.createdBy = createdBy;
}
/**
* Gets the description value for this UserGroup.
*
* @return description
*/
public java.lang.String getDescription() {
return description;
}
/**
* Sets the description value for this UserGroup.
*
* @param description
*/
public void setDescription(java.lang.String description) {
this.description = description;
}
/**
* Gets the id value for this UserGroup.
*
* @return id
*/
public int getId() {
return id;
}
/**
* Sets the id value for this UserGroup.
*
* @param id
*/
public void setId(int id) {
this.id = id;
}
/**
* Gets the locked value for this UserGroup.
*
* @return locked
*/
public boolean isLocked() {
return locked;
}
/**
* Sets the locked value for this UserGroup.
*
* @param locked
*/
public void setLocked(boolean locked) {
this.locked = locked;
}
/**
* Gets the name value for this UserGroup.
*
* @return name
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the name value for this UserGroup.
*
* @param name
*/
public void setName(java.lang.String name) {
this.name = name;
}
/**
* Gets the projectAssignments value for this UserGroup.
*
* @return projectAssignments
*/
public int[] getProjectAssignments() {
return projectAssignments;
}
/**
* Sets the projectAssignments value for this UserGroup.
*
* @param projectAssignments
*/
public void setProjectAssignments(int[] projectAssignments) {
this.projectAssignments = projectAssignments;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof UserGroup)) return false;
UserGroup other = (UserGroup) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.createdAt == other.getCreatedAt() &&
((this.createdBy==null && other.getCreatedBy()==null) ||
(this.createdBy!=null &&
this.createdBy.equals(other.getCreatedBy()))) &&
((this.description==null && other.getDescription()==null) ||
(this.description!=null &&
this.description.equals(other.getDescription()))) &&
this.id == other.getId() &&
this.locked == other.isLocked() &&
((this.name==null && other.getName()==null) ||
(this.name!=null &&
this.name.equals(other.getName()))) &&
((this.projectAssignments==null && other.getProjectAssignments()==null) ||
(this.projectAssignments!=null &&
java.util.Arrays.equals(this.projectAssignments, other.getProjectAssignments())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += new Long(getCreatedAt()).hashCode();
if (getCreatedBy() != null) {
_hashCode += getCreatedBy().hashCode();
}
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
_hashCode += getId();
_hashCode += (isLocked() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getName() != null) {
_hashCode += getName().hashCode();
}
if (getProjectAssignments() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getProjectAssignments());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getProjectAssignments(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(UserGroup.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://scc.segue.com", "UserGroup"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("createdAt");
elemField.setXmlName(new javax.xml.namespace.QName("", "createdAt"));
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("createdBy");
elemField.setXmlName(new javax.xml.namespace.QName("", "createdBy"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
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://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("id");
elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
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("locked");
elemField.setXmlName(new javax.xml.namespace.QName("", "locked"));
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("name");
elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("projectAssignments");
elemField.setXmlName(new javax.xml.namespace.QName("", "projectAssignments"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
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);
}
}