Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
20640 amit.gupta 1
/**
2
 * Party.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 Party  implements java.io.Serializable {
22598 amit.gupta 11
    private java.lang.String reference1;
20640 amit.gupta 12
 
13
    private java.lang.String reference2;
14
 
15
    private java.lang.String accountNumber;
16
 
17
    private com.aramex.stub.Address partyAddress;
18
 
19
    private com.aramex.stub.Contact contact;
20
 
21
    public Party() {
22
    }
23
 
24
    public Party(
25
           java.lang.String reference1,
26
           java.lang.String reference2,
27
           java.lang.String accountNumber,
28
           com.aramex.stub.Address partyAddress,
29
           com.aramex.stub.Contact contact) {
30
           this.reference1 = reference1;
31
           this.reference2 = reference2;
32
           this.accountNumber = accountNumber;
33
           this.partyAddress = partyAddress;
34
           this.contact = contact;
35
    }
36
 
37
 
38
    /**
39
     * Gets the reference1 value for this Party.
40
     * 
41
     * @return reference1
42
     */
43
    public java.lang.String getReference1() {
44
        return reference1;
45
    }
46
 
47
 
48
    /**
49
     * Sets the reference1 value for this Party.
50
     * 
51
     * @param reference1
52
     */
53
    public void setReference1(java.lang.String reference1) {
54
        this.reference1 = reference1;
55
    }
56
 
57
 
58
    /**
59
     * Gets the reference2 value for this Party.
60
     * 
61
     * @return reference2
62
     */
63
    public java.lang.String getReference2() {
64
        return reference2;
65
    }
66
 
67
 
68
    /**
69
     * Sets the reference2 value for this Party.
70
     * 
71
     * @param reference2
72
     */
73
    public void setReference2(java.lang.String reference2) {
74
        this.reference2 = reference2;
75
    }
76
 
77
 
78
    /**
79
     * Gets the accountNumber value for this Party.
80
     * 
81
     * @return accountNumber
82
     */
83
    public java.lang.String getAccountNumber() {
84
        return accountNumber;
85
    }
86
 
87
 
88
    /**
89
     * Sets the accountNumber value for this Party.
90
     * 
91
     * @param accountNumber
92
     */
93
    public void setAccountNumber(java.lang.String accountNumber) {
94
        this.accountNumber = accountNumber;
95
    }
96
 
97
 
98
    /**
99
     * Gets the partyAddress value for this Party.
100
     * 
101
     * @return partyAddress
102
     */
103
    public com.aramex.stub.Address getPartyAddress() {
104
        return partyAddress;
105
    }
106
 
107
 
108
    /**
109
     * Sets the partyAddress value for this Party.
110
     * 
111
     * @param partyAddress
112
     */
113
    public void setPartyAddress(com.aramex.stub.Address partyAddress) {
114
        this.partyAddress = partyAddress;
115
    }
116
 
117
 
118
    /**
119
     * Gets the contact value for this Party.
120
     * 
121
     * @return contact
122
     */
123
    public com.aramex.stub.Contact getContact() {
124
        return contact;
125
    }
126
 
127
 
128
    /**
129
     * Sets the contact value for this Party.
130
     * 
131
     * @param contact
132
     */
133
    public void setContact(com.aramex.stub.Contact contact) {
134
        this.contact = contact;
135
    }
136
 
137
    private java.lang.Object __equalsCalc = null;
138
    public synchronized boolean equals(java.lang.Object obj) {
139
        if (!(obj instanceof Party)) return false;
140
        Party other = (Party) obj;
141
        if (obj == null) return false;
142
        if (this == obj) return true;
143
        if (__equalsCalc != null) {
144
            return (__equalsCalc == obj);
145
        }
146
        __equalsCalc = obj;
147
        boolean _equals;
148
        _equals = true && 
149
            ((this.reference1==null && other.getReference1()==null) || 
150
             (this.reference1!=null &&
151
              this.reference1.equals(other.getReference1()))) &&
152
            ((this.reference2==null && other.getReference2()==null) || 
153
             (this.reference2!=null &&
154
              this.reference2.equals(other.getReference2()))) &&
155
            ((this.accountNumber==null && other.getAccountNumber()==null) || 
156
             (this.accountNumber!=null &&
157
              this.accountNumber.equals(other.getAccountNumber()))) &&
158
            ((this.partyAddress==null && other.getPartyAddress()==null) || 
159
             (this.partyAddress!=null &&
160
              this.partyAddress.equals(other.getPartyAddress()))) &&
161
            ((this.contact==null && other.getContact()==null) || 
162
             (this.contact!=null &&
163
              this.contact.equals(other.getContact())));
164
        __equalsCalc = null;
165
        return _equals;
166
    }
