Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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