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

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

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


/**
 * Data required to complete the Destionation Control Statement for
 * US exports.
 */
public class DestinationControlDetail  implements java.io.Serializable {
    private com.fedex.ship.stub.DestinationControlStatementType[] statementTypes;

    /* Comma-separated list of up to four country codes, required
     * for DEPARTMENT_OF_STATE statement. */
    private java.lang.String destinationCountries;

    /* Name of end user, required for DEPARTMENT_OF_STATE statement. */
    private java.lang.String endUser;

    public DestinationControlDetail() {
    }

    public DestinationControlDetail(
           com.fedex.ship.stub.DestinationControlStatementType[] statementTypes,
           java.lang.String destinationCountries,
           java.lang.String endUser) {
           this.statementTypes = statementTypes;
           this.destinationCountries = destinationCountries;
           this.endUser = endUser;
    }


    /**
     * Gets the statementTypes value for this DestinationControlDetail.
     * 
     * @return statementTypes
     */
    public com.fedex.ship.stub.DestinationControlStatementType[] getStatementTypes() {
        return statementTypes;
    }


    /**
     * Sets the statementTypes value for this DestinationControlDetail.
     * 
     * @param statementTypes
     */
    public void setStatementTypes(com.fedex.ship.stub.DestinationControlStatementType[] statementTypes) {
        this.statementTypes = statementTypes;
    }

    public com.fedex.ship.stub.DestinationControlStatementType getStatementTypes(int i) {
        return this.statementTypes[i];
    }

    public void setStatementTypes(int i, com.fedex.ship.stub.DestinationControlStatementType _value) {
        this.statementTypes[i] = _value;
    }


    /**
     * Gets the destinationCountries value for this DestinationControlDetail.
     * 
     * @return destinationCountries   * Comma-separated list of up to four country codes, required
     * for DEPARTMENT_OF_STATE statement.
     */
    public java.lang.String getDestinationCountries() {
        return destinationCountries;
    }


    /**
     * Sets the destinationCountries value for this DestinationControlDetail.
     * 
     * @param destinationCountries   * Comma-separated list of up to four country codes, required
     * for DEPARTMENT_OF_STATE statement.
     */
    public void setDestinationCountries(java.lang.String destinationCountries) {
        this.destinationCountries = destinationCountries;
    }


    /**
     * Gets the endUser value for this DestinationControlDetail.
     * 
     * @return endUser   * Name of end user, required for DEPARTMENT_OF_STATE statement.
     */
    public java.lang.String getEndUser() {
        return endUser;
    }


    /**
     * Sets the endUser value for this DestinationControlDetail.
     * 
     * @param endUser   * Name of end user, required for DEPARTMENT_OF_STATE statement.
     */
    public void setEndUser(java.lang.String endUser) {
        this.endUser = endUser;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof DestinationControlDetail)) return false;
        DestinationControlDetail other = (DestinationControlDetail) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.statementTypes==null && other.getStatementTypes()==null) || 
             (this.statementTypes!=null &&
              java.util.Arrays.equals(this.statementTypes, other.getStatementTypes()))) &&
            ((this.destinationCountries==null && other.getDestinationCountries()==null) || 
             (this.destinationCountries!=null &&
              this.destinationCountries.equals(other.getDestinationCountries()))) &&
            ((this.endUser==null && other.getEndUser()==null) || 
             (this.endUser!=null &&
              this.endUser.equals(other.getEndUser())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy