Package com.luciad.format.gdf
Class TLcdGDFCountry
java.lang.Object
com.luciad.format.gdf.TLcdGDFCountry
Represents a country, with its ISO 3166 Country Code and a textual description.
The list of available countries is based on the ISO 3166 Country Code list,
as described in the GDF 4 specification..
- Since:
- 5.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdGDFCountry
getCountry
(int aIndex) Returns the country at the given index.static TLcdGDFCountry
getCountry
(String aCountryCode) Returns the country with the given ISO 3166 Country Code.static int
Returns the number of countries that are available.Returns the textual description of this country.Returns the ISO 3166 Country Code of this country.toString()
Returns a general description of this country.
-
Method Details
-
getCountryCount
public static int getCountryCount()Returns the number of countries that are available.- Returns:
- the number of countries that are available.
-
getCountry
Returns the country at the given index.- Parameters:
aIndex
- the index of the country to be returned.- Returns:
- the country at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getCountryCount()
.
-
getCountry
Returns the country with the given ISO 3166 Country Code.- Parameters:
aCountryCode
- the ISO 3166 Country Code of the country to be returned.- Returns:
- the country with the given ISO 3166 Country Code.
- Throws:
IllegalArgumentException
- if no language exists for the given ISO 3166 Country Code.
-
getISO3166CountryCode
Returns the ISO 3166 Country Code of this country.- Returns:
- the ISO 3166 Country Code of this country.
-
getDescription
Returns the textual description of this country.- Returns:
- the textual description of this country.
-
toString
Returns a general description of this country. The exact details of the representation are unspecified and are subject to change.
-