| 7908 |
manish.sha |
1 |
/**
|
|
|
2 |
* TrackSplitShipmentPart.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.track.stub;
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
/**
|
|
|
12 |
* Used when a cargo shipment is split across vehicles. This is used
|
|
|
13 |
* to give the status of each part of the shipment.
|
|
|
14 |
*/
|
|
|
15 |
public class TrackSplitShipmentPart implements java.io.Serializable {
|
|
|
16 |
/* The number of pieces in this part. */
|
|
|
17 |
private org.apache.axis.types.PositiveInteger pieceCount;
|
|
|
18 |
|
|
|
19 |
/* The date and time this status began. */
|
|
|
20 |
private java.util.Calendar timestamp;
|
|
|
21 |
|
|
|
22 |
/* A code that identifies this type of status. */
|
|
|
23 |
private java.lang.String statusCode;
|
|
|
24 |
|
|
|
25 |
/* A human-readable description of this status. */
|
|
|
26 |
private java.lang.String statusDescription;
|
|
|
27 |
|
|
|
28 |
public TrackSplitShipmentPart() {
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
public TrackSplitShipmentPart(
|
|
|
32 |
org.apache.axis.types.PositiveInteger pieceCount,
|
|
|
33 |
java.util.Calendar timestamp,
|
|
|
34 |
java.lang.String statusCode,
|
|
|
35 |
java.lang.String statusDescription) {
|
|
|
36 |
this.pieceCount = pieceCount;
|
|
|
37 |
this.timestamp = timestamp;
|
|
|
38 |
this.statusCode = statusCode;
|
|
|
39 |
this.statusDescription = statusDescription;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
/**
|
|
|
44 |
* Gets the pieceCount value for this TrackSplitShipmentPart.
|
|
|
45 |
*
|
|
|
46 |
* @return pieceCount * The number of pieces in this part.
|
|
|
47 |
*/
|
|
|
48 |
public org.apache.axis.types.PositiveInteger getPieceCount() {
|
|
|
49 |
return pieceCount;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
/**
|
|
|
54 |
* Sets the pieceCount value for this TrackSplitShipmentPart.
|
|
|
55 |
*
|
|
|
56 |
* @param pieceCount * The number of pieces in this part.
|
|
|
57 |
*/
|
|
|
58 |
public void setPieceCount(org.apache.axis.types.PositiveInteger pieceCount) {
|
|
|
59 |
this.pieceCount = pieceCount;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Gets the timestamp value for this TrackSplitShipmentPart.
|
|
|
65 |
*
|
|
|
66 |
* @return timestamp * The date and time this status began.
|
|
|
67 |
*/
|
|
|
68 |
public java.util.Calendar getTimestamp() {
|
|
|
69 |
return timestamp;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
/**
|
|
|
74 |
* Sets the timestamp value for this TrackSplitShipmentPart.
|
|
|
75 |
*
|
|
|
76 |
* @param timestamp * The date and time this status began.
|
|
|
77 |
*/
|
|
|
78 |
public void setTimestamp(java.util.Calendar timestamp) {
|
|
|
79 |
this.timestamp = timestamp;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
/**
|
|
|
84 |
* Gets the statusCode value for this TrackSplitShipmentPart.
|
|
|
85 |
*
|
|
|
86 |
* @return statusCode * A code that identifies this type of status.
|
|
|
87 |
*/
|
|
|
88 |
public java.lang.String getStatusCode() {
|
|
|
89 |
return statusCode;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
/**
|
|
|
94 |
* Sets the statusCode value for this TrackSplitShipmentPart.
|
|
|
95 |
*
|
|
|
96 |
* @param statusCode * A code that identifies this type of status.
|
|
|
97 |
*/
|
|
|
98 |
public void setStatusCode(java.lang.String statusCode) {
|
|
|
99 |
this.statusCode = statusCode;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
/**
|
|
|
104 |
* Gets the statusDescription value for this TrackSplitShipmentPart.
|
|
|
105 |
*
|
|
|
106 |
* @return statusDescription * A human-readable description of this status.
|
|
|
107 |
*/
|
|
|
108 |
public java.lang.String getStatusDescription() {
|
|
|
109 |
return statusDescription;
|
|
|
110 |
}
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
/**
|
|
|
114 |
* Sets the statusDescription value for this TrackSplitShipmentPart.
|
|
|
115 |
*
|
|
|
116 |
* @param statusDescription * A human-readable description of this status.
|
|
|
117 |
*/
|
|
|
118 |
public void setStatusDescription(java.lang.String statusDescription) {
|
|
|
119 |
this.statusDescription = statusDescription;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
private java.lang.Object __equalsCalc = null;
|
|
|
123 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
124 |
if (!(obj instanceof TrackSplitShipmentPart)) return false;
|
|
|
125 |
TrackSplitShipmentPart other = (TrackSplitShipmentPart) obj;
|
|
|
126 |
if (obj == null) return false;
|
|
|
127 |
if (this == obj) return true;
|
|
|
128 |
if (__equalsCalc != null) {
|
|
|
129 |
return (__equalsCalc == obj);
|
|
|
130 |
}
|
|
|
131 |
__equalsCalc = obj;
|
|
|
132 |
boolean _equals;
|
|
|
133 |
_equals = true &&
|
|
|
134 |
((this.pieceCount==null && other.getPieceCount()==null) ||
|
|
|
135 |
(this.pieceCount!=null &&
|
|
|
136 |
this.pieceCount.equals(other.getPieceCount()))) &&
|
|
|
137 |
((this.timestamp==null && other.getTimestamp()==null) ||
|
|
|
138 |
(this.timestamp!=null &&
|
|
|
139 |
this.timestamp.equals(other.getTimestamp()))) &&
|
|
|
140 |
((this.statusCode==null && other.getStatusCode()==null) ||
|
|
|
141 |
(this.statusCode!=null &&
|
|
|
142 |
this.statusCode.equals(other.getStatusCode()))) &&
|
|
|
143 |
((this.statusDescription==null && other.getStatusDescription()==null) ||
|
|
|
144 |
(this.statusDescription!=null &&
|
|
|
145 |
this.statusDescription.equals(other.getStatusDescription())));
|
|
|
146 |
__equalsCalc = null;
|
|
|
147 |
return _equals;
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
private boolean __hashCodeCalc = false;
|
|
|
151 |
public synchronized int hashCode() {
|
|
|
152 |
if (__hashCodeCalc) {
|
|
|
153 |
return 0;
|
|
|
154 |
}
|
|
|
155 |
__hashCodeCalc = true;
|
|
|
156 |
int _hashCode = 1;
|
|
|
157 |
if (getPieceCount() != null) {
|
|
|
158 |
_hashCode += getPieceCount().hashCode();
|
|
|
159 |
}
|
|
|
160 |
if (getTimestamp() != null) {
|
|
|
161 |
_hashCode += getTimestamp().hashCode();
|
|
|
162 |
}
|
|
|
163 |
if (getStatusCode() != null) {
|
|
|
164 |
_hashCode += getStatusCode().hashCode();
|
|
|
165 |
}
|
|
|
166 |
if (getStatusDescription() != null) {
|
|
|
167 |
_hashCode += getStatusDescription().hashCode();
|
|
|
168 |
}
|
|
|
169 |
__hashCodeCalc = false;
|
|
|
170 |
return _hashCode;
|
|
|
171 |
}
|
|
|
172 |
|
|
|
173 |
// Type metadata
|
|
|
174 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
175 |
new org.apache.axis.description.TypeDesc(TrackSplitShipmentPart.class, true);
|
|
|
176 |
|
|
|
177 |
static {
|
|
|
178 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TrackSplitShipmentPart"));
|
|
|
179 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
180 |
elemField.setFieldName("pieceCount");
|
|
|
181 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "PieceCount"));
|
|
|
182 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "positiveInteger"));
|
|
|
183 |
elemField.setMinOccurs(0);
|
|
|
184 |
elemField.setNillable(false);
|
|
|
185 |
typeDesc.addFieldDesc(elemField);
|
|
|
186 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
187 |
elemField.setFieldName("timestamp");
|
|
|
188 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Timestamp"));
|
|
|
189 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
|
|
|
190 |
elemField.setMinOccurs(0);
|
|
|
191 |
elemField.setNillable(false);
|
|
|
192 |
typeDesc.addFieldDesc(elemField);
|
|
|
193 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
194 |
elemField.setFieldName("statusCode");
|
|
|
195 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "StatusCode"));
|
|
|
196 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
197 |
elemField.setMinOccurs(0);
|
|
|
198 |
elemField.setNillable(false);
|
|
|
199 |
typeDesc.addFieldDesc(elemField);
|
|
|
200 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
201 |
elemField.setFieldName("statusDescription");
|
|
|
202 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "StatusDescription"));
|
|
|
203 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
204 |
elemField.setMinOccurs(0);
|
|
|
205 |
elemField.setNillable(false);
|
|
|
206 |
typeDesc.addFieldDesc(elemField);
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
/**
|
|
|
210 |
* Return type metadata object
|
|
|
211 |
*/
|
|
|
212 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
213 |
return typeDesc;
|
|
|
214 |
}
|
|
|
215 |
|
|
|
216 |
/**
|
|
|
217 |
* Get Custom Serializer
|
|
|
218 |
*/
|
|
|
219 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
220 |
java.lang.String mechType,
|
|
|
221 |
java.lang.Class _javaType,
|
|
|
222 |
javax.xml.namespace.QName _xmlType) {
|
|
|
223 |
return
|
|
|
224 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
225 |
_javaType, _xmlType, typeDesc);
|
|
|
226 |
}
|
|
|
227 |
|
|
|
228 |
/**
|
|
|
229 |
* Get Custom Deserializer
|
|
|
230 |
*/
|
|
|
231 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
232 |
java.lang.String mechType,
|
|
|
233 |
java.lang.Class _javaType,
|
|
|
234 |
javax.xml.namespace.QName _xmlType) {
|
|
|
235 |
return
|
|
|
236 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
237 |
_javaType, _xmlType, typeDesc);
|
|
|
238 |
}
|
|
|
239 |
|
|
|
240 |
}
|