Subversion Repositories SmartDukaan

Rev

Rev 20640 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20640 Rev 22598
Line 10... Line 10...
10
public class HoldCreationRequest  implements java.io.Serializable {
10
public class HoldCreationRequest  implements java.io.Serializable {
11
    private com.aramex.stub.ClientInfo clientInfo;
11
    private com.aramex.stub.ClientInfo clientInfo;
12
 
12
 
13
    private com.aramex.stub.Transaction transaction;
13
    private com.aramex.stub.Transaction transaction;
14
 
14
 
15
    private com.aramex.stub.ArrayOfShipmentHoldDetails shipmentHolds;
15
    private com.aramex.stub.ShipmentHoldDetails[] shipmentHolds;
16
 
16
 
17
    public HoldCreationRequest() {
17
    public HoldCreationRequest() {
18
    }
18
    }
19
 
19
 
20
    public HoldCreationRequest(
20
    public HoldCreationRequest(
21
           com.aramex.stub.ClientInfo clientInfo,
21
           com.aramex.stub.ClientInfo clientInfo,
22
           com.aramex.stub.Transaction transaction,
22
           com.aramex.stub.Transaction transaction,
23
           com.aramex.stub.ArrayOfShipmentHoldDetails shipmentHolds) {
23
           com.aramex.stub.ShipmentHoldDetails[] shipmentHolds) {
24
           this.clientInfo = clientInfo;
24
           this.clientInfo = clientInfo;
25
           this.transaction = transaction;
25
           this.transaction = transaction;
26
           this.shipmentHolds = shipmentHolds;
26
           this.shipmentHolds = shipmentHolds;
27
    }
27
    }
28
 
28
 
Line 70... Line 70...
70
    /**
70
    /**
71
     * Gets the shipmentHolds value for this HoldCreationRequest.
71
     * Gets the shipmentHolds value for this HoldCreationRequest.
72
     * 
72
     * 
73
     * @return shipmentHolds
73
     * @return shipmentHolds
74
     */
74
     */
75
    public com.aramex.stub.ArrayOfShipmentHoldDetails getShipmentHolds() {
75
    public com.aramex.stub.ShipmentHoldDetails[] getShipmentHolds() {
76
        return shipmentHolds;
76
        return shipmentHolds;
77
    }
77
    }
78
 
78
 
79
 
79
 
80
    /**
80
    /**
81
     * Sets the shipmentHolds value for this HoldCreationRequest.
81
     * Sets the shipmentHolds value for this HoldCreationRequest.
82
     * 
82
     * 
83
     * @param shipmentHolds
83
     * @param shipmentHolds
84
     */
84
     */
85
    public void setShipmentHolds(com.aramex.stub.ArrayOfShipmentHoldDetails shipmentHolds) {
85
    public void setShipmentHolds(com.aramex.stub.ShipmentHoldDetails[] shipmentHolds) {
86
        this.shipmentHolds = shipmentHolds;
86
        this.shipmentHolds = shipmentHolds;
87
    }
87
    }
88
 
88
 
89
    private java.lang.Object __equalsCalc = null;
89
    private java.lang.Object __equalsCalc = null;
90
    public synchronized boolean equals(java.lang.Object obj) {
90
    public synchronized boolean equals(java.lang.Object obj) {
Line 104... Line 104...
104
            ((this.transaction==null && other.getTransaction()==null) || 
104
            ((this.transaction==null && other.getTransaction()==null) || 
105
             (this.transaction!=null &&
105
             (this.transaction!=null &&
106
              this.transaction.equals(other.getTransaction()))) &&
106
              this.transaction.equals(other.getTransaction()))) &&
107
            ((this.shipmentHolds==null && other.getShipmentHolds()==null) || 
107
            ((this.shipmentHolds==null && other.getShipmentHolds()==null) || 
108
             (this.shipmentHolds!=null &&
108
             (this.shipmentHolds!=null &&
109
              this.shipmentHolds.equals(other.getShipmentHolds())));
109
              java.util.Arrays.equals(this.shipmentHolds, other.getShipmentHolds())));
110
        __equalsCalc = null;
110
        __equalsCalc = null;
111
        return _equals;
111
        return _equals;
112
    }
112
    }
113
 
113
 
114
    private boolean __hashCodeCalc = false;
114
    private boolean __hashCodeCalc = false;
Line 123... Line 123...
123
        }
123
        }
124
        if (getTransaction() != null) {
124
        if (getTransaction() != null) {
125
            _hashCode += getTransaction().hashCode();
125
            _hashCode += getTransaction().hashCode();
126
        }
126
        }
127
        if (getShipmentHolds() != null) {
127
        if (getShipmentHolds() != null) {
-
 
128
            for (int i=0;
-
 
129
                 i<java.lang.reflect.Array.getLength(getShipmentHolds());
-
 
130
                 i++) {
-
 
131
                java.lang.Object obj = java.lang.reflect.Array.get(getShipmentHolds(), i);
-
 
132
                if (obj != null &&
-
 
133
                    !obj.getClass().isArray()) {
128
            _hashCode += getShipmentHolds().hashCode();
134
                    _hashCode += obj.hashCode();
-
 
135
                }
-
 
136
            }
129
        }
137
        }
130
        __hashCodeCalc = false;
138
        __hashCodeCalc = false;
131
        return _hashCode;
139
        return _hashCode;
132
    }
140
    }
133
 
141
 
Line 152... Line 160...
152
        elemField.setNillable(true);
160
        elemField.setNillable(true);
153
        typeDesc.addFieldDesc(elemField);
161
        typeDesc.addFieldDesc(elemField);
154
        elemField = new org.apache.axis.description.ElementDesc();
162
        elemField = new org.apache.axis.description.ElementDesc();
155
        elemField.setFieldName("shipmentHolds");
163
        elemField.setFieldName("shipmentHolds");
156
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentHolds"));
164
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentHolds"));
157
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ArrayOfShipmentHoldDetails"));
165
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentHoldDetails"));
158
        elemField.setMinOccurs(0);
166
        elemField.setMinOccurs(0);
159
        elemField.setNillable(true);
167
        elemField.setNillable(true);
-
 
168
        elemField.setItemQName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentHoldDetails"));
160
        typeDesc.addFieldDesc(elemField);
169
        typeDesc.addFieldDesc(elemField);
161
    }
170
    }
162
 
171
 
163
    /**
172
    /**
164
     * Return type metadata object
173
     * Return type metadata object