Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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