Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * PendingShipmentAccessDetail.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
 * This information describes how and when a pending shipment may
13
 * be accessed for completion.
14
 */
15
public class PendingShipmentAccessDetail  implements java.io.Serializable {
16
    /* Only for pending shipment type of "EMAIL" */
17
    private java.lang.String emailLabelUrl;
18
 
19
    /* Only for pending shipment type of "EMAIL" */
20
    private java.lang.String userId;
21
 
22
    /* Only for pending shipment type of "EMAIL" */
23
    private java.lang.String password;
24
 
25
    /* This element is currently not supported and is for the future
26
     * use. */
27
    private java.util.Calendar expirationTimestamp;
28
 
29
    public PendingShipmentAccessDetail() {
30
    }
31
 
32
    public PendingShipmentAccessDetail(
33
           java.lang.String emailLabelUrl,
34
           java.lang.String userId,
35
           java.lang.String password,
36
           java.util.Calendar expirationTimestamp) {
37
           this.emailLabelUrl = emailLabelUrl;
38
           this.userId = userId;
39
           this.password = password;
40
           this.expirationTimestamp = expirationTimestamp;
41
    }
42
 
43
 
44
    /**
45
     * Gets the emailLabelUrl value for this PendingShipmentAccessDetail.
46
     * 
47
     * @return emailLabelUrl   * Only for pending shipment type of "EMAIL"
48
     */
49
    public java.lang.String getEmailLabelUrl() {
50
        return emailLabelUrl;
51
    }
52
 
53
 
54
    /**
55
     * Sets the emailLabelUrl value for this PendingShipmentAccessDetail.
56
     * 
57
     * @param emailLabelUrl   * Only for pending shipment type of "EMAIL"
58
     */
59
    public void setEmailLabelUrl(java.lang.String emailLabelUrl) {
60
        this.emailLabelUrl = emailLabelUrl;
61
    }
62
 
63
 
64
    /**
65
     * Gets the userId value for this PendingShipmentAccessDetail.
66
     * 
67
     * @return userId   * Only for pending shipment type of "EMAIL"
68
     */
69
    public java.lang.String getUserId() {
70
        return userId;
71
    }
72
 
73
 
74
    /**
75
     * Sets the userId value for this PendingShipmentAccessDetail.
76
     * 
77
     * @param userId   * Only for pending shipment type of "EMAIL"
78
     */
79
    public void setUserId(java.lang.String userId) {
80
        this.userId = userId;
81
    }
82
 
83
 
84
    /**
85
     * Gets the password value for this PendingShipmentAccessDetail.
86
     * 
87
     * @return password   * Only for pending shipment type of "EMAIL"
88
     */
89
    public java.lang.String getPassword() {
90
        return password;
91
    }
92
 
93
 
94
    /**
95
     * Sets the password value for this PendingShipmentAccessDetail.
96
     * 
97
     * @param password   * Only for pending shipment type of "EMAIL"
98
     */
99
    public void setPassword(java.lang.String password) {
100
        this.password = password;
101
    }
102
 
103
 
104
    /**
105
     * Gets the expirationTimestamp value for this PendingShipmentAccessDetail.
106
     * 
107
     * @return expirationTimestamp   * This element is currently not supported and is for the future
108
     * use.
109
     */
110
    public java.util.Calendar getExpirationTimestamp() {
111
        return expirationTimestamp;
112
    }
113
 
114
 
115
    /**
116
     * Sets the expirationTimestamp value for this PendingShipmentAccessDetail.
117
     * 
118
     * @param expirationTimestamp   * This element is currently not supported and is for the future
119
     * use.
120
     */
121
    public void setExpirationTimestamp(java.util.Calendar expirationTimestamp) {
122
        this.expirationTimestamp = expirationTimestamp;
123
    }
124
 
125
    private java.lang.Object __equalsCalc = null;
126
    public synchronized boolean equals(java.lang.Object obj) {
127
        if (!(obj instanceof PendingShipmentAccessDetail)) return false;
128
        PendingShipmentAccessDetail other = (PendingShipmentAccessDetail) obj;
129
        if (obj == null) return false;
130
        if (this == obj) return true;
131
        if (__equalsCalc != null) {
132
            return (__equalsCalc == obj);
133
        }
134
        __equalsCalc = obj;
135
        boolean _equals;
136
        _equals = true && 
137
            ((this.emailLabelUrl==null && other.getEmailLabelUrl()==null) || 
138
             (this.emailLabelUrl!=null &&
139
              this.emailLabelUrl.equals(other.getEmailLabelUrl()))) &&
140
            ((this.userId==null && other.getUserId()==null) || 
141
             (this.userId!=null &&
142
              this.userId.equals(other.getUserId()))) &&
143
            ((this.password==null && other.getPassword()==null) || 
144
             (this.password!=null &&
145
              this.password.equals(other.getPassword()))) &&
146
            ((this.expirationTimestamp==null && other.getExpirationTimestamp()==null) || 
147
             (this.expirationTimestamp!=null &&
148
              this.expirationTimestamp.equals(other.getExpirationTimestamp())));
149
        __equalsCalc = null;
150
        return _equals;
151
    }
152
 
153
    private boolean __hashCodeCalc = false;
154
    public synchronized int hashCode() {
155
        if (__hashCodeCalc) {
156
            return 0;
157
        }
158
        __hashCodeCalc = true;
159
        int _hashCode = 1;
160
        if (getEmailLabelUrl() != null) {
161
            _hashCode += getEmailLabelUrl().hashCode();
162
        }
163
        if (getUserId() != null) {
164
            _hashCode += getUserId().hashCode();
165
        }
166
        if (getPassword() != null) {
167
            _hashCode += getPassword().hashCode();
168
        }
169
        if (getExpirationTimestamp() != null) {
170
            _hashCode += getExpirationTimestamp().hashCode();
171
        }
172
        __hashCodeCalc = false;
173
        return _hashCode;
174
    }
175
 
176
    // Type metadata
177
    private static org.apache.axis.description.TypeDesc typeDesc =
178
        new org.apache.axis.description.TypeDesc(PendingShipmentAccessDetail.class, true);
179
 
180
    static {
181
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PendingShipmentAccessDetail"));
182
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
183
        elemField.setFieldName("emailLabelUrl");
184
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EmailLabelUrl"));
185
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
186
        elemField.setMinOccurs(0);
187
        elemField.setNillable(false);
188
        typeDesc.addFieldDesc(elemField);
189
        elemField = new org.apache.axis.description.ElementDesc();
190
        elemField.setFieldName("userId");
191
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "UserId"));
192
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
193
        elemField.setMinOccurs(0);
