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