Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * PackageOperationalDetail.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
 
11
/**
12
 * Package-level data required for labeling and/or movement.
13
 */
14
public class PackageOperationalDetail  implements java.io.Serializable {
15
    /* Human-readable text for pre-January 2011 clients. */
16
    private java.lang.String astraHandlingText;
17
 
18
    /* Human-readable content for use on a label. */
19
    private com.fedex.ship.stub.OperationalInstruction[] operationalInstructions;
20
 
21
    /* The operational barcodes pertaining to the current package. */
22
    private com.fedex.ship.stub.PackageBarcodes barcodes;
23
 
24
    /* The FedEx internal code that represents the service and/or
25
     * features of service for the current package moving under a FedEx Ground
26
     * service. */
27
    private java.lang.String groundServiceCode;
28
 
29
    public PackageOperationalDetail() {
30
    }
31
 
32
    public PackageOperationalDetail(
33
           java.lang.String astraHandlingText,
34
           com.fedex.ship.stub.OperationalInstruction[] operationalInstructions,
35
           com.fedex.ship.stub.PackageBarcodes barcodes,
36
           java.lang.String groundServiceCode) {
37
           this.astraHandlingText = astraHandlingText;
38
           this.operationalInstructions = operationalInstructions;
39
           this.barcodes = barcodes;
40
           this.groundServiceCode = groundServiceCode;
41
    }
42
 
43
 
44
    /**
45
     * Gets the astraHandlingText value for this PackageOperationalDetail.
46
     * 
47
     * @return astraHandlingText   * Human-readable text for pre-January 2011 clients.
48
     */
49
    public java.lang.String getAstraHandlingText() {
50
        return astraHandlingText;
51
    }
52
 
53
 
54
    /**
55
     * Sets the astraHandlingText value for this PackageOperationalDetail.
56
     * 
57
     * @param astraHandlingText   * Human-readable text for pre-January 2011 clients.
58
     */
59
    public void setAstraHandlingText(java.lang.String astraHandlingText) {
60
        this.astraHandlingText = astraHandlingText;
61
    }
62
 
63
 
64
    /**
65
     * Gets the operationalInstructions value for this PackageOperationalDetail.
66
     * 
67
     * @return operationalInstructions   * Human-readable content for use on a label.
68
     */
69
    public com.fedex.ship.stub.OperationalInstruction[] getOperationalInstructions() {
70
        return operationalInstructions;
71
    }
72
 
73
 
74
    /**
75
     * Sets the operationalInstructions value for this PackageOperationalDetail.
76
     * 
77
     * @param operationalInstructions   * Human-readable content for use on a label.
78
     */
79
    public void setOperationalInstructions(com.fedex.ship.stub.OperationalInstruction[] operationalInstructions) {
80
        this.operationalInstructions = operationalInstructions;
81
    }
82
 
83
    public com.fedex.ship.stub.OperationalInstruction getOperationalInstructions(int i) {
84
        return this.operationalInstructions[i];
85
    }
86
 
87
    public void setOperationalInstructions(int i, com.fedex.ship.stub.OperationalInstruction _value) {
88
        this.operationalInstructions[i] = _value;
89
    }
90
 
91
 
92
    /**
93
     * Gets the barcodes value for this PackageOperationalDetail.
94
     * 
95
     * @return barcodes   * The operational barcodes pertaining to the current package.
96
     */
97
    public com.fedex.ship.stub.PackageBarcodes getBarcodes() {
98
        return barcodes;
99
    }
100
 
101
 
102
    /**
103
     * Sets the barcodes value for this PackageOperationalDetail.
104
     * 
105
     * @param barcodes   * The operational barcodes pertaining to the current package.
106
     */
107
    public void setBarcodes(com.fedex.ship.stub.PackageBarcodes barcodes) {
108
        this.barcodes = barcodes;
109
    }
110
 
111
 
112
    /**
113
     * Gets the groundServiceCode value for this PackageOperationalDetail.
114
     * 
115
     * @return groundServiceCode   * The FedEx internal code that represents the service and/or
116
     * features of service for the current package moving under a FedEx Ground
117
     * service.
118
     */
119
    public java.lang.String getGroundServiceCode() {
120
        return groundServiceCode;
121
    }
122
 
123
 
124
    /**
125
     * Sets the groundServiceCode value for this PackageOperationalDetail.
126
     * 
127
     * @param groundServiceCode   * The FedEx internal code that represents the service and/or
128
     * features of service for the current package moving under a FedEx Ground
129
     * service.
130
     */
131
    public void setGroundServiceCode(java.lang.String groundServiceCode) {
132
        this.groundServiceCode = groundServiceCode;
133
    }
134
 
135
    private java.lang.Object __equalsCalc = null;
136
    public synchronized boolean equals(java.lang.Object obj) {
137
        if (!(obj instanceof PackageOperationalDetail)) return false;
138
        PackageOperationalDetail other = (PackageOperationalDetail) obj;
139
        if (obj == null) return false;
140
        if (this == obj) return true;
141
        if (__equalsCalc != null) {
142
            return (__equalsCalc == obj);
143
        }
144
        __equalsCalc = obj;
145
        boolean _equals;
146
        _equals = true && 
147
            ((this.astraHandlingText==null && other.getAstraHandlingText()==null) || 
148
             (this.astraHandlingText!=null &&
149
              this.astraHandlingText.equals(other.getAstraHandlingText()))) &&
150
            ((this.operationalInstructions==null && other.getOperationalInstructions()==null) || 
151
             (this.operationalInstructions!=null &&
152
              java.util.Arrays.equals(this.operationalInstructions, other.getOperationalInstructions()))) &&
153
            ((this.barcodes==null && other.getBarcodes()==null) || 
154
             (this.barcodes!=null &&
155
              this.barcodes.equals(other.getBarcodes()))) &&
156
            ((this.groundServiceCode==null && other.getGroundServiceCode()==null) || 
157
             (this.groundServiceCode!=null &&
158
              this.groundServiceCode.equals(other.getGroundServiceCode())));
159
        __equalsCalc = null;
160
        return _equals;
161
    }
162
 
163
    private boolean __hashCodeCalc = false;
164
    public synchronized int hashCode() {
165
        if (__hashCodeCalc) {
166
            return 0;
167
        }
168
        __hashCodeCalc = true;
169
        int _hashCode = 1;
170
        if (getAstraHandlingText() != null) {
171
            _hashCode += getAstraHandlingText().hashCode();
172
        }
173
        if (getOperationalInstructions() != null) {
174
            for (int i=0;
175
                 i<java.lang.reflect.Array.getLength(getOperationalInstructions());
176
                 i++) {
177
                java.lang.Object obj = java.lang.reflect.Array.get(getOperationalInstructions(), i);
178
                if (obj != null &&
179
                    !obj.getClass().isArray()) {
180
                    _hashCode += obj.hashCode();
181
                }
182
            }
183
        }
184
        if (getBarcodes() != null) {
185
            _hashCode += getBarcodes().hashCode();
186
        }
187
        if (getGroundServiceCode() != null) {
188
            _hashCode += getGroundServiceCode().hashCode();
189
        }
190
        __hashCodeCalc = false;
191
        return _hashCode;
192
    }
193
 
194
    // Type metadata
195
    private static org.apache.axis.description.TypeDesc typeDesc =
196
        new org.apache.axis.description.TypeDesc(PackageOperationalDetail.class, true);
197
 
198
    static {
199
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackageOperationalDetail"));
200
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
201
        elemField.setFieldName("astraHandlingText");
202
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AstraHandlingText"));
203
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
204
        elemField.setMinOccurs(0);
205
        elemField.setNillable(false);
206
        typeDesc.addFieldDesc(elemField);
207
        elemField = new org.apache.axis.description.ElementDesc();
208
        elemField.setFieldName("operationalInstructions");
209
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "OperationalInstructions"));
210
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "OperationalInstruction"));
211
        elemField.setMinOccurs(0);
