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

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

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


/**
 * Descriptive data for a physical location. May be used as an actual
 * physical address (place to which one could go), or as a container
 * of "address parts" which should be handled as a unit (such as a city-state-ZIP
 * combination within the US).
 */
public class Address  implements java.io.Serializable {
    /* Combination of number, street name, etc. At least one line
     * is required for a valid physical address; empty lines should not be
     * included. */
    private java.lang.String[] streetLines;

    /* Name of city, town, etc. */
    private java.lang.String city;

    /* Identifying abbreviation for US state, Canada province, etc.
     * Format and presence of this field will vary, depending on country. */
    private java.lang.String stateOrProvinceCode;

    /* Identification of a region (usually small) for mail/package
     * delivery. Format and presence of this field will vary, depending on
     * country. */
    private java.lang.String postalCode;

    /* Relevant only to addresses in Puerto Rico. */
    private java.lang.String urbanizationCode;

    /* The two-letter code used to identify a country. */
    private java.lang.String countryCode;

    /* The fully spelt out name of a country. */
    private java.lang.String countryName;

    /* Indicates whether this address residential (as opposed to commercial). */
    private java.lang.Boolean residential;

    /* The geographic coordinates cooresponding to this address. */
    private java.lang.String geographicCoordinates;

    public Address() {
    }

    public Address(
           java.lang.String[] streetLines,
           java.lang.String city,
           java.lang.String stateOrProvinceCode,
           java.lang.String postalCode,
           java.lang.String urbanizationCode,
           java.lang.String countryCode,
           java.lang.String countryName,
           java.lang.Boolean residential,
           java.lang.String geographicCoordinates) {
           this.streetLines = streetLines;
           this.city = city;
           this.stateOrProvinceCode = stateOrProvinceCode;
           this.postalCode = postalCode;
           this.urbanizationCode = urbanizationCode;
           this.countryCode = countryCode;
           this.countryName = countryName;
           this.residential = residential;
           this.geographicCoordinates = geographicCoordinates;
    }


    /**
     * Gets the streetLines value for this Address.
     * 
     * @return streetLines   * Combination of number, street name, etc. At least one line
     * is required for a valid physical address; empty lines should not be
     * included.
     */
    public java.lang.String[] getStreetLines() {
        return streetLines;
    }


    /**
     * Sets the streetLines value for this Address.
     * 
     * @param streetLines   * Combination of number, street name, etc. At least one line
     * is required for a valid physical address; empty lines should not be
     * included.
     */
    public void setStreetLines(java.lang.String[] streetLines) {
        this.streetLines = streetLines;
    }

    public java.lang.String getStreetLines(int i) {
        return this.streetLines[i];
    }

    public void setStreetLines(int i, java.lang.String _value) {
        this.streetLines[i] = _value;
    }


    /**
     * Gets the city value for this Address.
     * 
     * @return city   * Name of city, town, etc.
     */
    public java.lang.String getCity() {
        return city;
    }


    /**
     * Sets the city value for this Address.
     * 
     * @param city   * Name of city, town, etc.
     */
    public void setCity(java.lang.String city) {
        this.city = city;
    }


    /**
     * Gets the stateOrProvinceCode value for this Address.
     * 
     * @return stateOrProvinceCode   * Identifying abbreviation for US state, Canada province, etc.
     * Format and presence of this field will vary, depending on country.
     */
    public java.lang.String getStateOrProvinceCode() {
        return stateOrProvinceCode;
    }


    /**
     * Sets the stateOrProvinceCode value for this Address.
     * 
     * @param stateOrProvinceCode   * Identifying abbreviation for US state, Canada province, etc.
     * Format and presence of this field will vary, depending on country.
     */
    public void setStateOrProvinceCode(java.lang.String stateOrProvinceCode) {
        this.stateOrProvinceCode = stateOrProvinceCode;
    }


    /**
     * Gets the postalCode value for this Address.
     * 
     * @return postalCode   * Identification of a region (usually small) for mail/package
     * delivery. Format and presence of this field will vary, depending on
     * country.
     */
    public java.lang.String getPostalCode() {
        return postalCode;
    }


