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