Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ExportDetail.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
 * Country specific details of an International shipment.
13
 */
14
public class ExportDetail  implements java.io.Serializable {
15
    /* Specifies which filing option is being exercised by the customer.
16
     * Required for non-document shipments originating in Canada destined
17
     * for any country other than Canada, the United States, Puerto Rico
18
     * or the U.S. Virgin Islands. */
19
    private com.fedex.ship.stub.B13AFilingOptionType b13AFilingOption;
20
 
21
    /* General field for exporting-country-specific export data (e.g.
22
     * B13A for CA, FTSR Exemption or AES Citation for US). */
23
    private java.lang.String exportComplianceStatement;
24
 
25
    /* This field is applicable only to Canada export non-document
26
     * shipments of any value to any destination. No special characters allowed. */
27
    private java.lang.String permitNumber;
28
 
29
    /* Department of Commerce/Department of State information about
30
     * this shipment. */
31
    private com.fedex.ship.stub.DestinationControlDetail destinationControlDetail;
32
 
33
    public ExportDetail() {
34
    }
35
 
36
    public ExportDetail(
37
           com.fedex.ship.stub.B13AFilingOptionType b13AFilingOption,
38
           java.lang.String exportComplianceStatement,
39
           java.lang.String permitNumber,
40
           com.fedex.ship.stub.DestinationControlDetail destinationControlDetail) {
41
           this.b13AFilingOption = b13AFilingOption;
42
           this.exportComplianceStatement = exportComplianceStatement;
43
           this.permitNumber = permitNumber;
44
           this.destinationControlDetail = destinationControlDetail;
45
    }
46
 
47
 
48
    /**
49
     * Gets the b13AFilingOption value for this ExportDetail.
50
     * 
51
     * @return b13AFilingOption   * Specifies which filing option is being exercised by the customer.
52
     * Required for non-document shipments originating in Canada destined
53
     * for any country other than Canada, the United States, Puerto Rico
54
     * or the U.S. Virgin Islands.
55
     */
56
    public com.fedex.ship.stub.B13AFilingOptionType getB13AFilingOption() {
57
        return b13AFilingOption;
58
    }
59
 
60
 
61
    /**
62
     * Sets the b13AFilingOption value for this ExportDetail.
63
     * 
64
     * @param b13AFilingOption   * Specifies which filing option is being exercised by the customer.
65
     * Required for non-document shipments originating in Canada destined
66
     * for any country other than Canada, the United States, Puerto Rico
67
     * or the U.S. Virgin Islands.
68
     */
69
    public void setB13AFilingOption(com.fedex.ship.stub.B13AFilingOptionType b13AFilingOption) {
70
        this.b13AFilingOption = b13AFilingOption;
71
    }
72
 
73
 
74
    /**
75
     * Gets the exportComplianceStatement value for this ExportDetail.
76
     * 
77
     * @return exportComplianceStatement   * General field for exporting-country-specific export data (e.g.
78
     * B13A for CA, FTSR Exemption or AES Citation for US).
79
     */
80
    public java.lang.String getExportComplianceStatement() {
81
        return exportComplianceStatement;
82
    }
83
 
84
 
85
    /**
86
     * Sets the exportComplianceStatement value for this ExportDetail.
87
     * 
88
     * @param exportComplianceStatement   * General field for exporting-country-specific export data (e.g.
89
     * B13A for CA, FTSR Exemption or AES Citation for US).
90
     */
91
    public void setExportComplianceStatement(java.lang.String exportComplianceStatement) {
92
        this.exportComplianceStatement = exportComplianceStatement;
93
    }
94
 
95
 
96
    /**
97
     * Gets the permitNumber value for this ExportDetail.
98
     * 
99
     * @return permitNumber   * This field is applicable only to Canada export non-document
100
     * shipments of any value to any destination. No special characters allowed.
101
     */
102
    public java.lang.String getPermitNumber() {
103
        return permitNumber;
104
    }
105
 
106
 
107
    /**
108
     * Sets the permitNumber value for this ExportDetail.
109
     * 
110
     * @param permitNumber   * This field is applicable only to Canada export non-document
111
     * shipments of any value to any destination. No special characters allowed.
112
     */
113
    public void setPermitNumber(java.lang.String permitNumber) {
114
        this.permitNumber = permitNumber;
115
    }
116
 
117
 
118
    /**
119
     * Gets the destinationControlDetail value for this ExportDetail.
120
     * 
121
     * @return destinationControlDetail   * Department of Commerce/Department of State information about
122
     * this shipment.
123
     */
124
    public com.fedex.ship.stub.DestinationControlDetail getDestinationControlDetail() {
125
        return destinationControlDetail;
126
    }
127
 
128
 
129
    /**
130
     * Sets the destinationControlDetail value for this ExportDetail.
131
     * 
132
     * @param destinationControlDetail   * Department of Commerce/Department of State information about
133
     * this shipment.
134
     */
135
    public void setDestinationControlDetail(com.fedex.ship.stub.DestinationControlDetail destinationControlDetail) {
136
        this.destinationControlDetail = destinationControlDetail;
137
    }
138
 
139
    private java.lang.Object __equalsCalc = null;
140
    public synchronized boolean equals(java.lang.Object obj) {
141
        if (!(obj instanceof ExportDetail)) return false;
142
        ExportDetail other = (ExportDetail) obj;
143
        if (obj == null) return false;
144
        if (this == obj) return true;
145
        if (__equalsCalc != null) {
146
            return (__equalsCalc == obj);
147
        }
148
        __equalsCalc = obj;
149
        boolean _equals;
150
        _equals = true && 
151
            ((this.b13AFilingOption==null && other.getB13AFilingOption()==null) || 
152
             (this.b13AFilingOption!=null &&
153
              this.b13AFilingOption.equals(other.getB13AFilingOption()))) &&
154
            ((this.exportComplianceStatement==null && other.getExportComplianceStatement()==null) || 
155
             (this.exportComplianceStatement!=null &&
156
              this.exportComplianceStatement.equals(other.getExportComplianceStatement()))) &&
157
            ((this.permitNumber==null && other.getPermitNumber()==null) || 
158
             (this.permitNumber!=null &&
159
              this.permitNumber.equals(other.getPermitNumber()))) &&
160
            ((this.destinationControlDetail==null && other.getDestinationControlDetail()==null) || 
161
             (this.destinationControlDetail!=null &&
162
              this.destinationControlDetail.equals(other.getDestinationControlDetail())));
163
        __equalsCalc = null;
164
        return _equals;
165
    }
166
 
167
    private boolean __hashCodeCalc = false;
168
    public synchronized int hashCode() {
169
        if (__hashCodeCalc) {
170
            return 0;
171
        }
172
        __hashCodeCalc = true;
173
        int _hashCode = 1;
174
        if (getB13AFilingOption() != null) {
175
            _hashCode += getB13AFilingOption().hashCode();
176
        }
177
        if (getExportComplianceStatement() != null) {
178
            _hashCode += getExportComplianceStatement().hashCode();
179
        }
180
        if (getPermitNumber() != null) {
181
            _hashCode += getPermitNumber().hashCode();
182
        }
183
        if (getDestinationControlDetail() != null) {
184
            _hashCode += getDestinationControlDetail().hashCode();
185
        }
186
        __hashCodeCalc = false;
187
        return _hashCode;
188
    }
189
 
190
    // Type metadata
191
    private static org.apache.axis.description.TypeDesc typeDesc =
192
        new org.apache.axis.description.TypeDesc(ExportDetail.class, true);
193
 
194
    static {
195
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ExportDetail"));
196
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
197
        elemField.setFieldName("b13AFilingOption");
198
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "B13AFilingOption"));
199
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "B13AFilingOptionType"));
200
        elemField.setMinOccurs(0);
