|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.util.CountryRegionEnumerator
public class CountryRegionEnumerator
This class enumerates a list of countries, regions, and their abbreviations. See the properties file associated with this class for more details about its format.
Nested Class Summary | |
---|---|
class |
CountryRegionEnumerator.Country
This class represents a country. |
class |
CountryRegionEnumerator.Region
This class represents a region. |
Method Summary | |
---|---|
java.util.TreeMap |
getCountries()
Get all of the countries. |
CountryRegionEnumerator.Country |
getCountryByAbbreviation(java.lang.String sAbbreviation)
Get a country by its abbreviation. |
java.util.TreeMap |
getRegions(java.lang.String sCountryAbbreviation)
Get all of the regions for a country. |
static CountryRegionEnumerator |
i()
Get the singleton instance of this class. |
static void |
main(java.lang.String[] args)
Exerciser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CountryRegionEnumerator i()
public java.util.TreeMap getRegions(java.lang.String sCountryAbbreviation)
sCountryAbbreviation
- the abbreviation of the country
public java.util.TreeMap getCountries()
public CountryRegionEnumerator.Country getCountryByAbbreviation(java.lang.String sAbbreviation)
sAbbreviation
-
public static void main(java.lang.String[] args)
args
- arguments to exerciser
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |