| 20640 |
amit.gupta |
1 |
/**
|
|
|
2 |
* Money.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.aramex.stub;
|
|
|
9 |
|
|
|
10 |
public class Money implements java.io.Serializable {
|
| 22577 |
amit.gupta |
11 |
@Override
|
|
|
12 |
public String toString() {
|
|
|
13 |
return "Money [currencyCode=" + currencyCode + ", value=" + value + "]";
|
|
|
14 |
}
|
| 20640 |
amit.gupta |
15 |
|
| 22577 |
amit.gupta |
16 |
private java.lang.String currencyCode;
|
|
|
17 |
|
| 20640 |
amit.gupta |
18 |
private double value;
|
|
|
19 |
|
|
|
20 |
public Money() {
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
public Money(
|
|
|
24 |
java.lang.String currencyCode,
|
|
|
25 |
double value) {
|
|
|
26 |
this.currencyCode = currencyCode;
|
|
|
27 |
this.value = value;
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
/**
|
|
|
32 |
* Gets the currencyCode value for this Money.
|
|
|
33 |
*
|
|
|
34 |
* @return currencyCode
|
|
|
35 |
*/
|
|
|
36 |
public java.lang.String getCurrencyCode() {
|
|
|
37 |
return currencyCode;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
/**
|
|
|
42 |
* Sets the currencyCode value for this Money.
|
|
|
43 |
*
|
|
|
44 |
* @param currencyCode
|
|
|
45 |
*/
|
|
|
46 |
public void setCurrencyCode(java.lang.String currencyCode) {
|
|
|
47 |
this.currencyCode = currencyCode;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
/**
|
|
|
52 |
* Gets the value value for this Money.
|
|
|
53 |
*
|
|
|
54 |
* @return value
|
|
|
55 |
*/
|
|
|
56 |
public double getValue() {
|
|
|
57 |
return value;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
/**
|
|
|
62 |
* Sets the value value for this Money.
|
|
|
63 |
*
|
|
|
64 |
* @param value
|
|
|
65 |
*/
|
|
|
66 |
public void setValue(double value) {
|
|
|
67 |
this.value = value;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
private java.lang.Object __equalsCalc = null;
|
|
|
71 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
72 |
if (!(obj instanceof Money)) return false;
|
|
|
73 |
Money other = (Money) obj;
|
|
|
74 |
if (obj == null) return false;
|
|
|
75 |
if (this == obj) return true;
|
|
|
76 |
if (__equalsCalc != null) {
|
|
|
77 |
return (__equalsCalc == obj);
|
|
|
78 |
}
|
|
|
79 |
__equalsCalc = obj;
|
|
|
80 |
boolean _equals;
|
|
|
81 |
_equals = true &&
|
|
|
82 |
((this.currencyCode==null && other.getCurrencyCode()==null) ||
|
|
|
83 |
(this.currencyCode!=null &&
|
|
|
84 |
this.currencyCode.equals(other.getCurrencyCode()))) &&
|
|
|
85 |
this.value == other.getValue();
|
|
|
86 |
__equalsCalc = null;
|
|
|
87 |
return _equals;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
private boolean __hashCodeCalc = false;
|
|
|
91 |
public synchronized int hashCode() {
|
|
|
92 |
if (__hashCodeCalc) {
|
|
|
93 |
return 0;
|
|
|
94 |
}
|
|
|
95 |
__hashCodeCalc = true;
|
|
|
96 |
int _hashCode = 1;
|
|
|
97 |
if (getCurrencyCode() != null) {
|
|
|
98 |
_hashCode += getCurrencyCode().hashCode();
|
|
|
99 |
}
|
|
|
100 |
_hashCode += new Double(getValue()).hashCode();
|
|
|
101 |
__hashCodeCalc = false;
|
|
|
102 |
return _hashCode;
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
// Type metadata
|
|
|
106 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
107 |
new org.apache.axis.description.TypeDesc(Money.class, true);
|
|
|
108 |
|
|
|
109 |
static {
|
|
|
110 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Money"));
|
|
|
111 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
112 |
elemField.setFieldName("currencyCode");
|
|
|
113 |
elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "CurrencyCode"));
|
|
|
114 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
115 |
elemField.setNillable(true);
|
|
|
116 |
typeDesc.addFieldDesc(elemField);
|
|
|
117 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
118 |
elemField.setFieldName("value");
|
|
|
119 |
elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Value"));
|
|
|
120 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
|
|
|
121 |
elemField.setNillable(false);
|
|
|
122 |
typeDesc.addFieldDesc(elemField);
|
|
|
123 |
}
|
|
|
124 |
|
|
|
125 |
/**
|
|
|
126 |
* Return type metadata object
|
|
|
127 |
*/
|
|
|
128 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
129 |
return typeDesc;
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
/**
|
|
|
133 |
* Get Custom Serializer
|
|
|
134 |
*/
|
|
|
135 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
136 |
java.lang.String mechType,
|
|
|
137 |
java.lang.Class _javaType,
|
|
|
138 |
javax.xml.namespace.QName _xmlType) {
|
|
|
139 |
return
|
|
|
140 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
141 |
_javaType, _xmlType, typeDesc);
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
/**
|
|
|
145 |
* Get Custom Deserializer
|
|
|
146 |
*/
|
|
|
147 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
148 |
java.lang.String mechType,
|
|
|
149 |
java.lang.Class _javaType,
|
|
|
150 |
javax.xml.namespace.QName _xmlType) {
|
|
|
151 |
return
|
|
|
152 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
153 |
_javaType, _xmlType, typeDesc);
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
}
|