Subversion Repositories SmartDukaan

Rev

Rev 20640 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20640 amit.gupta 1
/**
2
 * LabelInfo.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 LabelInfo  implements java.io.Serializable {
22577 amit.gupta 11
    @Override
12
	public String toString() {
13
		return "LabelInfo [reportID=" + reportID + ", reportType=" + reportType + "]";
14
	}
20640 amit.gupta 15
 
22577 amit.gupta 16
	private int reportID;
17
 
20640 amit.gupta 18
    private java.lang.String reportType;
19
 
20
    public LabelInfo() {
21
    }
22
 
23
    public LabelInfo(
24
           int reportID,
25
           java.lang.String reportType) {
26
           this.reportID = reportID;
27
           this.reportType = reportType;
28
    }
29
 
30
 
31
    /**
32
     * Gets the reportID value for this LabelInfo.
33
     * 
34
     * @return reportID
35
     */
36
    public int getReportID() {
37
        return reportID;
38
    }
39
 
40
 
41
    /**
42
     * Sets the reportID value for this LabelInfo.
43
     * 
44
     * @param reportID
45
     */
46
    public void setReportID(int reportID) {
47
        this.reportID = reportID;
48
    }
49
 
50
 
51
    /**
52
     * Gets the reportType value for this LabelInfo.
53
     * 
54
     * @return reportType
55
     */
56
    public java.lang.String getReportType() {
57
        return reportType;
58
    }
59
 
60
 
61
    /**
62
     * Sets the reportType value for this LabelInfo.
63
     * 
64
     * @param reportType
65
     */
66
    public void setReportType(java.lang.String reportType) {
67
        this.reportType = reportType;
68
    }
69
 
70
    private java.lang.Object __equalsCalc = null;
71
    public synchronized boolean equals(java.lang.Object obj) {
72
        if (!(obj instanceof LabelInfo)) return false;
73
        LabelInfo other = (LabelInfo) obj;
74
        if (obj == null) return false;
75
        if (this == obj) return true;
76
        if (__equalsCalc != null) {
77
            return (__equalsCalc == obj);
78
        }
79
        __equalsCalc = obj;
80
        boolean _equals;
81
        _equals = true && 
82
            this.reportID == other.getReportID() &&
83
            ((this.reportType==null && other.getReportType()==null) || 
84
             (this.reportType!=null &&
85
              this.reportType.equals(other.getReportType())));
86
        __equalsCalc = null;
87
        return _equals;
88
    }
89
 
90
    private boolean __hashCodeCalc = false;
91
    public synchronized int hashCode() {
92
        if (__hashCodeCalc) {
93
            return 0;
94
        }
95
        __hashCodeCalc = true;
96
        int _hashCode = 1;
97
        _hashCode += getReportID();
98
        if (getReportType() != null) {
99
            _hashCode += getReportType().hashCode();
100
        }
101
        __hashCodeCalc = false;
102
        return _hashCode;
103
    }
104
 
105
    // Type metadata
106
    private static org.apache.axis.description.TypeDesc typeDesc =
107
        new org.apache.axis.description.TypeDesc(LabelInfo.class, true);
108
 
109
    static {
110
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "LabelInfo"));
111
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
112
        elemField.setFieldName("reportID");
113
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ReportID"));
114
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
115
        elemField.setNillable(false);
116
        typeDesc.addFieldDesc(elemField);
117
        elemField = new org.apache.axis.description.ElementDesc();
118
        elemField.setFieldName("reportType");
119
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ReportType"));
120
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
121
        elemField.setNillable(true);
122
        typeDesc.addFieldDesc(elemField);
123
    }
124
 
125
    /**
126
     * Return type metadata object
127
     */
128
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
129
        return typeDesc;
130
    }
131
 
132
    /**
133
     * Get Custom Serializer
134
     */
135
    public static org.apache.axis.encoding.Serializer getSerializer(
136
           java.lang.String mechType, 
137
           java.lang.Class _javaType,  
138
           javax.xml.namespace.QName _xmlType) {
139
        return 
140
          new  org.apache.axis.encoding.ser.BeanSerializer(
141
            _javaType, _xmlType, typeDesc);
142
    }
143
 
144
    /**
145
     * Get Custom Deserializer
146
     */
147
    public static org.apache.axis.encoding.Deserializer getDeserializer(
148
           java.lang.String mechType, 
149
           java.lang.Class _javaType,  
150
           javax.xml.namespace.QName _xmlType) {
151
        return 
152
          new  org.apache.axis.encoding.ser.BeanDeserializer(
153
            _javaType, _xmlType, typeDesc);
154
    }
155
 
156
}