167
 
168
    private boolean __hashCodeCalc = false;
169
    public synchronized int hashCode() {
170
        if (__hashCodeCalc) {
171
            return 0;
172
        }
173
        __hashCodeCalc = true;
174
        int _hashCode = 1;
175
        if (getReference1() != null) {
176
            _hashCode += getReference1().hashCode();
177
        }
178
        if (getReference2() != null) {
179
            _hashCode += getReference2().hashCode();
180
        }
181
        if (getAccountNumber() != null) {
182
            _hashCode += getAccountNumber().hashCode();
183
        }
184
        if (getPartyAddress() != null) {
185
            _hashCode += getPartyAddress().hashCode();
186
        }
187
        if (getContact() != null) {
188
            _hashCode += getContact().hashCode();
189
        }
190
        __hashCodeCalc = false;
191
        return _hashCode;
192
    }
193
 
194
    // Type metadata
195
    private static org.apache.axis.description.TypeDesc typeDesc =
196
        new org.apache.axis.description.TypeDesc(Party.class, true);
197
 
198
    static {
199
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Party"));
200
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
201
        elemField.setFieldName("reference1");
202
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Reference1"));
203
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
204
        elemField.setMinOccurs(0);
205
        elemField.setNillable(true);
206
        typeDesc.addFieldDesc(elemField);
207
        elemField = new org.apache.axis.description.ElementDesc();
208
        elemField.setFieldName("reference2");
209
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Reference2"));
210
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
211
        elemField.setMinOccurs(0);
212
        elemField.setNillable(true);
213
        typeDesc.addFieldDesc(elemField);
214
        elemField = new org.apache.axis.description.ElementDesc();
215
        elemField.setFieldName("accountNumber");
216
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "AccountNumber"));
217
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
218
        elemField.setMinOccurs(0);
219
        elemField.setNillable(true);
220
        typeDesc.addFieldDesc(elemField);
221
        elemField = new org.apache.axis.description.ElementDesc();
222
        elemField.setFieldName("partyAddress");
223
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "PartyAddress"));
224
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Address"));
225
        elemField.setNillable(true);
226
        typeDesc.addFieldDesc(elemField);
227
        elemField = new org.apache.axis.description.ElementDesc();
228
        elemField.setFieldName("contact");
229
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Contact"));
230
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Contact"));
231
        elemField.setNillable(true);
232
        typeDesc.addFieldDesc(elemField);
233
    }
234
 
235
    /**
236
     * Return type metadata object
237
     */
238
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
239
        return typeDesc;
240
    }
241
 
242
    /**
243
     * Get Custom Serializer
244
     */
245
    public static org.apache.axis.encoding.Serializer getSerializer(
246
           java.lang.String mechType, 
247
           java.lang.Class _javaType,  
248
           javax.xml.namespace.QName _xmlType) {
249
        return 
250
          new  org.apache.axis.encoding.ser.BeanSerializer(
251
            _javaType, _xmlType, typeDesc);
252
    }
253
 
254
    /**
255
     * Get Custom Deserializer
256
     */
257
    public static org.apache.axis.encoding.Deserializer getDeserializer(
258
           java.lang.String mechType, 
259
           java.lang.Class _javaType,  
260
           javax.xml.namespace.QName _xmlType) {
261
        return 
262
          new  org.apache.axis.encoding.ser.BeanDeserializer(
263
            _javaType, _xmlType, typeDesc);
264
    }
265
 
266
}