1 7 8 package http.net.pointwsp.www.ws.finance; 9 10 public class Currency implements java.io.Serializable { 11 private java.util.Calendar ratedate; 12 private java.lang.String code; 13 private int unit; 14 private java.math.BigDecimal rate; 15 16 public Currency() { 17 } 18 19 public java.util.Calendar getRatedate() { 20 return ratedate; 21 } 22 23 public void setRatedate(java.util.Calendar ratedate) { 24 this.ratedate = ratedate; 25 } 26 27 public java.lang.String getCode() { 28 return code; 29 } 30 31 public void setCode(java.lang.String code) { 32 this.code = code; 33 } 34 35 public int getUnit() { 36 return unit; 37 } 38 39 public void setUnit(int unit) { 40 this.unit = unit; 41 } 42 43 public java.math.BigDecimal getRate() { 44 return rate; 45 } 46 47 public void setRate(java.math.BigDecimal rate) { 48 this.rate = rate; 49 } 50 51 private java.lang.Object __equalsCalc = null; 52 public synchronized boolean equals(java.lang.Object obj) { 53 if (!(obj instanceof Currency)) return false; 54 Currency other = (Currency) obj; 55 if (obj == null) return false; 56 if (this == obj) return true; 57 if (__equalsCalc != null) { 58 return (__equalsCalc == obj); 59 } 60 __equalsCalc = obj; 61 boolean _equals; 62 _equals = true && 63 ((ratedate==null && other.getRatedate()==null) || 64 (ratedate!=null && 65 ratedate.equals(other.getRatedate()))) && 66 ((code==null && other.getCode()==null) || 67 (code!=null && 68 code.equals(other.getCode()))) && 69 unit == other.getUnit() && 70 ((rate==null && other.getRate()==null) || 71 (rate!=null && 72 rate.equals(other.getRate()))); 73 __equalsCalc = null; 74 return _equals; 75 } 76 77 private boolean __hashCodeCalc = false; 78 public synchronized int hashCode() { 79 if (__hashCodeCalc) { 80 return 0; 81 } 82 __hashCodeCalc = true; 83 int _hashCode = 1; 84 if (getRatedate() != null) { 85 _hashCode += getRatedate().hashCode(); 86 } 87 if (getCode() != null) { 88 _hashCode += getCode().hashCode(); 89 } 90 _hashCode += getUnit(); 91 if (getRate() != null) { 92 _hashCode += getRate().hashCode(); 93 } 94 __hashCodeCalc = false; 95 return _hashCode; 96 } 97 98 private static org.apache.axis.description.TypeDesc typeDesc = 100 new org.apache.axis.description.TypeDesc(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 ("http/www.pointwsp.net/ws/finance", "ratedate")); 106 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "dateTime")); 107 typeDesc.addFieldDesc(field); 108 field = new org.apache.axis.description.ElementDesc(); 109 field.setFieldName("code"); 110 field.setXmlName(new javax.xml.namespace.QName ("http/www.pointwsp.net/ws/finance", "code")); 111 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 112 field.setMinOccursIs0(true); 113 typeDesc.addFieldDesc(field); 114 field = new org.apache.axis.description.ElementDesc(); 115 field.setFieldName("unit"); 116 field.setXmlName(new javax.xml.namespace.QName ("http/www.pointwsp.net/ws/finance", "unit")); 117 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "int")); 118 typeDesc.addFieldDesc(field); 119 field = new org.apache.axis.description.ElementDesc(); 120 field.setFieldName("rate"); 121 field.setXmlName(new javax.xml.namespace.QName ("http/www.pointwsp.net/ws/finance", "rate")); 122 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "decimal")); 123 typeDesc.addFieldDesc(field); 124 }; 125 126 129 public static org.apache.axis.description.TypeDesc getTypeDesc() { 130 return typeDesc; 131 } 132 133 136 public static org.apache.axis.encoding.Serializer getSerializer( 137 java.lang.String mechType, 138 java.lang.Class _javaType, 139 javax.xml.namespace.QName _xmlType) { 140 return 141 new org.apache.axis.encoding.ser.BeanSerializer( 142 _javaType, _xmlType, typeDesc); 143 } 144 145 148 public static org.apache.axis.encoding.Deserializer getDeserializer( 149 java.lang.String mechType, 150 java.lang.Class _javaType, 151 javax.xml.namespace.QName _xmlType) { 152 return 153 new org.apache.axis.encoding.ser.BeanDeserializer( 154 _javaType, _xmlType, typeDesc); 155 } 156 157 } 158 | Popular Tags |