LoginRequest.java from iTicket at Krugle
Show LoginRequest.java syntax highlighted
/**
* LoginRequest.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
*/
package iTicket_pkg;
public class LoginRequest implements java.io.Serializable {
private java.lang.String username;
private java.lang.String password;
public LoginRequest() {
}
public LoginRequest(
java.lang.String username,
java.lang.String password) {
this.username = username;
this.password = password;
}
/**
* Gets the username value for this LoginRequest.
*
* @return username
*/
public java.lang.String getUsername() {
return username;
}
/**
* Sets the username value for this LoginRequest.
*
* @param username
*/
public void setUsername(java.lang.String username) {
this.username = username;
}
/**
* Gets the password value for this LoginRequest.
*
* @return password
*/
public java.lang.String getPassword() {
return password;
}
/**
* Sets the password value for this LoginRequest.
*
* @param password
*/
public void setPassword(java.lang.String password) {
this.password = password;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof LoginRequest)) return false;
LoginRequest other = (LoginRequest) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.username==null && other.getUsername()==null) ||
(this.username!=null &&
this.username.equals(other.getUsername()))) &&
((this.password==null && other.getPassword()==null) ||
(this.password!=null &&
this.password.equals(other.getPassword())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getUsername() != null) {
_hashCode += getUsername().hashCode();
}
if (getPassword() != null) {
_hashCode += getPassword().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(LoginRequest.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:iTicket", "LoginRequest"));
org.apache.axis.description.ElementDesc 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://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("password");
elemField.setXmlName(new javax.xml.namespace.QName("", "password"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
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);
}
}
See more files for this project here