Interface Country
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CountryImpl
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 TypeMethodDescriptionThe primary key - Ideally, implementations should use the ISO 3166-1 alpha-2 code of the country.getName()
The name for the Country e.g.void
setAbbreviation
(String abbreviation) sets the abbreviation for this Countryvoid
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
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
sets the name of the Country- Parameters:
name
- - e.g. "United States", "United Kingdom"
-