Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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