Interface Country

All Superinterfaces:
Serializable
All Known Implementing Classes:
CountryImpl

public interface Country extends Serializable
This entity should be used only for lookup and filtering purposes only. For example, to help populate a drop-down to those Countries you only wish to ship to.

Address no longer references this and Address implementations should be updated to use ISOCountry instead. This is to accommodate International Billing/Shipping Addresses which may not necessarily be restricted to countries represented by this entity.

{@link http://www.iso.org/iso/country_codes.htm} {@link http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2}

Author:
Elbert Bautista (elbertbautista)
  • Method Summary

    Modifier and Type
    Method
    Description
    The primary key - Ideally, implementations should use the ISO 3166-1 alpha-2 code of the country.
    The name for the Country e.g.
    void
    setAbbreviation(String abbreviation)
    sets the abbreviation for this Country
    void
    sets the name of the Country
  • Method Details

    • getAbbreviation

      String getAbbreviation()
      The primary key - Ideally, implementations should use the ISO 3166-1 alpha-2 code of the country. e.g. "US" or "GB" {@link http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2}
    • setAbbreviation

      void setAbbreviation(String abbreviation)
      sets the abbreviation for this Country
      Parameters:
      abbreviation - - e.g. "US" or "GB"
    • getName

      String getName()
      The name for the Country e.g. "United States", "United Kingdom"
      Returns:
      - the name of the Country
    • setName

      void setName(String name)
      sets the name of the Country
      Parameters:
      name - - e.g. "United States", "United Kingdom"