public interface CountrySubdivision extends Serializable
http://www.iso.org/iso/country_codes.htm
http://en.wikipedia.org/wiki/ISO_3166-2| Modifier and Type | Method and Description |
|---|---|
String |
getAbbreviation()
The primary key - Ideally, implementations should use the ISO 3166-2 code of the country subdivision.
|
String |
getAlternateAbbreviation()
More friendly abbreviation that can be used for display purposes
e.g.
|
CountrySubdivisionCategory |
getCategory()
A category that represents the subdivision of this Country.
|
Country |
getCountry()
The country where this subdivision resides
e.g.
|
String |
getName()
Full name for display purposes
e.g.
|
void |
setAbbreviation(String abbreviation)
Sets the primary key abbreviation
|
void |
setAlternateAbbreviation(String alternateAbbreviation)
sets the alternate abbreviation
|
void |
setCategory(CountrySubdivisionCategory category)
sets the country subdivision category
|
void |
setCountry(Country country)
sets the country in which this subdivision resides
|
void |
setName(String name)
sets the name
|
String getAbbreviation()
http://en.wikipedia.org/wiki/ISO_3166-2void setAbbreviation(String abbreviation)
abbreviation - - e.g. "US-TX" or "GB-WSM"String getAlternateAbbreviation()
void setAlternateAbbreviation(String alternateAbbreviation)
alternateAbbreviation - - e.g. "TX", "CA", "NY"String getName()
void setName(String name)
name - - e.g. "Texas", "California", "New York"CountrySubdivisionCategory getCategory()
void setCategory(CountrySubdivisionCategory category)
category - - e.g. "State", "Province", "District"Country getCountry()
void setCountry(Country country)
country - - e.g. "US", "GB"Copyright © 2015. All Rights Reserved.