| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* EMailNotificationDetail.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 |
* Information describing email notifications that will be sent in
|
|
|
13 |
* relation to events that occur during package movement
|
|
|
14 |
*/
|
|
|
15 |
public class EMailNotificationDetail implements java.io.Serializable {
|
|
|
16 |
/* Specifies whether/how email notifications are grouped. */
|
|
|
17 |
private com.fedex.ship.stub.EMailNotificationAggregationType aggregationType;
|
|
|
18 |
|
|
|
19 |
/* A message that will be included in the email notifications */
|
|
|
20 |
private java.lang.String personalMessage;
|
|
|
21 |
|
|
|
22 |
/* Information describing the destination of the email, format
|
|
|
23 |
* of the email and events to be notified on */
|
|
|
24 |
private com.fedex.ship.stub.EMailNotificationRecipient[] recipients;
|
|
|
25 |
|
|
|
26 |
public EMailNotificationDetail() {
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
public EMailNotificationDetail(
|
|
|
30 |
com.fedex.ship.stub.EMailNotificationAggregationType aggregationType,
|
|
|
31 |
java.lang.String personalMessage,
|
|
|
32 |
com.fedex.ship.stub.EMailNotificationRecipient[] recipients) {
|
|
|
33 |
this.aggregationType = aggregationType;
|
|
|
34 |
this.personalMessage = personalMessage;
|
|
|
35 |
this.recipients = recipients;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
/**
|
|
|
40 |
* Gets the aggregationType value for this EMailNotificationDetail.
|
|
|
41 |
*
|
|
|
42 |
* @return aggregationType * Specifies whether/how email notifications are grouped.
|
|
|
43 |
*/
|
|
|
44 |
public com.fedex.ship.stub.EMailNotificationAggregationType getAggregationType() {
|
|
|
45 |
return aggregationType;
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
/**
|
|
|
50 |
* Sets the aggregationType value for this EMailNotificationDetail.
|
|
|
51 |
*
|
|
|
52 |
* @param aggregationType * Specifies whether/how email notifications are grouped.
|
|
|
53 |
*/
|
|
|
54 |
public void setAggregationType(com.fedex.ship.stub.EMailNotificationAggregationType aggregationType) {
|
|
|
55 |
this.aggregationType = aggregationType;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
/**
|
|
|
60 |
* Gets the personalMessage value for this EMailNotificationDetail.
|
|
|
61 |
*
|
|
|
62 |
* @return personalMessage * A message that will be included in the email notifications
|
|
|
63 |
*/
|
|
|
64 |
public java.lang.String getPersonalMessage() {
|
|
|
65 |
return personalMessage;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Sets the personalMessage value for this EMailNotificationDetail.
|
|
|
71 |
*
|
|
|
72 |
* @param personalMessage * A message that will be included in the email notifications
|
|
|
73 |
*/
|
|
|
74 |
public void setPersonalMessage(java.lang.String personalMessage) {
|
|
|
75 |
this.personalMessage = personalMessage;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
/**
|
|
|
80 |
* Gets the recipients value for this EMailNotificationDetail.
|
|
|
81 |
*
|
|
|
82 |
* @return recipients * Information describing the destination of the email, format
|
|
|
83 |
* of the email and events to be notified on
|
|
|
84 |
*/
|
|
|
85 |
public com.fedex.ship.stub.EMailNotificationRecipient[] getRecipients() {
|
|
|
86 |
return recipients;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
/**
|
|
|
91 |
* Sets the recipients value for this EMailNotificationDetail.
|
|
|
92 |
*
|
|
|
93 |
* @param recipients * Information describing the destination of the email, format
|
|
|
94 |
* of the email and events to be notified on
|
|
|
95 |
*/
|
|
|
96 |
public void setRecipients(com.fedex.ship.stub.EMailNotificationRecipient[] recipients) {
|
|
|
97 |
this.recipients = recipients;
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
public com.fedex.ship.stub.EMailNotificationRecipient getRecipients(int i) {
|
|
|
101 |
return this.recipients[i];
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
public void setRecipients(int i, com.fedex.ship.stub.EMailNotificationRecipient _value) {
|
|
|
105 |
this.recipients[i] = _value;
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
private java.lang.Object __equalsCalc = null;
|
|
|
109 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
110 |
if (!(obj instanceof EMailNotificationDetail)) return false;
|
|
|
111 |
EMailNotificationDetail other = (EMailNotificationDetail) obj;
|
|
|
112 |
if (obj == null) return false;
|
|
|
113 |
if (this == obj) return true;
|
|
|
114 |
if (__equalsCalc != null) {
|
|
|
115 |
return (__equalsCalc == obj);
|
|
|
116 |
}
|
|
|
117 |
__equalsCalc = obj;
|
|
|
118 |
boolean _equals;
|
|
|
119 |
_equals = true &&
|
|
|
120 |
((this.aggregationType==null && other.getAggregationType()==null) ||
|
|
|
121 |
(this.aggregationType!=null &&
|
|
|
122 |
this.aggregationType.equals(other.getAggregationType()))) &&
|
|
|
123 |
((this.personalMessage==null && other.getPersonalMessage()==null) ||
|
|
|
124 |
(this.personalMessage!=null &&
|
|
|
125 |
this.personalMessage.equals(other.getPersonalMessage()))) &&
|
|
|
126 |
((this.recipients==null && other.getRecipients()==null) ||
|
|
|
127 |
(this.recipients!=null &&
|
|
|
128 |
java.util.Arrays.equals(this.recipients, other.getRecipients())));
|
|
|
129 |
__equalsCalc = null;
|
|
|
130 |
return _equals;
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
private boolean __hashCodeCalc = false;
|
|
|
134 |
public synchronized int hashCode() {
|
|
|
135 |
if (__hashCodeCalc) {
|
|
|
136 |
return 0;
|
|
|
137 |
}
|
|
|
138 |
__hashCodeCalc = true;
|
|
|
139 |
int _hashCode = 1;
|
|
|
140 |
if (getAggregationType() != null) {
|
|
|
141 |
_hashCode += getAggregationType().hashCode();
|
|
|
142 |
}
|
|
|
143 |
if (getPersonalMessage() != null) {
|
|
|
144 |
_hashCode += getPersonalMessage().hashCode();
|
|
|
145 |
}
|
|
|
146 |
if (getRecipients() != null) {
|
|
|
147 |
for (int i=0;
|
|
|
148 |
i<java.lang.reflect.Array.getLength(getRecipients());
|
|
|
149 |
i++) {
|
|
|
150 |
java.lang.Object obj = java.lang.reflect.Array.get(getRecipients(), i);
|
|
|
151 |
if (obj != null &&
|
|
|
152 |
!obj.getClass().isArray()) {
|
|
|
153 |
_hashCode += obj.hashCode();
|
|
|
154 |
}
|
|
|
155 |
}
|
|
|
156 |
}
|
|
|
157 |
__hashCodeCalc = false;
|
|
|
158 |
return _hashCode;
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
// Type metadata
|
|
|
162 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
163 |
new org.apache.axis.description.TypeDesc(EMailNotificationDetail.class, true);
|
|
|
164 |
|
|
|
165 |
static {
|
|
|
166 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailNotificationDetail"));
|
|
|
167 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
168 |
elemField.setFieldName("aggregationType");
|
|
|
169 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AggregationType"));
|
|
|
170 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailNotificationAggregationType"));
|
|
|
171 |
elemField.setMinOccurs(0);
|
|
|
172 |
elemField.setNillable(false);
|
|
|
173 |
typeDesc.addFieldDesc(elemField);
|
|
|
174 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
175 |
elemField.setFieldName("personalMessage");
|
|
|
176 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PersonalMessage"));
|
|
|
177 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
178 |
elemField.setMinOccurs(0);
|
|
|
179 |
elemField.setNillable(false);
|
|
|
180 |
typeDesc.addFieldDesc(elemField);
|
|
|
181 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
182 |
elemField.setFieldName("recipients");
|
|
|
183 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Recipients"));
|
|
|
184 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailNotificationRecipient"));
|
|
|
185 |
elemField.setNillable(false);
|
|
|
186 |
typeDesc.addFieldDesc(elemField);
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
/**
|
|
|
190 |
* Return type metadata object
|
|
|
191 |
*/
|
|
|
192 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
193 |
return typeDesc;
|
|
|
194 |
}
|
|
|
195 |
|
|
|
196 |
/**
|
|
|
197 |
* Get Custom Serializer
|
|
|
198 |
*/
|
|
|
199 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
200 |
java.lang.String mechType,
|
|
|
201 |
java.lang.Class _javaType,
|
|
|
202 |
javax.xml.namespace.QName _xmlType) {
|
|
|
203 |
return
|
|
|
204 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
205 |
_javaType, _xmlType, typeDesc);
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
/**
|
|
|
209 |
* Get Custom Deserializer
|
|
|
210 |
*/
|
|
|
211 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
212 |
java.lang.String mechType,
|
|
|
213 |
java.lang.Class _javaType,
|
|
|
214 |
javax.xml.namespace.QName _xmlType) {
|
|
|
215 |
return
|
|
|
216 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
217 |
_javaType, _xmlType, typeDesc);
|
|
|
218 |
}
|
|
|
219 |
|
|
|
220 |
}
|