201
        elemField.setNillable(false);
202
        typeDesc.addFieldDesc(elemField);
203
        elemField = new org.apache.axis.description.ElementDesc();
204
        elemField.setFieldName("exportComplianceStatement");
205
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ExportComplianceStatement"));
206
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
207
        elemField.setMinOccurs(0);
208
        elemField.setNillable(false);
209
        typeDesc.addFieldDesc(elemField);
210
        elemField = new org.apache.axis.description.ElementDesc();
211
        elemField.setFieldName("permitNumber");
212
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PermitNumber"));
213
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
214
        elemField.setMinOccurs(0);
215
        elemField.setNillable(false);
216
        typeDesc.addFieldDesc(elemField);
217
        elemField = new org.apache.axis.description.ElementDesc();
218
        elemField.setFieldName("destinationControlDetail");
219
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DestinationControlDetail"));
220
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DestinationControlDetail"));
221
        elemField.setMinOccurs(0);
222
        elemField.setNillable(false);
223
        typeDesc.addFieldDesc(elemField);
224
    }
225
 
226
    /**
227
     * Return type metadata object
228
     */
229
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
230
        return typeDesc;
231
    }
232
 
233
    /**
234
     * Get Custom Serializer
235
     */
236
    public static org.apache.axis.encoding.Serializer getSerializer(
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.BeanSerializer(
242
            _javaType, _xmlType, typeDesc);
243
    }
244
 
245
    /**
246
     * Get Custom Deserializer
247
     */
248
    public static org.apache.axis.encoding.Deserializer getDeserializer(
249
           java.lang.String mechType, 
250
           java.lang.Class _javaType,  
251
           javax.xml.namespace.QName _xmlType) {
252
        return 
253
          new  org.apache.axis.encoding.ser.BeanDeserializer(
254
            _javaType, _xmlType, typeDesc);
255
    }
256
 
257
}