|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.common.i18n.Country4a
public final class Country4a
Country codes using the ISO-3166 standard.
Field Summary | |
---|---|
static Country4a |
FINLAND
Finland. |
static Country4a |
HUNGARY
Hungary. |
static Country4a |
ITALY
Italy. |
static Country4a |
POLAND
Poland. |
static Country4a |
PORTUGAL
Portugal. |
static Country4a |
RUSSIA
Russia. |
static Country4a |
SPAIN
Spain. |
static Country4a |
USA
The United States of America. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
static Country4a |
findFrom2Char(String countryCode)
Finds an instance of this class from a given 2-character country code as defined in ISO 3166. |
static Country4a |
findFrom3Char(String countryCode)
Finds an instance of this class from a given 3-character country code as defined in ISO 3166. |
static Country4a |
findFromAlpha(String countryCode)
Finds an instance of this class from a given 2-character or 3-character language code as defined in ISO 3166. |
static Country4a |
findFromNumeric(int numericCode)
Finds an instance of this class from a given numeric language code as defined in ISO 3166. |
String |
getAlpha2Code()
|
String |
getAlpha3Code()
|
String |
getEnglishName()
|
static Country4a |
getNull()
Returns a bogus, "null" instance. |
short |
getNumericCode()
|
int |
hashCode()
|
boolean |
isValid()
|
static void |
registerCountry(Country4a country)
Registers country information. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Country4a USA
public static final Country4a FINLAND
public static final Country4a HUNGARY
public static final Country4a ITALY
public static final Country4a POLAND
public static final Country4a PORTUGAL
public static final Country4a RUSSIA
public static final Country4a SPAIN
Method Detail |
---|
public boolean isValid()
isValid
in interface org.axsl.common.i18n.Country
public String getAlpha2Code()
getAlpha2Code
in interface org.axsl.common.i18n.Country
public String getAlpha3Code()
getAlpha3Code
in interface org.axsl.common.i18n.Country
public String getEnglishName()
getEnglishName
in interface org.axsl.common.i18n.Country
public short getNumericCode()
getNumericCode
in interface org.axsl.common.i18n.Country
public static void registerCountry(Country4a country)
country
- The country to be registered.public static Country4a findFromAlpha(String countryCode)
countryCode
- A 2-letter or 3-letter ISO 3166 code.
countryCode
, or null if the code has not been registered.public static Country4a findFrom2Char(String countryCode)
countryCode
- A 2-letter ISO 3166 code, uppercase with no leading or trailing characters.
countryCode
, or null if the code has not been registered.public static Country4a findFrom3Char(String countryCode)
countryCode
- A 2-letter ISO 3166 code, uppercase with no leading or trailing characters.
countryCode
, or null if the code has not been registered.public static Country4a findFromNumeric(int numericCode)
numericCode
- A numeric ISO 3166 code.
numericCode
, or null if the code has not been registered.public static Country4a getNull()
public String toString()
toString
in class Object
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |