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

com.fedex.ship.stub.PackageOperationalDetail Maven / Gradle / Ivy

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


/**
 * Package-level data required for labeling and/or movement.
 */
public class PackageOperationalDetail  implements java.io.Serializable {
    /* Human-readable text for pre-January 2011 clients. */
    private java.lang.String astraHandlingText;

    /* Human-readable content for use on a label. */
    private com.fedex.ship.stub.OperationalInstruction[] operationalInstructions;

    /* The operational barcodes pertaining to the current package. */
    private com.fedex.ship.stub.PackageBarcodes barcodes;

    /* The FedEx internal code that represents the service and/or
     * features of service for the current package moving under a FedEx Ground
     * service. */
    private java.lang.String groundServiceCode;

    public PackageOperationalDetail() {
    }

    public PackageOperationalDetail(
           java.lang.String astraHandlingText,
           com.fedex.ship.stub.OperationalInstruction[] operationalInstructions,
           com.fedex.ship.stub.PackageBarcodes barcodes,
           java.lang.String groundServiceCode) {
           this.astraHandlingText = astraHandlingText;
           this.operationalInstructions = operationalInstructions;
           this.barcodes = barcodes;
           this.groundServiceCode = groundServiceCode;
    }


    /**
     * Gets the astraHandlingText value for this PackageOperationalDetail.
     * 
     * @return astraHandlingText   * Human-readable text for pre-January 2011 clients.
     */
    public java.lang.String getAstraHandlingText() {
        return astraHandlingText;
    }


    /**
     * Sets the astraHandlingText value for this PackageOperationalDetail.
     * 
     * @param astraHandlingText   * Human-readable text for pre-January 2011 clients.
     */
    public void setAstraHandlingText(java.lang.String astraHandlingText) {
        this.astraHandlingText = astraHandlingText;
    }


    /**
     * Gets the operationalInstructions value for this PackageOperationalDetail.
     * 
     * @return operationalInstructions   * Human-readable content for use on a label.
     */
    public com.fedex.ship.stub.OperationalInstruction[] getOperationalInstructions() {
        return operationalInstructions;
    }


    /**
     * Sets the operationalInstructions value for this PackageOperationalDetail.
     * 
     * @param operationalInstructions   * Human-readable content for use on a label.
     */
    public void setOperationalInstructions(com.fedex.ship.stub.OperationalInstruction[] operationalInstructions) {
        this.operationalInstructions = operationalInstructions;
    }

    public com.fedex.ship.stub.OperationalInstruction getOperationalInstructions(int i) {
        return this.operationalInstructions[i];
    }

    public void setOperationalInstructions(int i, com.fedex.ship.stub.OperationalInstruction _value) {
        this.operationalInstructions[i] = _value;
    }


    /**
     * Gets the barcodes value for this PackageOperationalDetail.
     * 
     * @return barcodes   * The operational barcodes pertaining to the current package.
     */
    public com.fedex.ship.stub.PackageBarcodes getBarcodes() {
        return barcodes;
    }


    /**
     * Sets the barcodes value for this PackageOperationalDetail.
     * 
     * @param barcodes   * The operational barcodes pertaining to the current package.
     */
    public void setBarcodes(com.fedex.ship.stub.PackageBarcodes barcodes) {
        this.barcodes = barcodes;
    }


    /**
     * Gets the groundServiceCode value for this PackageOperationalDetail.
     * 
     * @return groundServiceCode   * The FedEx internal code that represents the service and/or
     * features of service for the current package moving under a FedEx Ground
     * service.
     */
    public java.lang.String getGroundServiceCode() {
        return groundServiceCode;
    }


    /**
     * Sets the groundServiceCode value for this PackageOperationalDetail.
     * 
     * @param groundServiceCode   * The FedEx internal code that represents the service and/or
     * features of service for the current package moving under a FedEx Ground
     * service.
     */
    public void setGroundServiceCode(java.lang.String groundServiceCode) {
        this.groundServiceCode = groundServiceCode;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof PackageOperationalDetail)) return false;
        PackageOperationalDetail other = (PackageOperationalDetail) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.astraHandlingText==null && other.getAstraHandlingText()==null) || 
             (this.astraHandlingText!=null &&
              this.astraHandlingText.equals(other.getAstraHandlingText()))) &&
            ((this.operationalInstructions==null && other.getOperationalInstructions()==null) || 
             (this.operationalInstructions!=null &&
              java.util.Arrays.equals(this.operationalInstructions, other.getOperationalInstructions()))) &&
            ((this.barcodes==null && other.getBarcodes()==null) || 
             (this.barcodes!=null &&
              this.barcodes.equals(other.getBarcodes()))) &&
            ((this.groundServiceCode==null && other.getGroundServiceCode()==null) || 
             (this.groundServiceCode!=null &&
              this.groundServiceCode.equals(other.getGroundServiceCode())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy