Subversion Repositories SmartDukaan

Rev

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