Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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