./tudu/src/java/tudu/web/ws/bean/WsTodo.java
package tudu.web.ws.bean;
/**
* WsTodo.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
*
* @author Julien Dubois
*/
public class WsTodo implements java.io.Serializable {
private static final long serialVersionUID = 3190400595759700097L;
private boolean completed;
private java.lang.String description;
private int priority;
private java.lang.String todoId;
public WsTodo() {
}
public WsTodo(
boolean completed,
java.lang.String description,
int priority,
java.lang.String todoId) {
this.completed = completed;
this.description = description;
this.priority = priority;
this.todoId = todoId;
}
/**
* Gets the completed value for this WsTodo.
*
* @return completed
*/
public boolean isCompleted() {
return completed;
}
/**
* Sets the completed value for this WsTodo.
*
* @param completed
*/
public void setCompleted(boolean completed) {
this.completed = completed;
}
/**
* Gets the description value for this WsTodo.
*
* @return description
*/
public java.lang.String getDescription() {
return description;
}
/**
* Sets the description value for this WsTodo.
*
* @param description
*/
public void setDescription(java.lang.String description) {
this.description = description;
}
/**
* Gets the priority value for this WsTodo.
*
* @return priority
*/
public int getPriority() {
return priority;
}
/**
* Sets the priority value for this WsTodo.
*
* @param priority
*/
public void setPriority(int priority) {
this.priority = priority;
}
/**
* Gets the todoId value for this WsTodo.
*
* @return todoId
*/
public java.lang.String getTodoId() {
return todoId;
}
/**
* Sets the todoId value for this WsTodo.
*
* @param todoId
*/
public void setTodoId(java.lang.String todoId) {
this.todoId = todoId;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof WsTodo)) return false;
WsTodo other = (WsTodo) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.completed == other.isCompleted() &&
((this.description==null && other.getDescription()==null) ||
(this.description!=null &&
this.description.equals(other.getDescription()))) &&
this.priority == other.getPriority() &&
((this.todoId==null && other.getTodoId()==null) ||
(this.todoId!=null &&
this.todoId.equals(other.getTodoId())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += (isCompleted() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
_hashCode += getPriority();
if (getTodoId() != null) {
_hashCode += getTodoId().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(WsTodo.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://bean.ws.web.tudu", "WsTodo"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("completed");
elemField.setXmlName(new javax.xml.namespace.QName("", "completed"));
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("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("priority");
elemField.setXmlName(new javax.xml.namespace.QName("", "priority"));
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("todoId");
elemField.setXmlName(new javax.xml.namespace.QName("", "todoId"));
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);
}
}