Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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