Class CreatePhoneCountryConstantsClass
- java.lang.Object
-
- de.knightsoftnet.validators.shared.data.CreatePhoneCountryConstantsClass
-
public class CreatePhoneCountryConstantsClass extends Object
Read gwt constants from properties file on server side.- Author:
- Manfred Tremmel
-
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description CreatePhoneCountryConstantsClass()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PhoneCountrySharedConstantscreate()Instantiates a class via deferred binding.static PhoneCountrySharedConstantscreate(Locale plocale)Instantiates a class via deferred binding.static Map<String,String>readPhoneCountryCodes(Locale plocale)read phone country codes and country iso codes.static Map<String,String>readPhoneCountryNames(Locale plocale)read phone country names.static Map<String,String>readPhoneRegionCodes(String pphoneCountryCode, Locale plocale)read phone region codes for one country.static Map<String,String>readPhoneTrunkAndExitCodes(Locale plocale)read phone trunk an exit code map from property file.
-
-
-
Method Detail
-
create
public static PhoneCountrySharedConstants create()
Instantiates a class via deferred binding.- Returns:
- the new instance, which must be cast to the requested class
-
create
public static PhoneCountrySharedConstants create(Locale plocale)
Instantiates a class via deferred binding.- Parameters:
plocale- language to create data for- Returns:
- the new instance, which must be cast to the requested class
-
readPhoneCountryNames
public static Map<String,String> readPhoneCountryNames(Locale plocale)
read phone country names.- Parameters:
plocale- language to create data for- Returns:
- map of phone country code and name
-
readPhoneCountryCodes
public static Map<String,String> readPhoneCountryCodes(Locale plocale)
read phone country codes and country iso codes.- Parameters:
plocale- language to create data for- Returns:
- map of phone country code and country iso code
-
readPhoneRegionCodes
public static Map<String,String> readPhoneRegionCodes(String pphoneCountryCode, Locale plocale)
read phone region codes for one country.- Parameters:
pphoneCountryCode- country code of the phone numberplocale- language to create data for- Returns:
- map of area code and area name
-
-