
com.fedex.ship.stub.ShippingDocumentPart Maven / Gradle / Ivy
The newest version!
/**
* ShippingDocumentPart.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.fedex.ship.stub;
/**
* A single part of a shipping document, such as one page of a multiple-page
* document whose format requires a separate image per page.
*/
public class ShippingDocumentPart implements java.io.Serializable {
/* The one-origin position of this part within a document. */
private org.apache.axis.types.PositiveInteger documentPartSequenceNumber;
/* Graphic or printer commands for this image within a document. */
private byte[] image;
public ShippingDocumentPart() {
}
public ShippingDocumentPart(
org.apache.axis.types.PositiveInteger documentPartSequenceNumber,
byte[] image) {
this.documentPartSequenceNumber = documentPartSequenceNumber;
this.image = image;
}
/**
* Gets the documentPartSequenceNumber value for this ShippingDocumentPart.
*
* @return documentPartSequenceNumber * The one-origin position of this part within a document.
*/
public org.apache.axis.types.PositiveInteger getDocumentPartSequenceNumber() {
return documentPartSequenceNumber;
}
/**
* Sets the documentPartSequenceNumber value for this ShippingDocumentPart.
*
* @param documentPartSequenceNumber * The one-origin position of this part within a document.
*/
public void setDocumentPartSequenceNumber(org.apache.axis.types.PositiveInteger documentPartSequenceNumber) {
this.documentPartSequenceNumber = documentPartSequenceNumber;
}
/**
* Gets the image value for this ShippingDocumentPart.
*
* @return image * Graphic or printer commands for this image within a document.
*/
public byte[] getImage() {
return image;
}
/**
* Sets the image value for this ShippingDocumentPart.
*
* @param image * Graphic or printer commands for this image within a document.
*/
public void setImage(byte[] image) {
this.image = image;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ShippingDocumentPart)) return false;
ShippingDocumentPart other = (ShippingDocumentPart) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.documentPartSequenceNumber==null && other.getDocumentPartSequenceNumber()==null) ||
(this.documentPartSequenceNumber!=null &&
this.documentPartSequenceNumber.equals(other.getDocumentPartSequenceNumber()))) &&
((this.image==null && other.getImage()==null) ||
(this.image!=null &&
java.util.Arrays.equals(this.image, other.getImage())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getDocumentPartSequenceNumber() != null) {
_hashCode += getDocumentPartSequenceNumber().hashCode();
}
if (getImage() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy