All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fedex.track.stub.DocumentPart Maven / Gradle / Ivy

The newest version!
/**
 * DocumentPart.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.track.stub;


/**
 * Successive parts of the document (only one, for PDF documents).
 */
public class DocumentPart  implements java.io.Serializable {
    /* The one-origin position of this part within a document. */
    private org.apache.axis.types.NonNegativeInteger sequenceNumber;

    /* Graphic or printer commands for this image within a document. */
    private byte[] content;

    public DocumentPart() {
    }

    public DocumentPart(
           org.apache.axis.types.NonNegativeInteger sequenceNumber,
           byte[] content) {
           this.sequenceNumber = sequenceNumber;
           this.content = content;
    }


    /**
     * Gets the sequenceNumber value for this DocumentPart.
     * 
     * @return sequenceNumber   * The one-origin position of this part within a document.
     */
    public org.apache.axis.types.NonNegativeInteger getSequenceNumber() {
        return sequenceNumber;
    }


    /**
     * Sets the sequenceNumber value for this DocumentPart.
     * 
     * @param sequenceNumber   * The one-origin position of this part within a document.
     */
    public void setSequenceNumber(org.apache.axis.types.NonNegativeInteger sequenceNumber) {
        this.sequenceNumber = sequenceNumber;
    }


    /**
     * Gets the content value for this DocumentPart.
     * 
     * @return content   * Graphic or printer commands for this image within a document.
     */
    public byte[] getContent() {
        return content;
    }


    /**
     * Sets the content value for this DocumentPart.
     * 
     * @param content   * Graphic or printer commands for this image within a document.
     */
    public void setContent(byte[] content) {
        this.content = content;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof DocumentPart)) return false;
        DocumentPart other = (DocumentPart) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.sequenceNumber==null && other.getSequenceNumber()==null) || 
             (this.sequenceNumber!=null &&
              this.sequenceNumber.equals(other.getSequenceNumber()))) &&
            ((this.content==null && other.getContent()==null) || 
             (this.content!=null &&
              java.util.Arrays.equals(this.content, other.getContent())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getSequenceNumber() != null) {
            _hashCode += getSequenceNumber().hashCode();
        }
        if (getContent() != null) {
            for (int i=0;
                 i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy