Subversion Repositories SmartDukaan

Rev

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

Rev 22577 Rev 22598
Line 10... Line 10...
10
public class ShipmentCreationRequest  implements java.io.Serializable {
10
public class ShipmentCreationRequest  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
    @Override
-
 
16
	public String toString() {
-
 
17
		return "ShipmentCreationRequest [clientInfo=" + clientInfo + ", transaction=" + transaction + ", shipments=" + shipments
-
 
18
				+ ", labelInfo=" + labelInfo + "]";
-
 
19
	}
-
 
20
 
-
 
21
	private com.aramex.stub.ArrayOfShipment shipments;
15
    private com.aramex.stub.Shipment[] shipments;
22
 
16
 
23
    private com.aramex.stub.LabelInfo labelInfo;
17
    private com.aramex.stub.LabelInfo labelInfo;
24
 
18
 
25
    public ShipmentCreationRequest() {
19
    public ShipmentCreationRequest() {
26
    }
20
    }
27
 
21
 
28
    public ShipmentCreationRequest(
22
    public ShipmentCreationRequest(
29
           com.aramex.stub.ClientInfo clientInfo,
23
           com.aramex.stub.ClientInfo clientInfo,
30
           com.aramex.stub.Transaction transaction,
24
           com.aramex.stub.Transaction transaction,
31
           com.aramex.stub.ArrayOfShipment shipments,
25
           com.aramex.stub.Shipment[] shipments,
32
           com.aramex.stub.LabelInfo labelInfo) {
26
           com.aramex.stub.LabelInfo labelInfo) {
33
           this.clientInfo = clientInfo;
27
           this.clientInfo = clientInfo;
34
           this.transaction = transaction;
28
           this.transaction = transaction;
35
           this.shipments = shipments;
29
           this.shipments = shipments;
36
           this.labelInfo = labelInfo;
30
           this.labelInfo = labelInfo;
Line 80... Line 74...
80
    /**
74
    /**
81
     * Gets the shipments value for this ShipmentCreationRequest.
75
     * Gets the shipments value for this ShipmentCreationRequest.
82
     * 
76
     * 
83
     * @return shipments
77
     * @return shipments
84
     */
78
     */
85
    public com.aramex.stub.ArrayOfShipment getShipments() {
79
    public com.aramex.stub.Shipment[] getShipments() {
86
        return shipments;
80
        return shipments;
87
    }
81
    }
88
 
82
 
89
 
83
 
90
    /**
84
    /**
91
     * Sets the shipments value for this ShipmentCreationRequest.
85
     * Sets the shipments value for this ShipmentCreationRequest.
92
     * 
86
     * 
93
     * @param shipments
87
     * @param shipments
94
     */
88
     */
95
    public void setShipments(com.aramex.stub.ArrayOfShipment shipments) {
89
    public void setShipments(com.aramex.stub.Shipment[] shipments) {
96
        this.shipments = shipments;
90
        this.shipments = shipments;
97
    }
91
    }
98
 
92
 
99
 
93
 
100
    /**
94
    /**
Line 134... Line 128...
134
            ((this.transaction==null && other.getTransaction()==null) || 
128
            ((this.transaction==null && other.getTransaction()==null) || 
135
             (this.transaction!=null &&
129
             (this.transaction!=null &&
136
              this.transaction.equals(other.getTransaction()))) &&
130
              this.transaction.equals(other.getTransaction()))) &&
137
            ((this.shipments==null && other.getShipments()==null) || 
131
            ((this.shipments==null && other.getShipments()==null) || 
138
             (this.shipments!=null &&
132
             (this.shipments!=null &&
139
              this.shipments.equals(other.getShipments()))) &&
133
              java.util.Arrays.equals(this.shipments, other.getShipments()))) &&
140
            ((this.labelInfo==null && other.getLabelInfo()==null) || 
134
            ((this.labelInfo==null && other.getLabelInfo()==null) || 
141
             (this.labelInfo!=null &&
135
             (this.labelInfo!=null &&
142
              this.labelInfo.equals(other.getLabelInfo())));
136
              this.labelInfo.equals(other.getLabelInfo())));
143
        __equalsCalc = null;
137
        __equalsCalc = null;
144
        return _equals;
138
        return _equals;
Line 156... Line 150...
156
        }
150
        }
157
        if (getTransaction() != null) {
151
        if (getTransaction() != null) {
158
            _hashCode += getTransaction().hashCode();
152
            _hashCode += getTransaction().hashCode();
159
        }
153
        }
160
        if (getShipments() != null) {
154
        if (getShipments() != null) {
-
 
155
            for (int i=0;
-
 
156
                 i<java.lang.reflect.Array.getLength(getShipments());
-
 
157
                 i++) {
-
 
158
                java.lang.Object obj = java.lang.reflect.Array.get(getShipments(), i);
-
 
159
                if (obj != null &&
-
 
160
                    !obj.getClass().isArray()) {
161
            _hashCode += getShipments().hashCode();
161
                    _hashCode += obj.hashCode();
-
 
162
                }
-
 
163
            }
162
        }
164
        }
163
        if (getLabelInfo() != null) {
165
        if (getLabelInfo() != null) {
164
            _hashCode += getLabelInfo().hashCode();
166
            _hashCode += getLabelInfo().hashCode();
165
        }
167
        }
166
        __hashCodeCalc = false;
168
        __hashCodeCalc = false;
Line 188... Line 190...
188
        elemField.setNillable(true);
190
        elemField.setNillable(true);
189
        typeDesc.addFieldDesc(elemField);
191
        typeDesc.addFieldDesc(elemField);
190
        elemField = new org.apache.axis.description.ElementDesc();
192
        elemField = new org.apache.axis.description.ElementDesc();
191
        elemField.setFieldName("shipments");
193
        elemField.setFieldName("shipments");
192
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Shipments"));
194
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Shipments"));
193
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ArrayOfShipment"));
195
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Shipment"));
194
        elemField.setMinOccurs(0);
196
        elemField.setMinOccurs(0);
195
        elemField.setNillable(true);
197
        elemField.setNillable(true);
-
 
198
        elemField.setItemQName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Shipment"));
196
        typeDesc.addFieldDesc(elemField);
199
        typeDesc.addFieldDesc(elemField);
197
        elemField = new org.apache.axis.description.ElementDesc();
200
        elemField = new org.apache.axis.description.ElementDesc();
198
        elemField.setFieldName("labelInfo");
201
        elemField.setFieldName("labelInfo");
199
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "LabelInfo"));
202
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "LabelInfo"));
200
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "LabelInfo"));
203
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "LabelInfo"));