001: /**
002: * Currency.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package http.net.pointwsp.www.ws.finance;
007:
008: public class Currency implements java.io.Serializable {
009: private java.util.Calendar ratedate;
010: private java.lang.String code;
011: private int unit;
012: private java.math.BigDecimal rate;
013:
014: public Currency() {
015: }
016:
017: public java.util.Calendar getRatedate() {
018: return ratedate;
019: }
020:
021: public void setRatedate(java.util.Calendar ratedate) {
022: this .ratedate = ratedate;
023: }
024:
025: public java.lang.String getCode() {
026: return code;
027: }
028:
029: public void setCode(java.lang.String code) {
030: this .code = code;
031: }
032:
033: public int getUnit() {
034: return unit;
035: }
036:
037: public void setUnit(int unit) {
038: this .unit = unit;
039: }
040:
041: public java.math.BigDecimal getRate() {
042: return rate;
043: }
044:
045: public void setRate(java.math.BigDecimal rate) {
046: this .rate = rate;
047: }
048:
049: private java.lang.Object __equalsCalc = null;
050:
051: public synchronized boolean equals(java.lang.Object obj) {
052: if (!(obj instanceof Currency))
053: return false;
054: Currency other = (Currency) obj;
055: if (obj == null)
056: return false;
057: if (this == obj)
058: return true;
059: if (__equalsCalc != null) {
060: return (__equalsCalc == obj);
061: }
062: __equalsCalc = obj;
063: boolean _equals;
064: _equals = true
065: && ((ratedate == null && other.getRatedate() == null) || (ratedate != null && ratedate
066: .equals(other.getRatedate())))
067: && ((code == null && other.getCode() == null) || (code != null && code
068: .equals(other.getCode())))
069: && unit == other.getUnit()
070: && ((rate == null && other.getRate() == null) || (rate != null && rate
071: .equals(other.getRate())));
072: __equalsCalc = null;
073: return _equals;
074: }
075:
076: private boolean __hashCodeCalc = false;
077:
078: public synchronized int hashCode() {
079: if (__hashCodeCalc) {
080: return 0;
081: }
082: __hashCodeCalc = true;
083: int _hashCode = 1;
084: if (getRatedate() != null) {
085: _hashCode += getRatedate().hashCode();
086: }
087: if (getCode() != null) {
088: _hashCode += getCode().hashCode();
089: }
090: _hashCode += getUnit();
091: if (getRate() != null) {
092: _hashCode += getRate().hashCode();
093: }
094: __hashCodeCalc = false;
095: return _hashCode;
096: }
097:
098: // Type metadata
099: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
100: Currency.class);
101:
102: static {
103: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
104: field.setFieldName("ratedate");
105: field.setXmlName(new javax.xml.namespace.QName(
106: "http/www.pointwsp.net/ws/finance", "ratedate"));
107: field.setXmlType(new javax.xml.namespace.QName(
108: "http://www.w3.org/2001/XMLSchema", "dateTime"));
109: typeDesc.addFieldDesc(field);
110: field = new org.apache.axis.description.ElementDesc();
111: field.setFieldName("code");
112: field.setXmlName(new javax.xml.namespace.QName(
113: "http/www.pointwsp.net/ws/finance", "code"));
114: field.setXmlType(new javax.xml.namespace.QName(
115: "http://www.w3.org/2001/XMLSchema", "string"));
116: field.setMinOccursIs0(true);
117: typeDesc.addFieldDesc(field);
118: field = new org.apache.axis.description.ElementDesc();
119: field.setFieldName("unit");
120: field.setXmlName(new javax.xml.namespace.QName(
121: "http/www.pointwsp.net/ws/finance", "unit"));
122: field.setXmlType(new javax.xml.namespace.QName(
123: "http://www.w3.org/2001/XMLSchema", "int"));
124: typeDesc.addFieldDesc(field);
125: field = new org.apache.axis.description.ElementDesc();
126: field.setFieldName("rate");
127: field.setXmlName(new javax.xml.namespace.QName(
128: "http/www.pointwsp.net/ws/finance", "rate"));
129: field.setXmlType(new javax.xml.namespace.QName(
130: "http://www.w3.org/2001/XMLSchema", "decimal"));
131: typeDesc.addFieldDesc(field);
132: };
133:
134: /**
135: * Return type metadata object
136: */
137: public static org.apache.axis.description.TypeDesc getTypeDesc() {
138: return typeDesc;
139: }
140:
141: /**
142: * Get Custom Serializer
143: */
144: public static org.apache.axis.encoding.Serializer getSerializer(
145: java.lang.String mechType, java.lang.Class _javaType,
146: javax.xml.namespace.QName _xmlType) {
147: return new org.apache.axis.encoding.ser.BeanSerializer(
148: _javaType, _xmlType, typeDesc);
149: }
150:
151: /**
152: * Get Custom Deserializer
153: */
154: public static org.apache.axis.encoding.Deserializer getDeserializer(
155: java.lang.String mechType, java.lang.Class _javaType,
156: javax.xml.namespace.QName _xmlType) {
157: return new org.apache.axis.encoding.ser.BeanDeserializer(
158: _javaType, _xmlType, typeDesc);
159: }
160:
161: }
|