net.sourceforge.jaulp.locale
Class LocaleUtils

java.lang.Object
  extended by net.sourceforge.jaulp.locale.LocaleUtils

public class LocaleUtils
extends java.lang.Object

Utility class for Locales and Countries.

Version:
1.0
Author:
Asterios Raptis

Field Summary
static java.lang.String[] COUNTRY_CODES
          Array with all country codes.
 
Constructor Summary
LocaleUtils()
           
 
Method Summary
static boolean isISOCountryCode(java.lang.String code)
          Checks the given code if its a valide ISO 3166-1 countrycode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNTRY_CODES

public static final java.lang.String[] COUNTRY_CODES
Array with all country codes.

Constructor Detail

LocaleUtils

public LocaleUtils()
Method Detail

isISOCountryCode

public static boolean isISOCountryCode(java.lang.String code)
Checks the given code if its a valide ISO 3166-1 countrycode.

Parameters:
code - The code to check.
Returns:
true if the code is valide otherwise false.


Copyright © 2010. All Rights Reserved.