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