Package com.jalios.jcms.i18n
Class PhoneNumber
- java.lang.Object
-
- com.jalios.jcms.i18n.PhoneNumber
-
public class PhoneNumber extends java.lang.Object
Helper class used to store a correctly parsed phone number.Provide an abstract layer between the underlying implementation.
- Since:
- jcms-9.0
- See Also:
PhoneNumberUtil.parseNumber(String, String)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toE164String()
Retrieve this phone number in the E164 format.java.lang.String
toInternationalString()
Retrieve this phone number in an international format, as per ITU-T Recommendation E.java.lang.String
toRFC3966String()
Retrieve this phone number in the RFC 3966 format.java.lang.String
toString()
-
-
-
Method Detail
-
toRFC3966String
public java.lang.String toRFC3966String()
Retrieve this phone number in the RFC 3966 format.- Returns:
- a string representation of this phone number enforcing RFC 3966 format
-
toInternationalString
public java.lang.String toInternationalString()
Retrieve this phone number in an international format, as per ITU-T Recommendation E. 123.- Returns:
- a string representation of this phone number in international format, as per ITU-T Recommendation E. 123.
-
toE164String
public java.lang.String toE164String()
Retrieve this phone number in the E164 format.- Returns:
- a string representation of this phone number enforcing E164 format
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-