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