| 7908 |
manish.sha |
1 |
/**
|
|
|
2 |
* VersionId.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.track.stub;
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
/**
|
|
|
12 |
* Identifies the version/level of a service operation expected by
|
|
|
13 |
* a caller (in each request) and performed by the callee (in each reply).
|
|
|
14 |
*/
|
|
|
15 |
public class VersionId implements java.io.Serializable {
|
|
|
16 |
/* Identifies a system or sub-system which performs an operation. */
|
|
|
17 |
private java.lang.String serviceId;
|
|
|
18 |
|
|
|
19 |
/* Identifies the service business level. */
|
|
|
20 |
private int major;
|
|
|
21 |
|
|
|
22 |
/* Identifies the service interface level. */
|
|
|
23 |
private int intermediate;
|
|
|
24 |
|
|
|
25 |
/* Identifies the service code level. */
|
|
|
26 |
private int minor;
|
|
|
27 |
|
|
|
28 |
public VersionId() {
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
public VersionId(
|
|
|
32 |
java.lang.String serviceId,
|
|
|
33 |
int major,
|
|
|
34 |
int intermediate,
|
|
|
35 |
int minor) {
|
|
|
36 |
this.serviceId = serviceId;
|
|
|
37 |
this.major = major;
|
|
|
38 |
this.intermediate = intermediate;
|
|
|
39 |
this.minor = minor;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
/**
|
|
|
44 |
* Gets the serviceId value for this VersionId.
|
|
|
45 |
*
|
|
|
46 |
* @return serviceId * Identifies a system or sub-system which performs an operation.
|
|
|
47 |
*/
|
|
|
48 |
public java.lang.String getServiceId() {
|
|
|
49 |
return serviceId;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
/**
|
|
|
54 |
* Sets the serviceId value for this VersionId.
|
|
|
55 |
*
|
|
|
56 |
* @param serviceId * Identifies a system or sub-system which performs an operation.
|
|
|
57 |
*/
|
|
|
58 |
public void setServiceId(java.lang.String serviceId) {
|
|
|
59 |
this.serviceId = serviceId;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Gets the major value for this VersionId.
|
|
|
65 |
*
|
|
|
66 |
* @return major * Identifies the service business level.
|
|
|
67 |
*/
|
|
|
68 |
public int getMajor() {
|
|
|
69 |
return major;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
/**
|
|
|
74 |
* Sets the major value for this VersionId.
|
|
|
75 |
*
|
|
|
76 |
* @param major * Identifies the service business level.
|
|
|
77 |
*/
|
|
|
78 |
public void setMajor(int major) {
|
|
|
79 |
this.major = major;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
/**
|
|
|
84 |
* Gets the intermediate value for this VersionId.
|
|
|
85 |
*
|
|
|
86 |
* @return intermediate * Identifies the service interface level.
|
|
|
87 |
*/
|
|
|
88 |
public int getIntermediate() {
|
|
|
89 |
return intermediate;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
/**
|
|
|
94 |
* Sets the intermediate value for this VersionId.
|
|
|
95 |
*
|
|
|
96 |
* @param intermediate * Identifies the service interface level.
|
|
|
97 |
*/
|
|
|
98 |
public void setIntermediate(int intermediate) {
|
|
|
99 |
this.intermediate = intermediate;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
/**
|
|
|
104 |
* Gets the minor value for this VersionId.
|
|
|
105 |
*
|
|
|
106 |
* @return minor * Identifies the service code level.
|
|
|
107 |
*/
|
|
|
108 |
public int getMinor() {
|
|
|
109 |
return minor;
|
|
|
110 |
}
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
/**
|
|
|
114 |
* Sets the minor value for this VersionId.
|
|
|
115 |
*
|
|
|
116 |
* @param minor * Identifies the service code level.
|
|
|
117 |
*/
|
|
|
118 |
public void setMinor(int minor) {
|
|
|
119 |
this.minor = minor;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
private java.lang.Object __equalsCalc = null;
|
|
|
123 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
124 |
if (!(obj instanceof VersionId)) return false;
|
|
|
125 |
VersionId other = (VersionId) obj;
|
|
|
126 |
if (obj == null) return false;
|
|
|
127 |
if (this == obj) return true;
|
|
|
128 |
if (__equalsCalc != null) {
|
|
|
129 |
return (__equalsCalc == obj);
|
|
|
130 |
}
|
|
|
131 |
__equalsCalc = obj;
|
|
|
132 |
boolean _equals;
|
|
|
133 |
_equals = true &&
|
|
|
134 |
((this.serviceId==null && other.getServiceId()==null) ||
|
|
|
135 |
(this.serviceId!=null &&
|
|
|
136 |
this.serviceId.equals(other.getServiceId()))) &&
|
|
|
137 |
this.major == other.getMajor() &&
|
|
|
138 |
this.intermediate == other.getIntermediate() &&
|
|
|
139 |
this.minor == other.getMinor();
|
|
|
140 |
__equalsCalc = null;
|
|
|
141 |
return _equals;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
private boolean __hashCodeCalc = false;
|
|
|
145 |
public synchronized int hashCode() {
|
|
|
146 |
if (__hashCodeCalc) {
|
|
|
147 |
return 0;
|
|
|
148 |
}
|
|
|
149 |
__hashCodeCalc = true;
|
|
|
150 |
int _hashCode = 1;
|
|
|
151 |
if (getServiceId() != null) {
|
|
|
152 |
_hashCode += getServiceId().hashCode();
|
|
|
153 |
}
|
|
|
154 |
_hashCode += getMajor();
|
|
|
155 |
_hashCode += getIntermediate();
|
|
|
156 |
_hashCode += getMinor();
|
|
|
157 |
__hashCodeCalc = false;
|
|
|
158 |
return _hashCode;
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
// Type metadata
|
|
|
162 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
163 |
new org.apache.axis.description.TypeDesc(VersionId.class, true);
|
|
|
164 |
|
|
|
165 |
static {
|
|
|
166 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "VersionId"));
|
|
|
167 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
168 |
elemField.setFieldName("serviceId");
|
|
|
169 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "ServiceId"));
|
|
|
170 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
171 |
elemField.setNillable(false);
|
|
|
172 |
typeDesc.addFieldDesc(elemField);
|
|
|
173 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
174 |
elemField.setFieldName("major");
|
|
|
175 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Major"));
|
|
|
176 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
|
|
177 |
elemField.setNillable(false);
|
|
|
178 |
typeDesc.addFieldDesc(elemField);
|
|
|
179 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
180 |
elemField.setFieldName("intermediate");
|
|
|
181 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Intermediate"));
|
|
|
182 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
|
|
183 |
elemField.setNillable(false);
|
|
|
184 |
typeDesc.addFieldDesc(elemField);
|
|
|
185 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
186 |
elemField.setFieldName("minor");
|
|
|
187 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Minor"));
|
|
|
188 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
|
|
189 |
elemField.setNillable(false);
|
|
|
190 |
typeDesc.addFieldDesc(elemField);
|
|
|
191 |
}
|
|
|
192 |
|
|
|
193 |
/**
|
|
|
194 |
* Return type metadata object
|
|
|
195 |
*/
|
|
|
196 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
197 |
return typeDesc;
|
|
|
198 |
}
|
|
|
199 |
|
|
|
200 |
/**
|
|
|
201 |
* Get Custom Serializer
|
|
|
202 |
*/
|
|
|
203 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
204 |
java.lang.String mechType,
|
|
|
205 |
java.lang.Class _javaType,
|
|
|
206 |
javax.xml.namespace.QName _xmlType) {
|
|
|
207 |
return
|
|
|
208 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
209 |
_javaType, _xmlType, typeDesc);
|
|
|
210 |
}
|
|
|
211 |
|
|
|
212 |
/**
|
|
|
213 |
* Get Custom Deserializer
|
|
|
214 |
*/
|
|
|
215 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
216 |
java.lang.String mechType,
|
|
|
217 |
java.lang.Class _javaType,
|
|
|
218 |
javax.xml.namespace.QName _xmlType) {
|
|
|
219 |
return
|
|
|
220 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
221 |
_javaType, _xmlType, typeDesc);
|
|
|
222 |
}
|
|
|
223 |
|
|
|
224 |
}
|