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

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

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


/**
 * Completed package-level hazardous commodity information for a single
 * package.
 */
public class CompletedHazardousPackageDetail  implements java.io.Serializable {
    /* A unique reference id that matches the package to a package
     * configuration. This is populated if the client provided a package
     * configuration for several packages that have the exact same dangerous
     * goods content. */
    private java.lang.String referenceId;

    private com.fedex.ship.stub.DangerousGoodsAccessibilityType accessibility;

    /* When true indicates that the package can be transported only
     * on a cargo aircraft. */
    private java.lang.Boolean cargoAircraftOnly;

    private com.fedex.ship.stub.HazardousCommodityRegulationType regulation;

    /* Specifies the maximum radiation level from the package (measured
     * in microSieverts per hour at a distance of one meter from the external
     * surface of the package, divided by 10). */
    private java.math.BigDecimal radioactiveTransportIndex;

    /* Specifies the label that is to be put on a package containing
     * radioactive material. The label type is determined in accordance with
     * the Transportation of Dangerous Goods Act and indicates the type of
     * radioactive material being handled as well as the relative risk. */
    private com.fedex.ship.stub.RadioactiveLabelType labelType;

    /* Documents the kinds and quantities of all hazardous commodities
     * in the current package. */
    private com.fedex.ship.stub.ValidatedHazardousContainer[] containers;

    public CompletedHazardousPackageDetail() {
    }

    public CompletedHazardousPackageDetail(
           java.lang.String referenceId,
           com.fedex.ship.stub.DangerousGoodsAccessibilityType accessibility,
           java.lang.Boolean cargoAircraftOnly,
           com.fedex.ship.stub.HazardousCommodityRegulationType regulation,
           java.math.BigDecimal radioactiveTransportIndex,
           com.fedex.ship.stub.RadioactiveLabelType labelType,
           com.fedex.ship.stub.ValidatedHazardousContainer[] containers) {
           this.referenceId = referenceId;
           this.accessibility = accessibility;
           this.cargoAircraftOnly = cargoAircraftOnly;
           this.regulation = regulation;
           this.radioactiveTransportIndex = radioactiveTransportIndex;
           this.labelType = labelType;
           this.containers = containers;
    }


    /**
     * Gets the referenceId value for this CompletedHazardousPackageDetail.
     * 
     * @return referenceId   * A unique reference id that matches the package to a package
     * configuration. This is populated if the client provided a package
     * configuration for several packages that have the exact same dangerous
     * goods content.
     */
    public java.lang.String getReferenceId() {
        return referenceId;
    }


    /**
     * Sets the referenceId value for this CompletedHazardousPackageDetail.
     * 
     * @param referenceId   * A unique reference id that matches the package to a package
     * configuration. This is populated if the client provided a package
     * configuration for several packages that have the exact same dangerous
     * goods content.
     */
    public void setReferenceId(java.lang.String referenceId) {
        this.referenceId = referenceId;
    }


    /**
     * Gets the accessibility value for this CompletedHazardousPackageDetail.
     * 
     * @return accessibility
     */
    public com.fedex.ship.stub.DangerousGoodsAccessibilityType getAccessibility() {
        return accessibility;
    }


    /**
     * Sets the accessibility value for this CompletedHazardousPackageDetail.
     * 
     * @param accessibility
     */
    public void setAccessibility(com.fedex.ship.stub.DangerousGoodsAccessibilityType accessibility) {
        this.accessibility = accessibility;
    }


    /**
     * Gets the cargoAircraftOnly value for this CompletedHazardousPackageDetail.
     * 
     * @return cargoAircraftOnly   * When true indicates that the package can be transported only
     * on a cargo aircraft.
     */
    public java.lang.Boolean getCargoAircraftOnly() {
        return cargoAircraftOnly;
    }


    /**
     * Sets the cargoAircraftOnly value for this CompletedHazardousPackageDetail.
     * 
     * @param cargoAircraftOnly   * When true indicates that the package can be transported only
     * on a cargo aircraft.
     */
    public void setCargoAircraftOnly(java.lang.Boolean cargoAircraftOnly) {
        this.cargoAircraftOnly = cargoAircraftOnly;
    }


    /**
     * Gets the regulation value for this CompletedHazardousPackageDetail.
     * 
     * @return regulation
     */
    public com.fedex.ship.stub.HazardousCommodityRegulationType getRegulation() {
        return regulation;
    }


    /**
     * Sets the regulation value for this CompletedHazardousPackageDetail.
     * 
     * @param regulation
     */
    public void setRegulation(com.fedex.ship.stub.HazardousCommodityRegulationType regulation) {
        this.regulation = regulation;
    }


