| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* EMailNotificationRecipient.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 FedEx email notification recipient.
|
|
|
13 |
*/
|
|
|
14 |
public class EMailNotificationRecipient implements java.io.Serializable {
|
|
|
15 |
/* Identifies the relationship this email recipient has to the
|
|
|
16 |
* shipment. */
|
|
|
17 |
private com.fedex.ship.stub.EMailNotificationRecipientType EMailNotificationRecipientType;
|
|
|
18 |
|
|
|
19 |
/* The email address to send the notification to */
|
|
|
20 |
private java.lang.String EMailAddress;
|
|
|
21 |
|
|
|
22 |
/* The types of email notifications being requested for this recipient. */
|
|
|
23 |
private com.fedex.ship.stub.EMailNotificationEventType[] notificationEventsRequested;
|
|
|
24 |
|
|
|
25 |
/* The format of the email notification. */
|
|
|
26 |
private com.fedex.ship.stub.EMailNotificationFormatType format;
|
|
|
27 |
|
|
|
28 |
/* The language/locale to be used in this email notification. */
|
|
|
29 |
private com.fedex.ship.stub.Localization localization;
|
|
|
30 |
|
|
|
31 |
public EMailNotificationRecipient() {
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public EMailNotificationRecipient(
|
|
|
35 |
com.fedex.ship.stub.EMailNotificationRecipientType EMailNotificationRecipientType,
|
|
|
36 |
java.lang.String EMailAddress,
|
|
|
37 |
com.fedex.ship.stub.EMailNotificationEventType[] notificationEventsRequested,
|
|
|
38 |
com.fedex.ship.stub.EMailNotificationFormatType format,
|
|
|
39 |
com.fedex.ship.stub.Localization localization) {
|
|
|
40 |
this.EMailNotificationRecipientType = EMailNotificationRecipientType;
|
|
|
41 |
this.EMailAddress = EMailAddress;
|
|
|
42 |
this.notificationEventsRequested = notificationEventsRequested;
|
|
|
43 |
this.format = format;
|
|
|
44 |
this.localization = localization;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/**
|
|
|
49 |
* Gets the EMailNotificationRecipientType value for this EMailNotificationRecipient.
|
|
|
50 |
*
|
|
|
51 |
* @return EMailNotificationRecipientType * Identifies the relationship this email recipient has to the
|
|
|
52 |
* shipment.
|
|
|
53 |
*/
|
|
|
54 |
public com.fedex.ship.stub.EMailNotificationRecipientType getEMailNotificationRecipientType() {
|
|
|
55 |
return EMailNotificationRecipientType;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
/**
|
|
|
60 |
* Sets the EMailNotificationRecipientType value for this EMailNotificationRecipient.
|
|
|
61 |
*
|
|
|
62 |
* @param EMailNotificationRecipientType * Identifies the relationship this email recipient has to the
|
|
|
63 |
* shipment.
|
|
|
64 |
*/
|
|
|
65 |
public void setEMailNotificationRecipientType(com.fedex.ship.stub.EMailNotificationRecipientType EMailNotificationRecipientType) {
|
|
|
66 |
this.EMailNotificationRecipientType = EMailNotificationRecipientType;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
/**
|
|
|
71 |
* Gets the EMailAddress value for this EMailNotificationRecipient.
|
|
|
72 |
*
|
|
|
73 |
* @return EMailAddress * The email address to send the notification to
|
|
|
74 |
*/
|
|
|
75 |
public java.lang.String getEMailAddress() {
|
|
|
76 |
return EMailAddress;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
/**
|
|
|
81 |
* Sets the EMailAddress value for this EMailNotificationRecipient.
|
|
|
82 |
*
|
|
|
83 |
* @param EMailAddress * The email address to send the notification to
|
|
|
84 |
*/
|
|
|
85 |
public void setEMailAddress(java.lang.String EMailAddress) {
|
|
|
86 |
this.EMailAddress = EMailAddress;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
/**
|
|
|
91 |
* Gets the notificationEventsRequested value for this EMailNotificationRecipient.
|
|
|
92 |
*
|
|
|
93 |
* @return notificationEventsRequested * The types of email notifications being requested for this recipient.
|
|
|
94 |
*/
|
|
|
95 |
public com.fedex.ship.stub.EMailNotificationEventType[] getNotificationEventsRequested() {
|
|
|
96 |
return notificationEventsRequested;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
/**
|
|
|
101 |
* Sets the notificationEventsRequested value for this EMailNotificationRecipient.
|
|
|
102 |
*
|
|
|
103 |
* @param notificationEventsRequested * The types of email notifications being requested for this recipient.
|
|
|
104 |
*/
|
|
|
105 |
public void setNotificationEventsRequested(com.fedex.ship.stub.EMailNotificationEventType[] notificationEventsRequested) {
|
|
|
106 |
this.notificationEventsRequested = notificationEventsRequested;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
public com.fedex.ship.stub.EMailNotificationEventType getNotificationEventsRequested(int i) {
|
|
|
110 |
return this.notificationEventsRequested[i];
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
public void setNotificationEventsRequested(int i, com.fedex.ship.stub.EMailNotificationEventType _value) {
|
|
|
114 |
this.notificationEventsRequested[i] = _value;
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
/**
|
|
|
119 |
* Gets the format value for this EMailNotificationRecipient.
|
|
|
120 |
*
|
|
|
121 |
* @return format * The format of the email notification.
|
|
|
122 |
*/
|
|
|
123 |
public com.fedex.ship.stub.EMailNotificationFormatType getFormat() {
|
|
|
124 |
return format;
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
|
|
|
128 |
/**
|
|
|
129 |
* Sets the format value for this EMailNotificationRecipient.
|
|
|
130 |
*
|
|
|
131 |
* @param format * The format of the email notification.
|
|
|
132 |
*/
|
|
|
133 |
public void setFormat(com.fedex.ship.stub.EMailNotificationFormatType format) {
|
|
|
134 |
this.format = format;
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
/**
|
|
|
139 |
* Gets the localization value for this EMailNotificationRecipient.
|
|
|
140 |
*
|
|
|
141 |
* @return localization * The language/locale to be used in this email notification.
|
|
|
142 |
*/
|
|
|
143 |
public com.fedex.ship.stub.Localization getLocalization() {
|
|
|
144 |
return localization;
|
|
|
145 |
}
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
/**
|
|
|
149 |
* Sets the localization value for this EMailNotificationRecipient.
|
|
|
150 |
*
|
|
|
151 |
* @param localization * The language/locale to be used in this email notification.
|
|
|
152 |
*/
|
|
|
153 |
public void setLocalization(com.fedex.ship.stub.Localization localization) {
|
|
|
154 |
this.localization = localization;
|
|
|
155 |
}
|
|
|
156 |
|
|
|
157 |
private java.lang.Object __equalsCalc = null;
|
|
|
158 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
159 |
if (!(obj instanceof EMailNotificationRecipient)) return false;
|
|
|
160 |
EMailNotificationRecipient other = (EMailNotificationRecipient) obj;
|
|
|
161 |
if (obj == null) return false;
|
|
|
162 |
if (this == obj) return true;
|
|
|
163 |
if (__equalsCalc != null) {
|
|
|
164 |
return (__equalsCalc == obj);
|
|
|
165 |
}
|
|
|
166 |
__equalsCalc = obj;
|
|
|
167 |
boolean _equals;
|
|
|
168 |
_equals = true &&
|
|
|
169 |
((this.EMailNotificationRecipientType==null && other.getEMailNotificationRecipientType()==null) ||
|
|
|
170 |
(this.EMailNotificationRecipientType!=null &&
|
|
|
171 |
this.EMailNotificationRecipientType.equals(other.getEMailNotificationRecipientType()))) &&
|
|
|
172 |
((this.EMailAddress==null && other.getEMailAddress()==null) ||
|
|
|
173 |
(this.EMailAddress!=null &&
|
|
|
174 |
this.EMailAddress.equals(other.getEMailAddress()))) &&
|
|
|
175 |
((this.notificationEventsRequested==null && other.getNotificationEventsRequested()==null) ||
|
|
|
176 |
(this.notificationEventsRequested!=null &&
|
|
|
177 |
java.util.Arrays.equals(this.notificationEventsRequested, other.getNotificationEventsRequested()))) &&
|
|
|
178 |
((this.format==null && other.getFormat()==null) ||
|
|
|
179 |
(this.format!=null &&
|
|
|
180 |
this.format.equals(other.getFormat()))) &&
|
|
|
181 |
((this.localization==null && other.getLocalization()==null) ||
|
|
|
182 |
(this.localization!=null &&
|
|
|
183 |
this.localization.equals(other.getLocalization())));
|
|
|
184 |
__equalsCalc = null;
|
|
|
185 |
return _equals;
|
|
|
186 |
}
|
|
|
187 |
|
|
|
188 |
private boolean __hashCodeCalc = false;
|
|
|
189 |
public synchronized int hashCode() {
|
|
|
190 |
if (__hashCodeCalc) {
|
|
|
191 |
return 0;
|
|
|
192 |
}
|
|
|
193 |
__hashCodeCalc = true;
|
|
|
194 |
int _hashCode = 1;
|
|
|
195 |
if (getEMailNotificationRecipientType() != null) {
|
|
|
196 |
_hashCode += getEMailNotificationRecipientType().hashCode();
|
|
|
197 |
}
|
|
|
198 |
if (getEMailAddress() != null) {
|
|
|
199 |
_hashCode += getEMailAddress().hashCode();
|
|
|
200 |
}
|
|
|
201 |
if (getNotificationEventsRequested() != null) {
|
|
|
202 |
for (int i=0;
|
|
|
203 |
i<java.lang.reflect.Array.getLength(getNotificationEventsRequested());
|
|
|
204 |
i++) {
|
|
|
205 |
java.lang.Object obj = java.lang.reflect.Array.get(getNotificationEventsRequested(), i);
|
|
|
206 |
if (obj != null &&
|
|
|
207 |
!obj.getClass().isArray()) {
|
|
|
208 |
_hashCode += obj.hashCode();
|
|
|
209 |
}
|
|
|
210 |
}
|
|
|
211 |
}
|
|
|
212 |
if (getFormat() != null) {
|
|
|
213 |
_hashCode += getFormat().hashCode();
|
|
|
214 |
}
|
|
|
215 |
if (getLocalization() != null) {
|
|
|
216 |
_hashCode += getLocalization().hashCode();
|
|
|
217 |
}
|
|
|
218 |
__hashCodeCalc = false;
|
|
|
219 |
return _hashCode;
|
|
|
220 |
}
|
|
|
221 |
|
|
|
222 |
// Type metadata
|
|
|
223 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
224 |
new org.apache.axis.description.TypeDesc(EMailNotificationRecipient.class, true);
|
|
|
225 |
|
|
|
226 |
static {
|
|
|
227 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailNotificationRecipient"));
|
|
|
228 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
229 |
elemField.setFieldName("EMailNotificationRecipientType");
|
|
|
230 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailNotificationRecipientType"));
|
|
|
231 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailNotificationRecipientType"));
|
|
|
232 |
elemField.setNillable(false);
|
|
|
233 |
typeDesc.addFieldDesc(elemField);
|
|
|
234 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
235 |
elemField.setFieldName("EMailAddress");
|
|
|
236 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailAddress"));
|
|
|
237 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
238 |
elemField.setNillable(false);
|
|
|
239 |
typeDesc.addFieldDesc(elemField);
|
|
|
240 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
241 |
elemField.setFieldName("notificationEventsRequested");
|
|
|
242 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NotificationEventsRequested"));
|
|
|
243 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailNotificationEventType"));
|
|
|
244 |
elemField.setMinOccurs(0);
|
|
|
245 |
elemField.setNillable(false);
|
|
|
246 |
elemField.setMaxOccursUnbounded(true);
|
|
|
247 |
typeDesc.addFieldDesc(elemField);
|
|
|
248 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
249 |
elemField.setFieldName("format");
|
|
|
250 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Format"));
|
|
|
251 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailNotificationFormatType"));
|
|
|
252 |
elemField.setNillable(false);
|
|
|
253 |
typeDesc.addFieldDesc(elemField);
|
|
|
254 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
255 |
elemField.setFieldName("localization");
|
|
|
256 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Localization"));
|
|
|
257 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Localization"));
|
|
|
258 |
elemField.setNillable(false);
|
|
|
259 |
typeDesc.addFieldDesc(elemField);
|
|
|
260 |
}
|
|
|
261 |
|
|
|
262 |
/**
|
|
|
263 |
* Return type metadata object
|
|
|
264 |
*/
|
|
|
265 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
266 |
return typeDesc;
|
|
|
267 |
}
|
|
|
268 |
|
|
|
269 |
/**
|
|
|
270 |
* Get Custom Serializer
|
|
|
271 |
*/
|
|
|
272 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
273 |
java.lang.String mechType,
|
|
|
274 |
java.lang.Class _javaType,
|
|
|
275 |
javax.xml.namespace.QName _xmlType) {
|
|
|
276 |
return
|
|
|
277 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
278 |
_javaType, _xmlType, typeDesc);
|
|
|
279 |
}
|
|
|
280 |
|
|
|
281 |
/**
|
|
|
282 |
* Get Custom Deserializer
|
|
|
283 |
*/
|
|
|
284 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
285 |
java.lang.String mechType,
|
|
|
286 |
java.lang.Class _javaType,
|
|
|
287 |
javax.xml.namespace.QName _xmlType) {
|
|
|
288 |
return
|
|
|
289 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
290 |
_javaType, _xmlType, typeDesc);
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
}
|