Class PhoneCountryConstantsProviderImpl
- java.lang.Object
-
- de.knightsoftnet.validators.shared.util.PhoneCountryConstantsProviderImpl
-
- All Implemented Interfaces:
PhoneCountryConstantsProvider
public class PhoneCountryConstantsProviderImpl extends Object implements PhoneCountryConstantsProvider
utility class for phone country constants provider, using CreatePhoneCountryConstantsClass as source.- Author:
- Manfred Tremmel
-
-
Constructor Summary
Constructors Constructor Description PhoneCountryConstantsProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PhoneCountrySharedConstantsgetPhoneCountryConstants()get phone country constants for current local.PhoneCountrySharedConstantsgetPhoneCountryConstants(Locale plocale)get phone country constants for given local.voidsetPhoneCountrySharedConstantsWhenAvailable(HasSetPhoneCountrySharedConstants preceiver)set phone country constants when they are available.voidsetPhoneCountrySharedConstantsWhenAvailable(Locale plocale, HasSetPhoneCountrySharedConstants preceiver)set phone country constants for given local when they are available.
-
-
-
Method Detail
-
getPhoneCountryConstants
public PhoneCountrySharedConstants getPhoneCountryConstants()
Description copied from interface:PhoneCountryConstantsProviderget phone country constants for current local.- Specified by:
getPhoneCountryConstantsin interfacePhoneCountryConstantsProvider- Returns:
- PhoneCountrySharedConstants
-
getPhoneCountryConstants
public PhoneCountrySharedConstants getPhoneCountryConstants(Locale plocale)
Description copied from interface:PhoneCountryConstantsProviderget phone country constants for given local.- Specified by:
getPhoneCountryConstantsin interfacePhoneCountryConstantsProvider- Parameters:
plocale- local to get for- Returns:
- PhoneCountrySharedConstants
-
setPhoneCountrySharedConstantsWhenAvailable
public void setPhoneCountrySharedConstantsWhenAvailable(HasSetPhoneCountrySharedConstants preceiver)
Description copied from interface:PhoneCountryConstantsProviderset phone country constants when they are available.- Specified by:
setPhoneCountrySharedConstantsWhenAvailablein interfacePhoneCountryConstantsProvider- Parameters:
preceiver- where to set phone country constants
-
setPhoneCountrySharedConstantsWhenAvailable
public void setPhoneCountrySharedConstantsWhenAvailable(Locale plocale, HasSetPhoneCountrySharedConstants preceiver)
Description copied from interface:PhoneCountryConstantsProviderset phone country constants for given local when they are available.- Specified by:
setPhoneCountrySharedConstantsWhenAvailablein interfacePhoneCountryConstantsProvider- Parameters:
plocale- local to get forpreceiver- where to set phone country constants
-
-