Class PhoneNumberUtil
java.lang.Object
de.knightsoftnet.validators.shared.util.AbstractPhoneNumberUtil
de.knightsoftnet.validators.shared.util.PhoneNumberUtil
Phone Number Util, format and parse phone numbers.
- Author:
- Manfred Tremmel
-
Field Summary
Fields inherited from class de.knightsoftnet.validators.shared.util.AbstractPhoneNumberUtil
defaultCountryData, phoneCountryConstantsProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetCountryCode(String pcountryCode, Locale plocale) set country code.Methods inherited from class de.knightsoftnet.validators.shared.util.AbstractPhoneNumberUtil
detectCountryCode, detectCountryCode, formatCommon, formatCommon, formatCommon, formatCommon, formatCommon, formatCommon, formatCommonInternational, formatCommonInternational, formatCommonInternational, formatCommonInternational, formatCommonInternationalWithPos, formatCommonInternationalWithPos, formatCommonNational, formatCommonNational, formatCommonNational, formatCommonNational, formatCommonNationalWithPos, formatCommonNationalWithPos, formatCommonWithPos, formatCommonWithPos, formatDin5008, formatDin5008, formatDin5008, formatDin5008, formatDin5008, formatDin5008, formatDin5008International, formatDin5008International, formatDin5008International, formatDin5008International, formatDin5008InternationalWithPos, formatDin5008InternationalWithPos, formatDin5008National, formatDin5008National, formatDin5008National, formatDin5008National, formatDin5008NationalWithPos, formatDin5008NationalWithPos, formatDin5008WithPos, formatDin5008WithPos, formatE123, formatE123, formatE123, formatE123, formatE123, formatE123, formatE123International, formatE123International, formatE123International, formatE123International, formatE123InternationalWithPos, formatE123InternationalWithPos, formatE123National, formatE123National, formatE123National, formatE123National, formatE123NationalWithPos, formatE123NationalWithPos, formatE123WithPos, formatE123WithPos, formatIndex, formatIndex, formatMs, formatMs, formatMs, formatMs, formatMsWithPos, formatMsWithPos, formatRfc3966, formatRfc3966, formatRfc3966, formatRfc3966, formatRfc3966WithPos, formatRfc3966WithPos, formatUrl, formatUrl, formatUrl, formatUrl, formatUrlWithPos, formatUrlWithPos, getSuggstions, getSuggstions, isPhoneNumberEmpty, isPhoneNumberNotEmpty, parsePhoneNumber, parsePhoneNumber, parsePhoneNumber, parsePhoneNumber, parsePhoneNumber, parsePhoneNumber, parsePhoneNumber, parsePhoneNumber, parsePhoneNumber, setCountryCode
-
Constructor Details
-
PhoneNumberUtil
public PhoneNumberUtil() -
PhoneNumberUtil
constructor with default country.- Parameters:
pcountryCode- iso code of country
-
-
Method Details
-
setCountryCode
Description copied from class:AbstractPhoneNumberUtilset country code.- Specified by:
setCountryCodein classAbstractPhoneNumberUtil- Parameters:
pcountryCode- iso code of countryplocale- locale to read properties in the correct language
-