Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * CompletedSmartPostDetail.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
 * Provides reply information specific to SmartPost shipments.
13
 */
14
public class CompletedSmartPostDetail  implements java.io.Serializable {
15
    /* Identifies the carrier that will pick up the SmartPost shipment. */
16
    private com.fedex.ship.stub.CarrierCodeType pickUpCarrier;
17
 
18
    /* Indicates whether the shipment is deemed to be machineable,
19
     * based on dimensions, weight, and packaging. */
20
    private java.lang.Boolean machinable;
21
 
22
    public CompletedSmartPostDetail() {
23
    }
24
 
25
    public CompletedSmartPostDetail(
26
           com.fedex.ship.stub.CarrierCodeType pickUpCarrier,
27
           java.lang.Boolean machinable) {
28
           this.pickUpCarrier = pickUpCarrier;
29
           this.machinable = machinable;
30
    }
31
 
32
 
33
    /**
34
     * Gets the pickUpCarrier value for this CompletedSmartPostDetail.
35
     * 
36
     * @return pickUpCarrier   * Identifies the carrier that will pick up the SmartPost shipment.
37
     */
38
    public com.fedex.ship.stub.CarrierCodeType getPickUpCarrier() {
39
        return pickUpCarrier;
40
    }
41
 
42
 
43
    /**
44
     * Sets the pickUpCarrier value for this CompletedSmartPostDetail.
45
     * 
46
     * @param pickUpCarrier   * Identifies the carrier that will pick up the SmartPost shipment.
47
     */
48
    public void setPickUpCarrier(com.fedex.ship.stub.CarrierCodeType pickUpCarrier) {
49
        this.pickUpCarrier = pickUpCarrier;
50
    }
51
 
52
 
53
    /**
54
     * Gets the machinable value for this CompletedSmartPostDetail.
55
     * 
56
     * @return machinable   * Indicates whether the shipment is deemed to be machineable,
57
     * based on dimensions, weight, and packaging.
58
     */
59
    public java.lang.Boolean getMachinable() {
60
        return machinable;
61
    }
62
 
63
 
64
    /**
65
     * Sets the machinable value for this CompletedSmartPostDetail.
66
     * 
67
     * @param machinable   * Indicates whether the shipment is deemed to be machineable,
68
     * based on dimensions, weight, and packaging.
69
     */
70
    public void setMachinable(java.lang.Boolean machinable) {
71
        this.machinable = machinable;
72
    }
73
 
74
    private java.lang.Object __equalsCalc = null;
75
    public synchronized boolean equals(java.lang.Object obj) {
76
        if (!(obj instanceof CompletedSmartPostDetail)) return false;
77
        CompletedSmartPostDetail other = (CompletedSmartPostDetail) obj;
78
        if (obj == null) return false;
79
        if (this == obj) return true;
80
        if (__equalsCalc != null) {
81
            return (__equalsCalc == obj);
82
        }
83
        __equalsCalc = obj;
84
        boolean _equals;
85
        _equals = true && 
86
            ((this.pickUpCarrier==null && other.getPickUpCarrier()==null) || 
87
             (this.pickUpCarrier!=null &&
88
              this.pickUpCarrier.equals(other.getPickUpCarrier()))) &&
89
            ((this.machinable==null && other.getMachinable()==null) || 
90
             (this.machinable!=null &&
91
              this.machinable.equals(other.getMachinable())));
92
        __equalsCalc = null;
93
        return _equals;
94
    }
95
 
96
    private boolean __hashCodeCalc = false;
97
    public synchronized int hashCode() {
98
        if (__hashCodeCalc) {
99
            return 0;
100
        }
101
        __hashCodeCalc = true;
102
        int _hashCode = 1;
103
        if (getPickUpCarrier() != null) {
104
            _hashCode += getPickUpCarrier().hashCode();
105
        }
106
        if (getMachinable() != null) {
107
            _hashCode += getMachinable().hashCode();
108
        }
109
        __hashCodeCalc = false;
110
        return _hashCode;
111
    }
112
 
113
    // Type metadata
114
    private static org.apache.axis.description.TypeDesc typeDesc =
115
        new org.apache.axis.description.TypeDesc(CompletedSmartPostDetail.class, true);
116
 
117
    static {
118
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CompletedSmartPostDetail"));
119
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
120
        elemField.setFieldName("pickUpCarrier");
121
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PickUpCarrier"));
122
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CarrierCodeType"));
123
        elemField.setMinOccurs(0);
124
        elemField.setNillable(false);
125
        typeDesc.addFieldDesc(elemField);
126
        elemField = new org.apache.axis.description.ElementDesc();
127
        elemField.setFieldName("machinable");
128
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Machinable"));
129
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
130
        elemField.setMinOccurs(0);
131
        elemField.setNillable(false);
132
        typeDesc.addFieldDesc(elemField);
133
    }
134
 
135
    /**
136
     * Return type metadata object
137
     */
138
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
139
        return typeDesc;
140
    }
141
 
142
    /**
143
     * Get Custom Serializer
144
     */
145
    public static org.apache.axis.encoding.Serializer getSerializer(
146
           java.lang.String mechType, 
147
           java.lang.Class _javaType,  
148
           javax.xml.namespace.QName _xmlType) {
149
        return 
150
          new  org.apache.axis.encoding.ser.BeanSerializer(
151
            _javaType, _xmlType, typeDesc);
152
    }
153
 
154
    /**
155
     * Get Custom Deserializer
156
     */
157
    public static org.apache.axis.encoding.Deserializer getDeserializer(
158
           java.lang.String mechType, 
159
           java.lang.Class _javaType,  
160
           javax.xml.namespace.QName _xmlType) {
161
        return 
162
          new  org.apache.axis.encoding.ser.BeanDeserializer(
163
            _javaType, _xmlType, typeDesc);
164
    }
165
 
166
}