Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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