001: /**
002: * ArrayOfCurrency.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 ArrayOfCurrency implements java.io.Serializable {
009: private http.net.pointwsp.www.ws.finance.Currency[] currency;
010:
011: public ArrayOfCurrency() {
012: }
013:
014: public http.net.pointwsp.www.ws.finance.Currency[] getCurrency() {
015: return currency;
016: }
017:
018: public void setCurrency(
019: http.net.pointwsp.www.ws.finance.Currency[] currency) {
020: this .currency = currency;
021: }
022:
023: public http.net.pointwsp.www.ws.finance.Currency getCurrency(int i) {
024: return currency[i];
025: }
026:
027: public void setCurrency(int i,
028: http.net.pointwsp.www.ws.finance.Currency value) {
029: this .currency[i] = value;
030: }
031:
032: private java.lang.Object __equalsCalc = null;
033:
034: public synchronized boolean equals(java.lang.Object obj) {
035: if (!(obj instanceof ArrayOfCurrency))
036: return false;
037: ArrayOfCurrency other = (ArrayOfCurrency) obj;
038: if (obj == null)
039: return false;
040: if (this == obj)
041: return true;
042: if (__equalsCalc != null) {
043: return (__equalsCalc == obj);
044: }
045: __equalsCalc = obj;
046: boolean _equals;
047: _equals = true && ((currency == null && other.getCurrency() == null) || (currency != null && java.util.Arrays
048: .equals(currency, other.getCurrency())));
049: __equalsCalc = null;
050: return _equals;
051: }
052:
053: private boolean __hashCodeCalc = false;
054:
055: public synchronized int hashCode() {
056: if (__hashCodeCalc) {
057: return 0;
058: }
059: __hashCodeCalc = true;
060: int _hashCode = 1;
061: if (getCurrency() != null) {
062: for (int i = 0; i < java.lang.reflect.Array
063: .getLength(getCurrency()); i++) {
064: java.lang.Object obj = java.lang.reflect.Array.get(
065: getCurrency(), i);
066: if (obj != null && !obj.getClass().isArray()) {
067: _hashCode += obj.hashCode();
068: }
069: }
070: }
071: __hashCodeCalc = false;
072: return _hashCode;
073: }
074:
075: // Type metadata
076: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
077: ArrayOfCurrency.class);
078:
079: static {
080: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
081: field.setFieldName("currency");
082: field.setXmlName(new javax.xml.namespace.QName(
083: "http/www.pointwsp.net/ws/finance", "currency"));
084: field.setMinOccursIs0(true);
085: typeDesc.addFieldDesc(field);
086: };
087:
088: /**
089: * Return type metadata object
090: */
091: public static org.apache.axis.description.TypeDesc getTypeDesc() {
092: return typeDesc;
093: }
094:
095: /**
096: * Get Custom Serializer
097: */
098: public static org.apache.axis.encoding.Serializer getSerializer(
099: java.lang.String mechType, java.lang.Class _javaType,
100: javax.xml.namespace.QName _xmlType) {
101: return new org.apache.axis.encoding.ser.BeanSerializer(
102: _javaType, _xmlType, typeDesc);
103: }
104:
105: /**
106: * Get Custom Deserializer
107: */
108: public static org.apache.axis.encoding.Deserializer getDeserializer(
109: java.lang.String mechType, java.lang.Class _javaType,
110: javax.xml.namespace.QName _xmlType) {
111: return new org.apache.axis.encoding.ser.BeanDeserializer(
112: _javaType, _xmlType, typeDesc);
113: }
114:
115: }
|