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

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

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

public class ServiceDescription  implements java.io.Serializable {
    private com.fedex.ship.stub.ServiceType serviceType;

    private java.lang.String code;

    /* Branded, translated, and/or localized names for this service. */
    private com.fedex.ship.stub.ProductName[] names;

    private java.lang.String description;

    private java.lang.String astraDescription;

    public ServiceDescription() {
    }

    public ServiceDescription(
           com.fedex.ship.stub.ServiceType serviceType,
           java.lang.String code,
           com.fedex.ship.stub.ProductName[] names,
           java.lang.String description,
           java.lang.String astraDescription) {
           this.serviceType = serviceType;
           this.code = code;
           this.names = names;
           this.description = description;
           this.astraDescription = astraDescription;
    }


    /**
     * Gets the serviceType value for this ServiceDescription.
     * 
     * @return serviceType
     */
    public com.fedex.ship.stub.ServiceType getServiceType() {
        return serviceType;
    }


    /**
     * Sets the serviceType value for this ServiceDescription.
     * 
     * @param serviceType
     */
    public void setServiceType(com.fedex.ship.stub.ServiceType serviceType) {
        this.serviceType = serviceType;
    }


    /**
     * Gets the code value for this ServiceDescription.
     * 
     * @return code
     */
    public java.lang.String getCode() {
        return code;
    }


    /**
     * Sets the code value for this ServiceDescription.
     * 
     * @param code
     */
    public void setCode(java.lang.String code) {
        this.code = code;
    }


    /**
     * Gets the names value for this ServiceDescription.
     * 
     * @return names   * Branded, translated, and/or localized names for this service.
     */
    public com.fedex.ship.stub.ProductName[] getNames() {
        return names;
    }


    /**
     * Sets the names value for this ServiceDescription.
     * 
     * @param names   * Branded, translated, and/or localized names for this service.
     */
    public void setNames(com.fedex.ship.stub.ProductName[] names) {
        this.names = names;
    }

    public com.fedex.ship.stub.ProductName getNames(int i) {
        return this.names[i];
    }

    public void setNames(int i, com.fedex.ship.stub.ProductName _value) {
        this.names[i] = _value;
    }


    /**
     * Gets the description value for this ServiceDescription.
     * 
     * @return description
     */
    public java.lang.String getDescription() {
        return description;
    }


    /**
     * Sets the description value for this ServiceDescription.
     * 
     * @param description
     */
    public void setDescription(java.lang.String description) {
        this.description = description;
    }


    /**
     * Gets the astraDescription value for this ServiceDescription.
     * 
     * @return astraDescription
     */
    public java.lang.String getAstraDescription() {
        return astraDescription;
    }


    /**
     * Sets the astraDescription value for this ServiceDescription.
     * 
     * @param astraDescription
     */
    public void setAstraDescription(java.lang.String astraDescription) {
        this.astraDescription = astraDescription;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof ServiceDescription)) return false;
        ServiceDescription other = (ServiceDescription) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.serviceType==null && other.getServiceType()==null) || 
             (this.serviceType!=null &&
              this.serviceType.equals(other.getServiceType()))) &&
            ((this.code==null && other.getCode()==null) || 
             (this.code!=null &&
              this.code.equals(other.getCode()))) &&
            ((this.names==null && other.getNames()==null) || 
             (this.names!=null &&
              java.util.Arrays.equals(this.names, other.getNames()))) &&
            ((this.description==null && other.getDescription()==null) || 
             (this.description!=null &&
              this.description.equals(other.getDescription()))) &&
            ((this.astraDescription==null && other.getAstraDescription()==null) || 
             (this.astraDescription!=null &&
              this.astraDescription.equals(other.getAstraDescription())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy