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