001: /**
002: * User.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package XflowService;
007:
008: public class User implements java.io.Serializable {
009: private java.lang.String name;
010: private java.lang.String password;
011:
012: public User() {
013: }
014:
015: public java.lang.String getName() {
016: return name;
017: }
018:
019: public void setName(java.lang.String name) {
020: this .name = name;
021: }
022:
023: public java.lang.String getPassword() {
024: return password;
025: }
026:
027: public void setPassword(java.lang.String password) {
028: this .password = password;
029: }
030:
031: private java.lang.Object __equalsCalc = null;
032:
033: public synchronized boolean equals(java.lang.Object obj) {
034: if (!(obj instanceof User))
035: return false;
036: User other = (User) obj;
037: if (obj == null)
038: return false;
039: if (this == obj)
040: return true;
041: if (__equalsCalc != null) {
042: return (__equalsCalc == obj);
043: }
044: __equalsCalc = obj;
045: boolean _equals;
046: _equals = true
047: && ((name == null && other.getName() == null) || (name != null && name
048: .equals(other.getName())))
049: && ((password == null && other.getPassword() == null) || (password != null && password
050: .equals(other.getPassword())));
051: __equalsCalc = null;
052: return _equals;
053: }
054:
055: private boolean __hashCodeCalc = false;
056:
057: public synchronized int hashCode() {
058: if (__hashCodeCalc) {
059: return 0;
060: }
061: __hashCodeCalc = true;
062: int _hashCode = 1;
063: if (getName() != null) {
064: _hashCode += getName().hashCode();
065: }
066: if (getPassword() != null) {
067: _hashCode += getPassword().hashCode();
068: }
069: __hashCodeCalc = false;
070: return _hashCode;
071: }
072:
073: // Type metadata
074: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
075: User.class);
076:
077: static {
078: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
079: field.setFieldName("name");
080: field.setXmlName(new javax.xml.namespace.QName("", "name"));
081: field.setXmlType(new javax.xml.namespace.QName(
082: "http://www.w3.org/2001/XMLSchema", "string"));
083: typeDesc.addFieldDesc(field);
084: field = new org.apache.axis.description.ElementDesc();
085: field.setFieldName("password");
086: field.setXmlName(new javax.xml.namespace.QName("", "password"));
087: field.setXmlType(new javax.xml.namespace.QName(
088: "http://www.w3.org/2001/XMLSchema", "string"));
089: typeDesc.addFieldDesc(field);
090: };
091:
092: /**
093: * Return type metadata object
094: */
095: public static org.apache.axis.description.TypeDesc getTypeDesc() {
096: return typeDesc;
097: }
098:
099: /**
100: * Get Custom Serializer
101: */
102: public static org.apache.axis.encoding.Serializer getSerializer(
103: java.lang.String mechType, java.lang.Class _javaType,
104: javax.xml.namespace.QName _xmlType) {
105: return new org.apache.axis.encoding.ser.BeanSerializer(
106: _javaType, _xmlType, typeDesc);
107: }
108:
109: /**
110: * Get Custom Deserializer
111: */
112: public static org.apache.axis.encoding.Deserializer getDeserializer(
113: java.lang.String mechType, java.lang.Class _javaType,
114: javax.xml.namespace.QName _xmlType) {
115: return new org.apache.axis.encoding.ser.BeanDeserializer(
116: _javaType, _xmlType, typeDesc);
117: }
118:
119: }
|