/**
* User.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 User extends com.borland.sctm.ws.administration.entities.NamedEntity implements java.io.Serializable {
private boolean isLocked;
private java.lang.String firstName;
private java.lang.String login;
public User() {
}
public User(
int id,
java.lang.String name,
java.lang.String description,
boolean isLocked,
java.lang.String firstName,
java.lang.String login) {
super(
id,
name,
description);
this.isLocked = isLocked;
this.firstName = firstName;
this.login = login;
}
/**
* Gets the isLocked value for this User.
*
* @return isLocked
*/
public boolean isIsLocked() {
return isLocked;
}
/**
* Sets the isLocked value for this User.
*
* @param isLocked
*/
public void setIsLocked(boolean isLocked) {
this.isLocked = isLocked;
}
/**
* Gets the firstName value for this User.
*
* @return firstName
*/
public java.lang.String getFirstName() {
return firstName;
}
/**
* Sets the firstName value for this User.
*
* @param firstName
*/
public void setFirstName(java.lang.String firstName) {
this.firstName = firstName;
}
/**
* Gets the login value for this User.
*
* @return login
*/
public java.lang.String getLogin() {
return login;
}
/**
* Sets the login value for this User.
*
* @param login
*/
public void setLogin(java.lang.String login) {
this.login = login;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof User)) return false;
User other = (User) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
this.isLocked == other.isIsLocked() &&
((this.firstName==null && other.getFirstName()==null) ||
(this.firstName!=null &&
this.firstName.equals(other.getFirstName()))) &&
((this.login==null && other.getLogin()==null) ||
(this.login!=null &&
this.login.equals(other.getLogin())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
_hashCode += (isIsLocked() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getFirstName() != null) {
_hashCode += getFirstName().hashCode();
}
if (getLogin() != null) {
_hashCode += getLogin().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(User.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://scc.segue.com", "User"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("isLocked");
elemField.setXmlName(new javax.xml.namespace.QName("", "isLocked"));
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("firstName");
elemField.setXmlName(new javax.xml.namespace.QName("", "firstName"));
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("login");
elemField.setXmlName(new javax.xml.namespace.QName("", "login"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "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);
}
}