001: /**
002: * Currencyrates.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 Currencyrates implements java.io.Serializable {
009: private java.lang.String source;
010: private java.lang.String basecurrency;
011: private http.net.pointwsp.www.ws.finance.ArrayOfCurrency ratelist;
012:
013: public Currencyrates() {
014: }
015:
016: public java.lang.String getSource() {
017: return source;
018: }
019:
020: public void setSource(java.lang.String source) {
021: this .source = source;
022: }
023:
024: public java.lang.String getBasecurrency() {
025: return basecurrency;
026: }
027:
028: public void setBasecurrency(java.lang.String basecurrency) {
029: this .basecurrency = basecurrency;
030: }
031:
032: public http.net.pointwsp.www.ws.finance.ArrayOfCurrency getRatelist() {
033: return ratelist;
034: }
035:
036: public void setRatelist(
037: http.net.pointwsp.www.ws.finance.ArrayOfCurrency ratelist) {
038: this .ratelist = ratelist;
039: }
040:
041: private java.lang.Object __equalsCalc = null;
042:
043: public synchronized boolean equals(java.lang.Object obj) {
044: if (!(obj instanceof Currencyrates))
045: return false;
046: Currencyrates other = (Currencyrates) obj;
047: if (obj == null)
048: return false;
049: if (this == obj)
050: return true;
051: if (__equalsCalc != null) {
052: return (__equalsCalc == obj);
053: }
054: __equalsCalc = obj;
055: boolean _equals;
056: _equals = true
057: && ((source == null && other.getSource() == null) || (source != null && source
058: .equals(other.getSource())))
059: && ((basecurrency == null && other.getBasecurrency() == null) || (basecurrency != null && basecurrency
060: .equals(other.getBasecurrency())))
061: && ((ratelist == null && other.getRatelist() == null) || (ratelist != null && ratelist
062: .equals(other.getRatelist())));
063: __equalsCalc = null;
064: return _equals;
065: }
066:
067: private boolean __hashCodeCalc = false;
068:
069: public synchronized int hashCode() {
070: if (__hashCodeCalc) {
071: return 0;
072: }
073: __hashCodeCalc = true;
074: int _hashCode = 1;
075: if (getSource() != null) {
076: _hashCode += getSource().hashCode();
077: }
078: if (getBasecurrency() != null) {
079: _hashCode += getBasecurrency().hashCode();
080: }
081: if (getRatelist() != null) {
082: _hashCode += getRatelist().hashCode();
083: }
084: __hashCodeCalc = false;
085: return _hashCode;
086: }
087:
088: // Type metadata
089: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
090: Currencyrates.class);
091:
092: static {
093: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
094: field.setFieldName("source");
095: field.setXmlName(new javax.xml.namespace.QName(
096: "http/www.pointwsp.net/ws/finance", "source"));
097: field.setXmlType(new javax.xml.namespace.QName(
098: "http://www.w3.org/2001/XMLSchema", "string"));
099: field.setMinOccursIs0(true);
100: typeDesc.addFieldDesc(field);
101: field = new org.apache.axis.description.ElementDesc();
102: field.setFieldName("basecurrency");
103: field.setXmlName(new javax.xml.namespace.QName(
104: "http/www.pointwsp.net/ws/finance", "basecurrency"));
105: field.setXmlType(new javax.xml.namespace.QName(
106: "http://www.w3.org/2001/XMLSchema", "string"));
107: field.setMinOccursIs0(true);
108: typeDesc.addFieldDesc(field);
109: field = new org.apache.axis.description.ElementDesc();
110: field.setFieldName("ratelist");
111: field.setXmlName(new javax.xml.namespace.QName(
112: "http/www.pointwsp.net/ws/finance", "ratelist"));
113: field.setXmlType(new javax.xml.namespace.QName(
114: "http/www.pointwsp.net/ws/finance", "ArrayOfCurrency"));
115: field.setMinOccursIs0(true);
116: typeDesc.addFieldDesc(field);
117: };
118:
119: /**
120: * Return type metadata object
121: */
122: public static org.apache.axis.description.TypeDesc getTypeDesc() {
123: return typeDesc;
124: }
125:
126: /**
127: * Get Custom Serializer
128: */
129: public static org.apache.axis.encoding.Serializer getSerializer(
130: java.lang.String mechType, java.lang.Class _javaType,
131: javax.xml.namespace.QName _xmlType) {
132: return new org.apache.axis.encoding.ser.BeanSerializer(
133: _javaType, _xmlType, typeDesc);
134: }
135:
136: /**
137: * Get Custom Deserializer
138: */
139: public static org.apache.axis.encoding.Deserializer getDeserializer(
140: java.lang.String mechType, java.lang.Class _javaType,
141: javax.xml.namespace.QName _xmlType) {
142: return new org.apache.axis.encoding.ser.BeanDeserializer(
143: _javaType, _xmlType, typeDesc);
144: }
145:
146: }
|