Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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