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
  • Constructor Details

    • CreatePhoneCountryConstantsClass

      public CreatePhoneCountryConstantsClass()
  • Method Details

    • 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 number
      plocale - language to create data for
      Returns:
      map of area code and area name
    • readPhoneTrunkAndExitCodes

      public static Map<String,String> readPhoneTrunkAndExitCodes(Locale plocale)
      read phone trunk an exit code map from property file.
      Parameters:
      plocale - language to create data for
      Returns:
      map of country code and combined string of trunk an exit code