Subversion Repositories SmartDukaan

Rev

Rev 20640 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20640 amit.gupta 1
/**
2
 * Notification.java
3
 *
4
 * This file was auto-generated from WSDL
5
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6
 */
7
 
8
package com.aramex.stub;
9
 
10
public class Notification  implements java.io.Serializable {
23632 amit.gupta 11
    @Override
12
	public String toString() {
13
		return "Notification [code=" + code + ", message=" + message + "]";
14
	}
20640 amit.gupta 15
 
23632 amit.gupta 16
	private java.lang.String code;
17
 
20640 amit.gupta 18
    private java.lang.String message;
19
 
20
    public Notification() {
21
    }
22
 
23
    public Notification(
24
           java.lang.String code,
25
           java.lang.String message) {
26
           this.code = code;
27
           this.message = message;
28
    }
29
 
30
 
31
    /**
32
     * Gets the code value for this Notification.
33
     * 
34
     * @return code
35
     */
36
    public java.lang.String getCode() {
37
        return code;
38
    }
39
 
40
 
41
    /**
42
     * Sets the code value for this Notification.
43
     * 
44
     * @param code
45
     */
46
    public void setCode(java.lang.String code) {
47
        this.code = code;
48
    }
49
 
50
 
51
    /**
52
     * Gets the message value for this Notification.
53
     * 
54
     * @return message
55
     */
56
    public java.lang.String getMessage() {
57
        return message;
58
    }
59
 
60
 
61
    /**
62
     * Sets the message value for this Notification.
63
     * 
64
     * @param message
65
     */
66
    public void setMessage(java.lang.String message) {
67
        this.message = message;
68
    }
69
 
70
    private java.lang.Object __equalsCalc = null;
71
    public synchronized boolean equals(java.lang.Object obj) {
72
        if (!(obj instanceof Notification)) return false;
73
        Notification other = (Notification) obj;
74
        if (obj == null) return false;
75
        if (this == obj) return true;
76
        if (__equalsCalc != null) {
77
            return (__equalsCalc == obj);
78
        }
79
        __equalsCalc = obj;
80
        boolean _equals;
81
        _equals = true && 
82
            ((this.code==null && other.getCode()==null) || 
83
             (this.code!=null &&
84
              this.code.equals(other.getCode()))) &&
85
            ((this.message==null && other.getMessage()==null) || 
86
             (this.message!=null &&
87
              this.message.equals(other.getMessage())));
88
        __equalsCalc = null;
89
        return _equals;
90
    }
91
 
92
    private boolean __hashCodeCalc = false;
93
    public synchronized int hashCode() {
94
        if (__hashCodeCalc) {
95
            return 0;
96
        }
97
        __hashCodeCalc = true;
98
        int _hashCode = 1;
99
        if (getCode() != null) {
100
            _hashCode += getCode().hashCode();
101
        }
102
        if (getMessage() != null) {
103
            _hashCode += getMessage().hashCode();
104
        }
105
        __hashCodeCalc = false;
106
        return _hashCode;
107
    }
108
 
109
    // Type metadata
110
    private static org.apache.axis.description.TypeDesc typeDesc =
111
        new org.apache.axis.description.TypeDesc(Notification.class, true);
112
 
113
    static {
114
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
115
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
116
        elemField.setFieldName("code");
117
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Code"));
118
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
119
        elemField.setNillable(true);
120
        typeDesc.addFieldDesc(elemField);
121
        elemField = new org.apache.axis.description.ElementDesc();
122
        elemField.setFieldName("message");
123
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Message"));
124
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
125
        elemField.setNillable(true);
126
        typeDesc.addFieldDesc(elemField);
127
    }
128
 
129
    /**
130
     * Return type metadata object
131
     */
132
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
133
        return typeDesc;
134
    }
135
 
136
    /**
137
     * Get Custom Serializer
138
     */
139
    public static org.apache.axis.encoding.Serializer getSerializer(
140
           java.lang.String mechType, 
141
           java.lang.Class _javaType,  
142
           javax.xml.namespace.QName _xmlType) {
143
        return 
144
          new  org.apache.axis.encoding.ser.BeanSerializer(
145
            _javaType, _xmlType, typeDesc);
146
    }
147
 
148
    /**
149
     * Get Custom Deserializer
150
     */
151
    public static org.apache.axis.encoding.Deserializer getDeserializer(
152
           java.lang.String mechType, 
153
           java.lang.Class _javaType,  
154
           javax.xml.namespace.QName _xmlType) {
155
        return 
156
          new  org.apache.axis.encoding.ser.BeanDeserializer(
157
            _javaType, _xmlType, typeDesc);
158
    }
159
 
160
}