212
        elemField.setNillable(false);
213
        elemField.setMaxOccursUnbounded(true);
214
        typeDesc.addFieldDesc(elemField);
215
        elemField = new org.apache.axis.description.ElementDesc();
216
        elemField.setFieldName("barcodes");
217
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Barcodes"));
218
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackageBarcodes"));
219
        elemField.setMinOccurs(0);
220
        elemField.setNillable(false);
221
        typeDesc.addFieldDesc(elemField);
222
        elemField = new org.apache.axis.description.ElementDesc();
223
        elemField.setFieldName("groundServiceCode");
224
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "GroundServiceCode"));
225
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
226
        elemField.setMinOccurs(0);
227
        elemField.setNillable(false);
228
        typeDesc.addFieldDesc(elemField);
229
    }
230
 
231
    /**
232
     * Return type metadata object
233
     */
234
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
235
        return typeDesc;
236
    }
237
 
238
    /**
239
     * Get Custom Serializer
240
     */
241
    public static org.apache.axis.encoding.Serializer getSerializer(
242
           java.lang.String mechType, 
243
           java.lang.Class _javaType,  
244
           javax.xml.namespace.QName _xmlType) {
245
        return 
246
          new  org.apache.axis.encoding.ser.BeanSerializer(
247
            _javaType, _xmlType, typeDesc);
248
    }
249
 
250
    /**
251
     * Get Custom Deserializer
252
     */
253
    public static org.apache.axis.encoding.Deserializer getDeserializer(
254
           java.lang.String mechType, 
255
           java.lang.Class _javaType,  
256
           javax.xml.namespace.QName _xmlType) {
257
        return 
258
          new  org.apache.axis.encoding.ser.BeanDeserializer(
259
            _javaType, _xmlType, typeDesc);
260
    }
261
 
262
}