Golibri

org.golibri.iso
Class CountryCodeRecord

java.lang.Object
  extended byorg.golibri.iso.CountryCodeRecord

public final class CountryCodeRecord
extends java.lang.Object

A country code record contains the three different country codes of a country. Country code records allow to create a link between the different types of country codes as specified by the ISO 3166 Standard. The preferred way to get a country code record is by using the factory methods on the class CountryCodes.

See Also:
CountryCodes

Constructor Summary
CountryCodeRecord(Alpha2CountryCode alpha2, Alpha3CountryCode alpha3, Numeric3CountryCode numeric3)
          Constructor.
 
Method Summary
 Alpha2CountryCode getAlpha2CountryCode()
          Gets the alpha-2 country code
 Alpha3CountryCode getAlpha3CountryCode()
          Gets the alpha-3 country code
 Numeric3CountryCode getNumeric3CountryCode()
          Gets the numeric-3 country code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryCodeRecord

public CountryCodeRecord(Alpha2CountryCode alpha2,
                         Alpha3CountryCode alpha3,
                         Numeric3CountryCode numeric3)
Constructor.

Parameters:
alpha2 - The alpha-2 country code
alpha3 - The alpha-3 country code
numeric3 - The numeric-3 country code
Method Detail

getAlpha2CountryCode

public Alpha2CountryCode getAlpha2CountryCode()
Gets the alpha-2 country code

Returns:
the alpha-2 country code

getAlpha3CountryCode

public Alpha3CountryCode getAlpha3CountryCode()
Gets the alpha-3 country code

Returns:
the alpha-3 country code

getNumeric3CountryCode

public Numeric3CountryCode getNumeric3CountryCode()
Gets the numeric-3 country code

Returns:
the numeric-3 country code

Golibri