194
        elemField.setNillable(false);
195
        typeDesc.addFieldDesc(elemField);
196
        elemField = new org.apache.axis.description.ElementDesc();
197
        elemField.setFieldName("password");
198
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Password"));
199
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
200
        elemField.setMinOccurs(0);
201
        elemField.setNillable(false);
202
        typeDesc.addFieldDesc(elemField);
203
        elemField = new org.apache.axis.description.ElementDesc();
204
        elemField.setFieldName("expirationTimestamp");
205
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ExpirationTimestamp"));
206
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
207
        elemField.setMinOccurs(0);
208
        elemField.setNillable(false);
209
        typeDesc.addFieldDesc(elemField);
210
    }
211
 
212
    /**
213
     * Return type metadata object
214
     */
215
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
216
        return typeDesc;
217
    }
218
 
219
    /**
220
     * Get Custom Serializer
221
     */
222
    public static org.apache.axis.encoding.Serializer getSerializer(
223
           java.lang.String mechType, 
224
           java.lang.Class _javaType,  
225
           javax.xml.namespace.QName _xmlType) {
226
        return 
227
          new  org.apache.axis.encoding.ser.BeanSerializer(
228
            _javaType, _xmlType, typeDesc);
229
    }
230
 
231
    /**
232
     * Get Custom Deserializer
233
     */
234
    public static org.apache.axis.encoding.Deserializer getDeserializer(
235
           java.lang.String mechType, 
236
           java.lang.Class _javaType,  
237
           javax.xml.namespace.QName _xmlType) {
238
        return 
239
          new  org.apache.axis.encoding.ser.BeanDeserializer(
240
            _javaType, _xmlType, typeDesc);
241
    }
242
 
243
}