    /**
     * Gets the radioactiveTransportIndex value for this CompletedHazardousPackageDetail.
     * 
     * @return radioactiveTransportIndex   * Specifies the maximum radiation level from the package (measured
     * in microSieverts per hour at a distance of one meter from the external
     * surface of the package, divided by 10).
     */
    public java.math.BigDecimal getRadioactiveTransportIndex() {
        return radioactiveTransportIndex;
    }


    /**
     * Sets the radioactiveTransportIndex value for this CompletedHazardousPackageDetail.
     * 
     * @param radioactiveTransportIndex   * Specifies the maximum radiation level from the package (measured
     * in microSieverts per hour at a distance of one meter from the external
     * surface of the package, divided by 10).
     */
    public void setRadioactiveTransportIndex(java.math.BigDecimal radioactiveTransportIndex) {
        this.radioactiveTransportIndex = radioactiveTransportIndex;
    }


    /**
     * Gets the labelType value for this CompletedHazardousPackageDetail.
     * 
     * @return labelType   * Specifies the label that is to be put on a package containing
     * radioactive material. The label type is determined in accordance with
     * the Transportation of Dangerous Goods Act and indicates the type of
     * radioactive material being handled as well as the relative risk.
     */
    public com.fedex.ship.stub.RadioactiveLabelType getLabelType() {
        return labelType;
    }


    /**
     * Sets the labelType value for this CompletedHazardousPackageDetail.
     * 
     * @param labelType   * Specifies the label that is to be put on a package containing
     * radioactive material. The label type is determined in accordance with
     * the Transportation of Dangerous Goods Act and indicates the type of
     * radioactive material being handled as well as the relative risk.
     */
    public void setLabelType(com.fedex.ship.stub.RadioactiveLabelType labelType) {
        this.labelType = labelType;
    }


    /**
     * Gets the containers value for this CompletedHazardousPackageDetail.
     * 
     * @return containers   * Documents the kinds and quantities of all hazardous commodities
     * in the current package.
     */
    public com.fedex.ship.stub.ValidatedHazardousContainer[] getContainers() {
        return containers;
    }


    /**
     * Sets the containers value for this CompletedHazardousPackageDetail.
     * 
     * @param containers   * Documents the kinds and quantities of all hazardous commodities
     * in the current package.
     */
    public void setContainers(com.fedex.ship.stub.ValidatedHazardousContainer[] containers) {
        this.containers = containers;
    }

    public com.fedex.ship.stub.ValidatedHazardousContainer getContainers(int i) {
        return this.containers[i];
    }

    public void setContainers(int i, com.fedex.ship.stub.ValidatedHazardousContainer _value) {
        this.containers[i] = _value;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof CompletedHazardousPackageDetail)) return false;
        CompletedHazardousPackageDetail other = (CompletedHazardousPackageDetail) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.referenceId==null && other.getReferenceId()==null) || 
             (this.referenceId!=null &&
              this.referenceId.equals(other.getReferenceId()))) &&
            ((this.accessibility==null && other.getAccessibility()==null) || 
             (this.accessibility!=null &&
              this.accessibility.equals(other.getAccessibility()))) &&
            ((this.cargoAircraftOnly==null && other.getCargoAircraftOnly()==null) || 
             (this.cargoAircraftOnly!=null &&
              this.cargoAircraftOnly.equals(other.getCargoAircraftOnly()))) &&
            ((this.regulation==null && other.getRegulation()==null) || 
             (this.regulation!=null &&
              this.regulation.equals(other.getRegulation()))) &&
            ((this.radioactiveTransportIndex==null && other.getRadioactiveTransportIndex()==null) || 
             (this.radioactiveTransportIndex!=null &&
              this.radioactiveTransportIndex.equals(other.getRadioactiveTransportIndex()))) &&
            ((this.labelType==null && other.getLabelType()==null) || 
             (this.labelType!=null &&
              this.labelType.equals(other.getLabelType()))) &&
            ((this.containers==null && other.getContainers()==null) || 
             (this.containers!=null &&
              java.util.Arrays.equals(this.containers, other.getContainers())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getReferenceId() != null) {
            _hashCode += getReferenceId().hashCode();
        }
        if (getAccessibility() != null) {
            _hashCode += getAccessibility().hashCode();
        }
        if (getCargoAircraftOnly() != null) {
            _hashCode += getCargoAircraftOnly().hashCode();
        }
        if (getRegulation() != null) {
            _hashCode += getRegulation().hashCode();
        }
        if (getRadioactiveTransportIndex() != null) {
            _hashCode += getRadioactiveTransportIndex().hashCode();
        }
        if (getLabelType() != null) {
            _hashCode += getLabelType().hashCode();
        }
        if (getContainers() != null) {
            for (int i=0;
                 i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy