Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * SignatureOptionDetail.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
 * The descriptive data required for FedEx delivery signature services.
13
 */
14
public class SignatureOptionDetail  implements java.io.Serializable {
15
    /* Identifies the delivery signature services option selected
16
     * by the customer for this shipment. See OptionType for the list of
17
     * valid values. */
18
    private com.fedex.ship.stub.SignatureOptionType optionType;
19
 
20
    /* Identifies the delivery signature release authorization number. */
21
    private java.lang.String signatureReleaseNumber;
22
 
23
    public SignatureOptionDetail() {
24
    }
25
 
26
    public SignatureOptionDetail(
27
           com.fedex.ship.stub.SignatureOptionType optionType,
28
           java.lang.String signatureReleaseNumber) {
29
           this.optionType = optionType;
30
           this.signatureReleaseNumber = signatureReleaseNumber;
31
    }
32
 
33
 
34
    /**
35
     * Gets the optionType value for this SignatureOptionDetail.
36
     * 
37
     * @return optionType   * Identifies the delivery signature services option selected
38
     * by the customer for this shipment. See OptionType for the list of
39
     * valid values.
40
     */
41
    public com.fedex.ship.stub.SignatureOptionType getOptionType() {
42
        return optionType;
43
    }
44
 
45
 
46
    /**
47
     * Sets the optionType value for this SignatureOptionDetail.
48
     * 
49
     * @param optionType   * Identifies the delivery signature services option selected
50
     * by the customer for this shipment. See OptionType for the list of
51
     * valid values.
52
     */
53
    public void setOptionType(com.fedex.ship.stub.SignatureOptionType optionType) {
54
        this.optionType = optionType;
55
    }
56
 
57
 
58
    /**
59
     * Gets the signatureReleaseNumber value for this SignatureOptionDetail.
60
     * 
61
     * @return signatureReleaseNumber   * Identifies the delivery signature release authorization number.
62
     */
63
    public java.lang.String getSignatureReleaseNumber() {
64
        return signatureReleaseNumber;
65
    }
66
 
67
 
68
    /**
69
     * Sets the signatureReleaseNumber value for this SignatureOptionDetail.
70
     * 
71
     * @param signatureReleaseNumber   * Identifies the delivery signature release authorization number.
72
     */
73
    public void setSignatureReleaseNumber(java.lang.String signatureReleaseNumber) {
74
        this.signatureReleaseNumber = signatureReleaseNumber;
75
    }
76
 
77
    private java.lang.Object __equalsCalc = null;
78
    public synchronized boolean equals(java.lang.Object obj) {
79
        if (!(obj instanceof SignatureOptionDetail)) return false;
80
        SignatureOptionDetail other = (SignatureOptionDetail) obj;
81
        if (obj == null) return false;
82
        if (this == obj) return true;
83
        if (__equalsCalc != null) {
84
            return (__equalsCalc == obj);
85
        }
86
        __equalsCalc = obj;
87
        boolean _equals;
88
        _equals = true && 
89
            ((this.optionType==null && other.getOptionType()==null) || 
90
             (this.optionType!=null &&
91
              this.optionType.equals(other.getOptionType()))) &&
92
            ((this.signatureReleaseNumber==null && other.getSignatureReleaseNumber()==null) || 
93
             (this.signatureReleaseNumber!=null &&
94
              this.signatureReleaseNumber.equals(other.getSignatureReleaseNumber())));
95
        __equalsCalc = null;
96
        return _equals;
97
    }
98
 
99
    private boolean __hashCodeCalc = false;
100
    public synchronized int hashCode() {
101
        if (__hashCodeCalc) {
102
            return 0;
103
        }
104
        __hashCodeCalc = true;
105
        int _hashCode = 1;
106
        if (getOptionType() != null) {
107
            _hashCode += getOptionType().hashCode();
108
        }
109
        if (getSignatureReleaseNumber() != null) {
110
            _hashCode += getSignatureReleaseNumber().hashCode();
111
        }
112
        __hashCodeCalc = false;
113
        return _hashCode;
114
    }
115
 
116
    // Type metadata
117
    private static org.apache.axis.description.TypeDesc typeDesc =
118
        new org.apache.axis.description.TypeDesc(SignatureOptionDetail.class, true);
119
 
120
    static {
121
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SignatureOptionDetail"));
122
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
123
        elemField.setFieldName("optionType");
124
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "OptionType"));
125
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SignatureOptionType"));
126
        elemField.setNillable(false);
127
        typeDesc.addFieldDesc(elemField);
128
        elemField = new org.apache.axis.description.ElementDesc();
129
        elemField.setFieldName("signatureReleaseNumber");
130
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SignatureReleaseNumber"));
131
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
132
        elemField.setMinOccurs(0);
133
        elemField.setNillable(false);
134
        typeDesc.addFieldDesc(elemField);
135
    }
136
 
137
    /**
138
     * Return type metadata object
139
     */
140
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
141
        return typeDesc;
142
    }
143
 
144
    /**
145
     * Get Custom Serializer
146
     */
147
    public static org.apache.axis.encoding.Serializer getSerializer(
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.BeanSerializer(
153
            _javaType, _xmlType, typeDesc);
154
    }
155
 
156
    /**
157
     * Get Custom Deserializer
158
     */
159
    public static org.apache.axis.encoding.Deserializer getDeserializer(
160
           java.lang.String mechType, 
161
           java.lang.Class _javaType,  
162
           javax.xml.namespace.QName _xmlType) {
163
        return 
164
          new  org.apache.axis.encoding.ser.BeanDeserializer(
165
            _javaType, _xmlType, typeDesc);
166
    }
167
 
168
}