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