Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ShipmentReply.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.fedex.ship.stub;
9
 
10
public class ShipmentReply  implements java.io.Serializable {
11
    /* This indicates the highest level of severity of all the notifications
12
     * returned in this reply */
13
    private com.fedex.ship.stub.NotificationSeverityType highestSeverity;
14
 
15
    /* The descriptive data regarding the results of the submitted
16
     * transaction. */
17
    private com.fedex.ship.stub.Notification[] notifications;
18
 
19
    /* Descriptive data for this customer transaction. The TransactionDetail
20
     * from the request is echoed back to the caller in the corresponding
21
     * reply. */
22
    private com.fedex.ship.stub.TransactionDetail transactionDetail;
23
 
24
    /* Identifies the version/level of a service operation expected
25
     * by a caller (in each request) and performed by the callee (in each
26
     * reply). */
27
    private com.fedex.ship.stub.VersionId version;
28
 
29
    public ShipmentReply() {
30
    }
31
 
32
    public ShipmentReply(
33
           com.fedex.ship.stub.NotificationSeverityType highestSeverity,
34
           com.fedex.ship.stub.Notification[] notifications,
35
           com.fedex.ship.stub.TransactionDetail transactionDetail,
36
           com.fedex.ship.stub.VersionId version) {
37
           this.highestSeverity = highestSeverity;
38
           this.notifications = notifications;
39
           this.transactionDetail = transactionDetail;
40
           this.version = version;
41
    }
42
 
43
 
44
    /**
45
     * Gets the highestSeverity value for this ShipmentReply.
46
     * 
47
     * @return highestSeverity   * This indicates the highest level of severity of all the notifications
48
     * returned in this reply
49
     */
50
    public com.fedex.ship.stub.NotificationSeverityType getHighestSeverity() {
51
        return highestSeverity;
52
    }
53
 
54
 
55
    /**
56
     * Sets the highestSeverity value for this ShipmentReply.
57
     * 
58
     * @param highestSeverity   * This indicates the highest level of severity of all the notifications
59
     * returned in this reply
60
     */
61
    public void setHighestSeverity(com.fedex.ship.stub.NotificationSeverityType highestSeverity) {
62
        this.highestSeverity = highestSeverity;
63
    }
64
 
65
 
66
    /**
67
     * Gets the notifications value for this ShipmentReply.
68
     * 
69
     * @return notifications   * The descriptive data regarding the results of the submitted
70
     * transaction.
71
     */
72
    public com.fedex.ship.stub.Notification[] getNotifications() {
73
        return notifications;
74
    }
75
 
76
 
77
    /**
78
     * Sets the notifications value for this ShipmentReply.
79
     * 
80
     * @param notifications   * The descriptive data regarding the results of the submitted
81
     * transaction.
82
     */
83
    public void setNotifications(com.fedex.ship.stub.Notification[] notifications) {
84
        this.notifications = notifications;
85
    }
86
 
87
    public com.fedex.ship.stub.Notification getNotifications(int i) {
88
        return this.notifications[i];
89
    }
90
 
91
    public void setNotifications(int i, com.fedex.ship.stub.Notification _value) {
92
        this.notifications[i] = _value;
93
    }
94
 
95
 
96
    /**
97
     * Gets the transactionDetail value for this ShipmentReply.
98
     * 
99
     * @return transactionDetail   * Descriptive data for this customer transaction. The TransactionDetail
100
     * from the request is echoed back to the caller in the corresponding
101
     * reply.
102
     */
103
    public com.fedex.ship.stub.TransactionDetail getTransactionDetail() {
104
        return transactionDetail;
105
    }
106
 
107
 
108
    /**
109
     * Sets the transactionDetail value for this ShipmentReply.
110
     * 
111
     * @param transactionDetail   * Descriptive data for this customer transaction. The TransactionDetail
112
     * from the request is echoed back to the caller in the corresponding
113
     * reply.
114
     */
115
    public void setTransactionDetail(com.fedex.ship.stub.TransactionDetail transactionDetail) {
116
        this.transactionDetail = transactionDetail;
117
    }
118
 
119
 
120
    /**
121
     * Gets the version value for this ShipmentReply.
122
     * 
123
     * @return version   * Identifies the version/level of a service operation expected
124
     * by a caller (in each request) and performed by the callee (in each
125
     * reply).
126
     */
127
    public com.fedex.ship.stub.VersionId getVersion() {
128
        return version;
129
    }
130
 
131
 
132
    /**
133
     * Sets the version value for this ShipmentReply.
134
     * 
135
     * @param version   * Identifies the version/level of a service operation expected
136
     * by a caller (in each request) and performed by the callee (in each
137
     * reply).
138
     */
139
    public void setVersion(com.fedex.ship.stub.VersionId version) {
140
        this.version = version;
141
    }
142
 
143
    private java.lang.Object __equalsCalc = null;
144
    public synchronized boolean equals(java.lang.Object obj) {
145
        if (!(obj instanceof ShipmentReply)) return false;
146
        ShipmentReply other = (ShipmentReply) obj;
147
        if (obj == null) return false;
148
        if (this == obj) return true;
149
        if (__equalsCalc != null) {
150
            return (__equalsCalc == obj);
151
        }
152
        __equalsCalc = obj;
153
        boolean _equals;
154
        _equals = true && 
155
            ((this.highestSeverity==null && other.getHighestSeverity()==null) || 
156
             (this.highestSeverity!=null &&
157
              this.highestSeverity.equals(other.getHighestSeverity()))) &&
158
            ((this.notifications==null && other.getNotifications()==null) || 
159
             (this.notifications!=null &&
160
              java.util.Arrays.equals(this.notifications, other.getNotifications()))) &&
161
            ((this.transactionDetail==null && other.getTransactionDetail()==null) || 
162
             (this.transactionDetail!=null &&
163
              this.transactionDetail.equals(other.getTransactionDetail()))) &&
164
            ((this.version==null && other.getVersion()==null) || 
165
             (this.version!=null &&
166
              this.version.equals(other.getVersion())));
167
        __equalsCalc = null;
168
        return _equals;
169
    }
170
 
171
    private boolean __hashCodeCalc = false;
172
    public synchronized int hashCode() {
173
        if (__hashCodeCalc) {
174
            return 0;
175
        }
176
        __hashCodeCalc = true;
177
        int _hashCode = 1;
178
        if (getHighestSeverity() != null) {
179
            _hashCode += getHighestSeverity().hashCode();
180
        }
181
        if (getNotifications() != null) {
182
            for (int i=0;
183
                 i<java.lang.reflect.Array.getLength(getNotifications());
184
                 i++) {
185
                java.lang.Object obj = java.lang.reflect.Array.get(getNotifications(), i);
186
                if (obj != null &&
187
                    !obj.getClass().isArray()) {
188
                    _hashCode += obj.hashCode();
189
                }
190
            }
191
        }
192
        if (getTransactionDetail() != null) {
193
            _hashCode += getTransactionDetail().hashCode();
194
        }
195
        if (getVersion() != null) {
196
            _hashCode += getVersion().hashCode();
197
        }
198
        __hashCodeCalc = false;
199
        return _hashCode;
200
    }
201
 
202
    // Type metadata
203
    private static org.apache.axis.description.TypeDesc typeDesc =
204
        new org.apache.axis.description.TypeDesc(ShipmentReply.class, true);
205
 
206
    static {
207
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShipmentReply"));
208
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
209
        elemField.setFieldName("highestSeverity");
210
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HighestSeverity"));
211
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NotificationSeverityType"));
212
        elemField.setNillable(false);
213
        typeDesc.addFieldDesc(elemField);
214
        elemField = new org.apache.axis.description.ElementDesc();
215
        elemField.setFieldName("notifications");
216
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Notifications"));
217
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Notification"));
218
        elemField.setNillable(false);
219
        elemField.setMaxOccursUnbounded(true);
220
        typeDesc.addFieldDesc(elemField);
221
        elemField = new org.apache.axis.description.ElementDesc();
222
        elemField.setFieldName("transactionDetail");
223
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TransactionDetail"));
224
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TransactionDetail"));
225
        elemField.setMinOccurs(0);
226
        elemField.setNillable(false);
227
        typeDesc.addFieldDesc(elemField);
228
        elemField = new org.apache.axis.description.ElementDesc();
229
        elemField.setFieldName("version");
230
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Version"));
231
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "VersionId"));
232
        elemField.setNillable(false);
233
        typeDesc.addFieldDesc(elemField);
234
    }
235
 
236
    /**
237
     * Return type metadata object
238
     */
239
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
240
        return typeDesc;
241
    }
242
 
243
    /**
244
     * Get Custom Serializer
245
     */
246
    public static org.apache.axis.encoding.Serializer getSerializer(
247
           java.lang.String mechType, 
248
           java.lang.Class _javaType,  
249
           javax.xml.namespace.QName _xmlType) {
250
        return 
251
          new  org.apache.axis.encoding.ser.BeanSerializer(
252
            _javaType, _xmlType, typeDesc);
253
    }
254
 
255
    /**
256
     * Get Custom Deserializer
257
     */
258
    public static org.apache.axis.encoding.Deserializer getDeserializer(
259
           java.lang.String mechType, 
260
           java.lang.Class _javaType,  
261
           javax.xml.namespace.QName _xmlType) {
262
        return 
263
          new  org.apache.axis.encoding.ser.BeanDeserializer(
264
            _javaType, _xmlType, typeDesc);
265
    }
266
 
267
}