Subversion Repositories SmartDukaan

Rev

Rev 20640 | Details | Compare with Previous | Last modification | View Log | RSS feed

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