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

com.fedex.rate.stub.RateReply Maven / Gradle / Ivy

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


/**
 * The response to a RateRequest. The Notifications indicate whether
 * the request was successful or not.
 */
public class RateReply  implements java.io.Serializable {
    /* This indicates the highest level of severity of all the notifications
     * returned in this reply. */
    private com.fedex.rate.stub.NotificationSeverityType highestSeverity;

    /* The descriptive data regarding the results of the submitted
     * transaction. */
    private com.fedex.rate.stub.Notification[] notifications;

    /* Contains the CustomerTransactionId that was sent in the request. */
    private com.fedex.rate.stub.TransactionDetail transactionDetail;

    /* The version of this reply. */
    private com.fedex.rate.stub.VersionId version;

    /* Each element contains all rate data for a single service. If
     * service was specified in the request, there will be a single entry
     * in this array; if service was omitted in the request, there will be
     * a separate entry in this array for each service being compared. */
    private com.fedex.rate.stub.RateReplyDetail[] rateReplyDetails;

    public RateReply() {
    }

    public RateReply(
           com.fedex.rate.stub.NotificationSeverityType highestSeverity,
           com.fedex.rate.stub.Notification[] notifications,
           com.fedex.rate.stub.TransactionDetail transactionDetail,
           com.fedex.rate.stub.VersionId version,
           com.fedex.rate.stub.RateReplyDetail[] rateReplyDetails) {
           this.highestSeverity = highestSeverity;
           this.notifications = notifications;
           this.transactionDetail = transactionDetail;
           this.version = version;
           this.rateReplyDetails = rateReplyDetails;
    }


    /**
     * Gets the highestSeverity value for this RateReply.
     * 
     * @return highestSeverity   * This indicates the highest level of severity of all the notifications
     * returned in this reply.
     */
    public com.fedex.rate.stub.NotificationSeverityType getHighestSeverity() {
        return highestSeverity;
    }


    /**
     * Sets the highestSeverity value for this RateReply.
     * 
     * @param highestSeverity   * This indicates the highest level of severity of all the notifications
     * returned in this reply.
     */
    public void setHighestSeverity(com.fedex.rate.stub.NotificationSeverityType highestSeverity) {
        this.highestSeverity = highestSeverity;
    }


    /**
     * Gets the notifications value for this RateReply.
     * 
     * @return notifications   * The descriptive data regarding the results of the submitted
     * transaction.
     */
    public com.fedex.rate.stub.Notification[] getNotifications() {
        return notifications;
    }


    /**
     * Sets the notifications value for this RateReply.
     * 
     * @param notifications   * The descriptive data regarding the results of the submitted
     * transaction.
     */
    public void setNotifications(com.fedex.rate.stub.Notification[] notifications) {
        this.notifications = notifications;
    }

    public com.fedex.rate.stub.Notification getNotifications(int i) {
        return this.notifications[i];
    }

    public void setNotifications(int i, com.fedex.rate.stub.Notification _value) {
        this.notifications[i] = _value;
    }


    /**
     * Gets the transactionDetail value for this RateReply.
     * 
     * @return transactionDetail   * Contains the CustomerTransactionId that was sent in the request.
     */
    public com.fedex.rate.stub.TransactionDetail getTransactionDetail() {
        return transactionDetail;
    }


    /**
     * Sets the transactionDetail value for this RateReply.
     * 
     * @param transactionDetail   * Contains the CustomerTransactionId that was sent in the request.
     */
    public void setTransactionDetail(com.fedex.rate.stub.TransactionDetail transactionDetail) {
        this.transactionDetail = transactionDetail;
    }


    /**
     * Gets the version value for this RateReply.
     * 
     * @return version   * The version of this reply.
     */
    public com.fedex.rate.stub.VersionId getVersion() {
        return version;
    }


    /**
     * Sets the version value for this RateReply.
     * 
     * @param version   * The version of this reply.
     */
    public void setVersion(com.fedex.rate.stub.VersionId version) {
        this.version = version;
    }


    /**
     * Gets the rateReplyDetails value for this RateReply.
     * 
     * @return rateReplyDetails   * Each element contains all rate data for a single service. If
     * service was specified in the request, there will be a single entry
     * in this array; if service was omitted in the request, there will be
     * a separate entry in this array for each service being compared.
     */
    public com.fedex.rate.stub.RateReplyDetail[] getRateReplyDetails() {
        return rateReplyDetails;
    }


    /**
     * Sets the rateReplyDetails value for this RateReply.
     * 
     * @param rateReplyDetails   * Each element contains all rate data for a single service. If
     * service was specified in the request, there will be a single entry
     * in this array; if service was omitted in the request, there will be
     * a separate entry in this array for each service being compared.
     */
    public void setRateReplyDetails(com.fedex.rate.stub.RateReplyDetail[] rateReplyDetails) {
        this.rateReplyDetails = rateReplyDetails;
    }

    public com.fedex.rate.stub.RateReplyDetail getRateReplyDetails(int i) {
        return this.rateReplyDetails[i];
    }

    public void setRateReplyDetails(int i, com.fedex.rate.stub.RateReplyDetail _value) {
        this.rateReplyDetails[i] = _value;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof RateReply)) return false;
        RateReply other = (RateReply) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.highestSeverity==null && other.getHighestSeverity()==null) || 
             (this.highestSeverity!=null &&
              this.highestSeverity.equals(other.getHighestSeverity()))) &&
            ((this.notifications==null && other.getNotifications()==null) || 
             (this.notifications!=null &&
              java.util.Arrays.equals(this.notifications, other.getNotifications()))) &&
            ((this.transactionDetail==null && other.getTransactionDetail()==null) || 
             (this.transactionDetail!=null &&
              this.transactionDetail.equals(other.getTransactionDetail()))) &&
            ((this.version==null && other.getVersion()==null) || 
             (this.version!=null &&
              this.version.equals(other.getVersion()))) &&
            ((this.rateReplyDetails==null && other.getRateReplyDetails()==null) || 
             (this.rateReplyDetails!=null &&
              java.util.Arrays.equals(this.rateReplyDetails, other.getRateReplyDetails())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy