Package org.cyclos.impl.utils
Interface PhoneNumberDescriptor
-
public interface PhoneNumberDescriptorDescribes a phone number
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCountryCode()Returns the country dialing codeStringgetRawNumber()Returns the raw, input numberbooleanisCustom()Indicates whether this descriptor is from a custom scriptbooleanisLandLine()Indicates whether the number can be used for land-line (fixed line) phonesbooleanisMobile()Indicates whether the number can be used for mobile phonesStringtoE164()Normalizes the number to the E164 formatStringtoInternationalFormat()Formats according to international codeStringtoNationalFormat()Formats according to the current region code
-
-
-
Method Detail
-
getCountryCode
int getCountryCode()
Returns the country dialing code
-
getRawNumber
String getRawNumber()
Returns the raw, input number
-
isCustom
boolean isCustom()
Indicates whether this descriptor is from a custom script
-
isLandLine
boolean isLandLine()
Indicates whether the number can be used for land-line (fixed line) phones
-
isMobile
boolean isMobile()
Indicates whether the number can be used for mobile phones
-
toE164
String toE164()
Normalizes the number to the E164 format
-
toInternationalFormat
String toInternationalFormat()
Formats according to international code
-
toNationalFormat
String toNationalFormat()
Formats according to the current region code
-
-