| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* PendingShipmentDetail.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 |
* This information describes the kind of pending shipment being requested.
|
|
|
13 |
*/
|
|
|
14 |
public class PendingShipmentDetail implements java.io.Serializable {
|
|
|
15 |
/* Identifies the type of FedEx pending shipment */
|
|
|
16 |
private com.fedex.ship.stub.PendingShipmentType type;
|
|
|
17 |
|
|
|
18 |
/* Date after which the pending shipment will no longer be available
|
|
|
19 |
* for completion. */
|
|
|
20 |
private java.util.Date expirationDate;
|
|
|
21 |
|
|
|
22 |
/* Only used with type of EMAIL. */
|
|
|
23 |
private com.fedex.ship.stub.EMailLabelDetail emailLabelDetail;
|
|
|
24 |
|
|
|
25 |
public PendingShipmentDetail() {
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
public PendingShipmentDetail(
|
|
|
29 |
com.fedex.ship.stub.PendingShipmentType type,
|
|
|
30 |
java.util.Date expirationDate,
|
|
|
31 |
com.fedex.ship.stub.EMailLabelDetail emailLabelDetail) {
|
|
|
32 |
this.type = type;
|
|
|
33 |
this.expirationDate = expirationDate;
|
|
|
34 |
this.emailLabelDetail = emailLabelDetail;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
/**
|
|
|
39 |
* Gets the type value for this PendingShipmentDetail.
|
|
|
40 |
*
|
|
|
41 |
* @return type * Identifies the type of FedEx pending shipment
|
|
|
42 |
*/
|
|
|
43 |
public com.fedex.ship.stub.PendingShipmentType getType() {
|
|
|
44 |
return type;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/**
|
|
|
49 |
* Sets the type value for this PendingShipmentDetail.
|
|
|
50 |
*
|
|
|
51 |
* @param type * Identifies the type of FedEx pending shipment
|
|
|
52 |
*/
|
|
|
53 |
public void setType(com.fedex.ship.stub.PendingShipmentType type) {
|
|
|
54 |
this.type = type;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
/**
|
|
|
59 |
* Gets the expirationDate value for this PendingShipmentDetail.
|
|
|
60 |
*
|
|
|
61 |
* @return expirationDate * Date after which the pending shipment will no longer be available
|
|
|
62 |
* for completion.
|
|
|
63 |
*/
|
|
|
64 |
public java.util.Date getExpirationDate() {
|
|
|
65 |
return expirationDate;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Sets the expirationDate value for this PendingShipmentDetail.
|
|
|
71 |
*
|
|
|
72 |
* @param expirationDate * Date after which the pending shipment will no longer be available
|
|
|
73 |
* for completion.
|
|
|
74 |
*/
|
|
|
75 |
public void setExpirationDate(java.util.Date expirationDate) {
|
|
|
76 |
this.expirationDate = expirationDate;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
/**
|
|
|
81 |
* Gets the emailLabelDetail value for this PendingShipmentDetail.
|
|
|
82 |
*
|
|
|
83 |
* @return emailLabelDetail * Only used with type of EMAIL.
|
|
|
84 |
*/
|
|
|
85 |
public com.fedex.ship.stub.EMailLabelDetail getEmailLabelDetail() {
|
|
|
86 |
return emailLabelDetail;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
/**
|
|
|
91 |
* Sets the emailLabelDetail value for this PendingShipmentDetail.
|
|
|
92 |
*
|
|
|
93 |
* @param emailLabelDetail * Only used with type of EMAIL.
|
|
|
94 |
*/
|
|
|
95 |
public void setEmailLabelDetail(com.fedex.ship.stub.EMailLabelDetail emailLabelDetail) {
|
|
|
96 |
this.emailLabelDetail = emailLabelDetail;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
private java.lang.Object __equalsCalc = null;
|
|
|
100 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
101 |
if (!(obj instanceof PendingShipmentDetail)) return false;
|
|
|
102 |
PendingShipmentDetail other = (PendingShipmentDetail) obj;
|
|
|
103 |
if (obj == null) return false;
|
|
|
104 |
if (this == obj) return true;
|
|
|
105 |
if (__equalsCalc != null) {
|
|
|
106 |
return (__equalsCalc == obj);
|
|
|
107 |
}
|
|
|
108 |
__equalsCalc = obj;
|
|
|
109 |
boolean _equals;
|
|
|
110 |
_equals = true &&
|
|
|
111 |
((this.type==null && other.getType()==null) ||
|
|
|
112 |
(this.type!=null &&
|
|
|
113 |
this.type.equals(other.getType()))) &&
|
|
|
114 |
((this.expirationDate==null && other.getExpirationDate()==null) ||
|
|
|
115 |
(this.expirationDate!=null &&
|
|
|
116 |
this.expirationDate.equals(other.getExpirationDate()))) &&
|
|
|
117 |
((this.emailLabelDetail==null && other.getEmailLabelDetail()==null) ||
|
|
|
118 |
(this.emailLabelDetail!=null &&
|
|
|
119 |
this.emailLabelDetail.equals(other.getEmailLabelDetail())));
|
|
|
120 |
__equalsCalc = null;
|
|
|
121 |
return _equals;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
private boolean __hashCodeCalc = false;
|
|
|
125 |
public synchronized int hashCode() {
|
|
|
126 |
if (__hashCodeCalc) {
|
|
|
127 |
return 0;
|
|
|
128 |
}
|
|
|
129 |
__hashCodeCalc = true;
|
|
|
130 |
int _hashCode = 1;
|
|
|
131 |
if (getType() != null) {
|
|
|
132 |
_hashCode += getType().hashCode();
|
|
|
133 |
}
|
|
|
134 |
if (getExpirationDate() != null) {
|
|
|
135 |
_hashCode += getExpirationDate().hashCode();
|
|
|
136 |
}
|
|
|
137 |
if (getEmailLabelDetail() != null) {
|
|
|
138 |
_hashCode += getEmailLabelDetail().hashCode();
|
|
|
139 |
}
|
|
|
140 |
__hashCodeCalc = false;
|
|
|
141 |
return _hashCode;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
// Type metadata
|
|
|
145 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
146 |
new org.apache.axis.description.TypeDesc(PendingShipmentDetail.class, true);
|
|
|
147 |
|
|
|
148 |
static {
|
|
|
149 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PendingShipmentDetail"));
|
|
|
150 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
151 |
elemField.setFieldName("type");
|
|
|
152 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Type"));
|
|
|
153 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PendingShipmentType"));
|
|
|
154 |
elemField.setNillable(false);
|
|
|
155 |
typeDesc.addFieldDesc(elemField);
|
|
|
156 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
157 |
elemField.setFieldName("expirationDate");
|
|
|
158 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ExpirationDate"));
|
|
|
159 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "date"));
|
|
|
160 |
elemField.setMinOccurs(0);
|
|
|
161 |
elemField.setNillable(false);
|
|
|
162 |
typeDesc.addFieldDesc(elemField);
|
|
|
163 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
164 |
elemField.setFieldName("emailLabelDetail");
|
|
|
165 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EmailLabelDetail"));
|
|
|
166 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailLabelDetail"));
|
|
|
167 |
elemField.setMinOccurs(0);
|
|
|
168 |
elemField.setNillable(false);
|
|
|
169 |
typeDesc.addFieldDesc(elemField);
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
/**
|
|
|
173 |
* Return type metadata object
|
|
|
174 |
*/
|
|
|
175 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
176 |
return typeDesc;
|
|
|
177 |
}
|
|
|
178 |
|
|
|
179 |
/**
|
|
|
180 |
* Get Custom Serializer
|
|
|
181 |
*/
|
|
|
182 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
183 |
java.lang.String mechType,
|
|
|
184 |
java.lang.Class _javaType,
|
|
|
185 |
javax.xml.namespace.QName _xmlType) {
|
|
|
186 |
return
|
|
|
187 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
188 |
_javaType, _xmlType, typeDesc);
|
|
|
189 |
}
|
|
|
190 |
|
|
|
191 |
/**
|
|
|
192 |
* Get Custom Deserializer
|
|
|
193 |
*/
|
|
|
194 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
195 |
java.lang.String mechType,
|
|
|
196 |
java.lang.Class _javaType,
|
|
|
197 |
javax.xml.namespace.QName _xmlType) {
|
|
|
198 |
return
|
|
|
199 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
200 |
_javaType, _xmlType, typeDesc);
|
|
|
201 |
}
|
|
|
202 |
|
|
|
203 |
}
|