| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* ShippingDocumentPart.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 |
* A single part of a shipping document, such as one page of a multiple-page
|
|
|
13 |
* document whose format requires a separate image per page.
|
|
|
14 |
*/
|
|
|
15 |
public class ShippingDocumentPart implements java.io.Serializable {
|
|
|
16 |
/* The one-origin position of this part within a document. */
|
|
|
17 |
private org.apache.axis.types.PositiveInteger documentPartSequenceNumber;
|
|
|
18 |
|
|
|
19 |
/* Graphic or printer commands for this image within a document. */
|
|
|
20 |
private byte[] image;
|
|
|
21 |
|
|
|
22 |
public ShippingDocumentPart() {
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
public ShippingDocumentPart(
|
|
|
26 |
org.apache.axis.types.PositiveInteger documentPartSequenceNumber,
|
|
|
27 |
byte[] image) {
|
|
|
28 |
this.documentPartSequenceNumber = documentPartSequenceNumber;
|
|
|
29 |
this.image = image;
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
/**
|
|
|
34 |
* Gets the documentPartSequenceNumber value for this ShippingDocumentPart.
|
|
|
35 |
*
|
|
|
36 |
* @return documentPartSequenceNumber * The one-origin position of this part within a document.
|
|
|
37 |
*/
|
|
|
38 |
public org.apache.axis.types.PositiveInteger getDocumentPartSequenceNumber() {
|
|
|
39 |
return documentPartSequenceNumber;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
/**
|
|
|
44 |
* Sets the documentPartSequenceNumber value for this ShippingDocumentPart.
|
|
|
45 |
*
|
|
|
46 |
* @param documentPartSequenceNumber * The one-origin position of this part within a document.
|
|
|
47 |
*/
|
|
|
48 |
public void setDocumentPartSequenceNumber(org.apache.axis.types.PositiveInteger documentPartSequenceNumber) {
|
|
|
49 |
this.documentPartSequenceNumber = documentPartSequenceNumber;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
/**
|
|
|
54 |
* Gets the image value for this ShippingDocumentPart.
|
|
|
55 |
*
|
|
|
56 |
* @return image * Graphic or printer commands for this image within a document.
|
|
|
57 |
*/
|
|
|
58 |
public byte[] getImage() {
|
|
|
59 |
return image;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Sets the image value for this ShippingDocumentPart.
|
|
|
65 |
*
|
|
|
66 |
* @param image * Graphic or printer commands for this image within a document.
|
|
|
67 |
*/
|
|
|
68 |
public void setImage(byte[] image) {
|
|
|
69 |
this.image = image;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
private java.lang.Object __equalsCalc = null;
|
|
|
73 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
74 |
if (!(obj instanceof ShippingDocumentPart)) return false;
|
|
|
75 |
ShippingDocumentPart other = (ShippingDocumentPart) obj;
|
|
|
76 |
if (obj == null) return false;
|
|
|
77 |
if (this == obj) return true;
|
|
|
78 |
if (__equalsCalc != null) {
|
|
|
79 |
return (__equalsCalc == obj);
|
|
|
80 |
}
|
|
|
81 |
__equalsCalc = obj;
|
|
|
82 |
boolean _equals;
|
|
|
83 |
_equals = true &&
|
|
|
84 |
((this.documentPartSequenceNumber==null && other.getDocumentPartSequenceNumber()==null) ||
|
|
|
85 |
(this.documentPartSequenceNumber!=null &&
|
|
|
86 |
this.documentPartSequenceNumber.equals(other.getDocumentPartSequenceNumber()))) &&
|
|
|
87 |
((this.image==null && other.getImage()==null) ||
|
|
|
88 |
(this.image!=null &&
|
|
|
89 |
java.util.Arrays.equals(this.image, other.getImage())));
|
|
|
90 |
__equalsCalc = null;
|
|
|
91 |
return _equals;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
private boolean __hashCodeCalc = false;
|
|
|
95 |
public synchronized int hashCode() {
|
|
|
96 |
if (__hashCodeCalc) {
|
|
|
97 |
return 0;
|
|
|
98 |
}
|
|
|
99 |
__hashCodeCalc = true;
|
|
|
100 |
int _hashCode = 1;
|
|
|
101 |
if (getDocumentPartSequenceNumber() != null) {
|
|
|
102 |
_hashCode += getDocumentPartSequenceNumber().hashCode();
|
|
|
103 |
}
|
|
|
104 |
if (getImage() != null) {
|
|
|
105 |
for (int i=0;
|
|
|
106 |
i<java.lang.reflect.Array.getLength(getImage());
|
|
|
107 |
i++) {
|
|
|
108 |
java.lang.Object obj = java.lang.reflect.Array.get(getImage(), i);
|
|
|
109 |
if (obj != null &&
|
|
|
110 |
!obj.getClass().isArray()) {
|
|
|
111 |
_hashCode += obj.hashCode();
|
|
|
112 |
}
|
|
|
113 |
}
|
|
|
114 |
}
|
|
|
115 |
__hashCodeCalc = false;
|
|
|
116 |
return _hashCode;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
// Type metadata
|
|
|
120 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
121 |
new org.apache.axis.description.TypeDesc(ShippingDocumentPart.class, true);
|
|
|
122 |
|
|
|
123 |
static {
|
|
|
124 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentPart"));
|
|
|
125 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
126 |
elemField.setFieldName("documentPartSequenceNumber");
|
|
|
127 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocumentPartSequenceNumber"));
|
|
|
128 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "positiveInteger"));
|
|
|
129 |
elemField.setMinOccurs(0);
|
|
|
130 |
elemField.setNillable(false);
|
|
|
131 |
typeDesc.addFieldDesc(elemField);
|
|
|
132 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
133 |
elemField.setFieldName("image");
|
|
|
134 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Image"));
|
|
|
135 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
|
|
|
136 |
elemField.setMinOccurs(0);
|
|
|
137 |
elemField.setNillable(false);
|
|
|
138 |
typeDesc.addFieldDesc(elemField);
|
|
|
139 |
}
|
|
|
140 |
|
|
|
141 |
/**
|
|
|
142 |
* Return type metadata object
|
|
|
143 |
*/
|
|
|
144 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
145 |
return typeDesc;
|
|
|
146 |
}
|
|
|
147 |
|
|
|
148 |
/**
|
|
|
149 |
* Get Custom Serializer
|
|
|
150 |
*/
|
|
|
151 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
152 |
java.lang.String mechType,
|
|
|
153 |
java.lang.Class _javaType,
|
|
|
154 |
javax.xml.namespace.QName _xmlType) {
|
|
|
155 |
return
|
|
|
156 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
157 |
_javaType, _xmlType, typeDesc);
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
/**
|
|
|
161 |
* Get Custom Deserializer
|
|
|
162 |
*/
|
|
|
163 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
164 |
java.lang.String mechType,
|
|
|
165 |
java.lang.Class _javaType,
|
|
|
166 |
javax.xml.namespace.QName _xmlType) {
|
|
|
167 |
return
|
|
|
168 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
169 |
_javaType, _xmlType, typeDesc);
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
}
|