Class PhoneNumberUtil
- java.lang.Object
-
- de.knightsoftnet.validators.shared.util.AbstractPhoneNumberUtil
-
- de.knightsoftnet.validators.shared.util.PhoneNumberUtil
-
public class PhoneNumberUtil extends AbstractPhoneNumberUtil
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 Constructor Description PhoneNumberUtil()PhoneNumberUtil(String pcountryCode)constructor with default country.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetCountryCode(String pcountryCode, Locale plocale)set country code.-
Methods inherited from class de.knightsoftnet.validators.shared.util.AbstractPhoneNumberUtil
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 Detail
-
PhoneNumberUtil
public PhoneNumberUtil()
-
PhoneNumberUtil
public PhoneNumberUtil(String pcountryCode)
constructor with default country.- Parameters:
pcountryCode- iso code of country
-
-
Method Detail
-
setCountryCode
protected void setCountryCode(String pcountryCode, Locale plocale)
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
-
-