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

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

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


/**
 * Specifies details needed to generate any label artifacts required
 * due to regulatory requirements.
 */
public class RegulatoryLabelContentDetail  implements java.io.Serializable {
    private com.fedex.rate.stub.RegulatoryLabelType type;

    /* Specifies how the customer requested the regulatory label to
     * be generated. */
    private com.fedex.rate.stub.CustomerSpecifiedLabelGenerationOptionType[] generationOptions;

    public RegulatoryLabelContentDetail() {
    }

    public RegulatoryLabelContentDetail(
           com.fedex.rate.stub.RegulatoryLabelType type,
           com.fedex.rate.stub.CustomerSpecifiedLabelGenerationOptionType[] generationOptions) {
           this.type = type;
           this.generationOptions = generationOptions;
    }


    /**
     * Gets the type value for this RegulatoryLabelContentDetail.
     * 
     * @return type
     */
    public com.fedex.rate.stub.RegulatoryLabelType getType() {
        return type;
    }


    /**
     * Sets the type value for this RegulatoryLabelContentDetail.
     * 
     * @param type
     */
    public void setType(com.fedex.rate.stub.RegulatoryLabelType type) {
        this.type = type;
    }


    /**
     * Gets the generationOptions value for this RegulatoryLabelContentDetail.
     * 
     * @return generationOptions   * Specifies how the customer requested the regulatory label to
     * be generated.
     */
    public com.fedex.rate.stub.CustomerSpecifiedLabelGenerationOptionType[] getGenerationOptions() {
        return generationOptions;
    }


    /**
     * Sets the generationOptions value for this RegulatoryLabelContentDetail.
     * 
     * @param generationOptions   * Specifies how the customer requested the regulatory label to
     * be generated.
     */
    public void setGenerationOptions(com.fedex.rate.stub.CustomerSpecifiedLabelGenerationOptionType[] generationOptions) {
        this.generationOptions = generationOptions;
    }

    public com.fedex.rate.stub.CustomerSpecifiedLabelGenerationOptionType getGenerationOptions(int i) {
        return this.generationOptions[i];
    }

    public void setGenerationOptions(int i, com.fedex.rate.stub.CustomerSpecifiedLabelGenerationOptionType _value) {
        this.generationOptions[i] = _value;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof RegulatoryLabelContentDetail)) return false;
        RegulatoryLabelContentDetail other = (RegulatoryLabelContentDetail) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.type==null && other.getType()==null) || 
             (this.type!=null &&
              this.type.equals(other.getType()))) &&
            ((this.generationOptions==null && other.getGenerationOptions()==null) || 
             (this.generationOptions!=null &&
              java.util.Arrays.equals(this.generationOptions, other.getGenerationOptions())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy