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