    /**
     * Sets the postalCode value for this Address.
     * 
     * @param postalCode   * Identification of a region (usually small) for mail/package
     * delivery. Format and presence of this field will vary, depending on
     * country.
     */
    public void setPostalCode(java.lang.String postalCode) {
        this.postalCode = postalCode;
    }


    /**
     * Gets the urbanizationCode value for this Address.
     * 
     * @return urbanizationCode   * Relevant only to addresses in Puerto Rico.
     */
    public java.lang.String getUrbanizationCode() {
        return urbanizationCode;
    }


    /**
     * Sets the urbanizationCode value for this Address.
     * 
     * @param urbanizationCode   * Relevant only to addresses in Puerto Rico.
     */
    public void setUrbanizationCode(java.lang.String urbanizationCode) {
        this.urbanizationCode = urbanizationCode;
    }


    /**
     * Gets the countryCode value for this Address.
     * 
     * @return countryCode   * The two-letter code used to identify a country.
     */
    public java.lang.String getCountryCode() {
        return countryCode;
    }


    /**
     * Sets the countryCode value for this Address.
     * 
     * @param countryCode   * The two-letter code used to identify a country.
     */
    public void setCountryCode(java.lang.String countryCode) {
        this.countryCode = countryCode;
    }


    /**
     * Gets the countryName value for this Address.
     * 
     * @return countryName   * The fully spelt out name of a country.
     */
    public java.lang.String getCountryName() {
        return countryName;
    }


    /**
     * Sets the countryName value for this Address.
     * 
     * @param countryName   * The fully spelt out name of a country.
     */
    public void setCountryName(java.lang.String countryName) {
        this.countryName = countryName;
    }


    /**
     * Gets the residential value for this Address.
     * 
     * @return residential   * Indicates whether this address residential (as opposed to commercial).
     */
    public java.lang.Boolean getResidential() {
        return residential;
    }


    /**
     * Sets the residential value for this Address.
     * 
     * @param residential   * Indicates whether this address residential (as opposed to commercial).
     */
    public void setResidential(java.lang.Boolean residential) {
        this.residential = residential;
    }


    /**
     * Gets the geographicCoordinates value for this Address.
     * 
     * @return geographicCoordinates   * The geographic coordinates cooresponding to this address.
     */
    public java.lang.String getGeographicCoordinates() {
        return geographicCoordinates;
    }


    /**
     * Sets the geographicCoordinates value for this Address.
     * 
     * @param geographicCoordinates   * The geographic coordinates cooresponding to this address.
     */
    public void setGeographicCoordinates(java.lang.String geographicCoordinates) {
        this.geographicCoordinates = geographicCoordinates;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Address)) return false;
        Address other = (Address) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.streetLines==null && other.getStreetLines()==null) || 
             (this.streetLines!=null &&
              java.util.Arrays.equals(this.streetLines, other.getStreetLines()))) &&
            ((this.city==null && other.getCity()==null) || 
             (this.city!=null &&
              this.city.equals(other.getCity()))) &&
            ((this.stateOrProvinceCode==null && other.getStateOrProvinceCode()==null) || 
             (this.stateOrProvinceCode!=null &&
              this.stateOrProvinceCode.equals(other.getStateOrProvinceCode()))) &&
            ((this.postalCode==null && other.getPostalCode()==null) || 
             (this.postalCode!=null &&
              this.postalCode.equals(other.getPostalCode()))) &&
            ((this.urbanizationCode==null && other.getUrbanizationCode()==null) || 
             (this.urbanizationCode!=null &&
              this.urbanizationCode.equals(other.getUrbanizationCode()))) &&
            ((this.countryCode==null && other.getCountryCode()==null) || 
             (this.countryCode!=null &&
              this.countryCode.equals(other.getCountryCode()))) &&
            ((this.countryName==null && other.getCountryName()==null) || 
             (this.countryName!=null &&
              this.countryName.equals(other.getCountryName()))) &&
            ((this.residential==null && other.getResidential()==null) || 
             (this.residential!=null &&
              this.residential.equals(other.getResidential()))) &&
            ((this.geographicCoordinates==null && other.getGeographicCoordinates()==null) || 
             (this.geographicCoordinates!=null &&
              this.geographicCoordinates.equals(other.getGeographicCoordinates())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy