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