org.jaudiotagger.tag.reference
Class ISOCountry

java.lang.Object
  extended by org.jaudiotagger.tag.reference.ISOCountry

public class ISOCountry
extends java.lang.Object

Represents the ISO 3166-1 Country List with ISO 3166-1-alpha-2 code

Contains an enum of countries, their two letter code and description with additional method to allow an enum to be found by its two letter code or its description. More details at http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm#c


Nested Class Summary
static class ISOCountry.Country
          List of valid Iso Country, shows 2 letter abbreviation and country human readable name
 
Field Summary
private static java.util.Map<java.lang.String,ISOCountry.Country> codeMap
           
private static java.util.Map<java.lang.String,ISOCountry.Country> descriptionMap
           
 
Constructor Summary
ISOCountry()
           
 
Method Summary
static ISOCountry.Country getCountryByCode(java.lang.String code)
           
static ISOCountry.Country getCountryByDescription(java.lang.String description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

codeMap

private static java.util.Map<java.lang.String,ISOCountry.Country> codeMap

descriptionMap

private static java.util.Map<java.lang.String,ISOCountry.Country> descriptionMap
Constructor Detail

ISOCountry

public ISOCountry()
Method Detail

getCountryByCode

public static ISOCountry.Country getCountryByCode(java.lang.String code)
Parameters:
code -
Returns:
enum with this two letter code

getCountryByDescription

public static ISOCountry.Country getCountryByDescription(java.lang.String description)
Parameters:
description -
Returns:
enum with this description