Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20640 amit.gupta 1
/**
2
 * ShipmentLabel.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.aramex.stub;
9
 
10
public class ShipmentLabel  implements java.io.Serializable {
11
    private java.lang.String labelURL;
12
 
13
    private byte[] labelFileContents;
14
 
15
    public ShipmentLabel() {
16
    }
17
 
18
    public ShipmentLabel(
19
           java.lang.String labelURL,
20
           byte[] labelFileContents) {
21
           this.labelURL = labelURL;
22
           this.labelFileContents = labelFileContents;
23
    }
24
 
25
 
26
    /**
27
     * Gets the labelURL value for this ShipmentLabel.
28
     * 
29
     * @return labelURL
30
     */
31
    public java.lang.String getLabelURL() {
32
        return labelURL;
33
    }
34
 
35
 
36
    /**
37
     * Sets the labelURL value for this ShipmentLabel.
38
     * 
39
     * @param labelURL
40
     */
41
    public void setLabelURL(java.lang.String labelURL) {
42
        this.labelURL = labelURL;
43
    }
44
 
45
 
46
    /**
47
     * Gets the labelFileContents value for this ShipmentLabel.
48
     * 
49
     * @return labelFileContents
50
     */
51
    public byte[] getLabelFileContents() {
52
        return labelFileContents;
53
    }
54
 
55
 
56
    /**
57
     * Sets the labelFileContents value for this ShipmentLabel.
58
     * 
59
     * @param labelFileContents
60
     */
61
    public void setLabelFileContents(byte[] labelFileContents) {
62
        this.labelFileContents = labelFileContents;
63
    }
64
 
65
    private java.lang.Object __equalsCalc = null;
66
    public synchronized boolean equals(java.lang.Object obj) {
67
        if (!(obj instanceof ShipmentLabel)) return false;
68
        ShipmentLabel other = (ShipmentLabel) obj;
69
        if (obj == null) return false;
70
        if (this == obj) return true;
71
        if (__equalsCalc != null) {
72
            return (__equalsCalc == obj);
73
        }
74
        __equalsCalc = obj;
75
        boolean _equals;
76
        _equals = true && 
77
            ((this.labelURL==null && other.getLabelURL()==null) || 
78
             (this.labelURL!=null &&
79
              this.labelURL.equals(other.getLabelURL()))) &&
80
            ((this.labelFileContents==null && other.getLabelFileContents()==null) || 
81
             (this.labelFileContents!=null &&
82
              java.util.Arrays.equals(this.labelFileContents, other.getLabelFileContents())));
83
        __equalsCalc = null;
84
        return _equals;
85
    }
86
 
87
    private boolean __hashCodeCalc = false;
88
    public synchronized int hashCode() {
89
        if (__hashCodeCalc) {
90
            return 0;
91
        }
92
        __hashCodeCalc = true;
93
        int _hashCode = 1;
94
        if (getLabelURL() != null) {
95
            _hashCode += getLabelURL().hashCode();
96
        }
97
        if (getLabelFileContents() != null) {
98
            for (int i=0;
99
                 i<java.lang.reflect.Array.getLength(getLabelFileContents());
100
                 i++) {
101
                java.lang.Object obj = java.lang.reflect.Array.get(getLabelFileContents(), i);
102
                if (obj != null &&
103
                    !obj.getClass().isArray()) {
104
                    _hashCode += obj.hashCode();
105
                }
106
            }
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(ShipmentLabel.class, true);
115
 
116
    static {
117
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentLabel"));
118
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
119
        elemField.setFieldName("labelURL");
120
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "LabelURL"));
121
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
122
        elemField.setNillable(true);
123
        typeDesc.addFieldDesc(elemField);
124
        elemField = new org.apache.axis.description.ElementDesc();
125
        elemField.setFieldName("labelFileContents");
126
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "LabelFileContents"));
127
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
128
        elemField.setNillable(true);
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
}