Class PhoneNumber

java.lang.Object
com.jalios.jcms.i18n.PhoneNumber

public class PhoneNumber extends 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:
  • Method Details

    • toRFC3966String

      public 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 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 String toE164String()
      Retrieve this phone number in the E164 format.
      Returns:
      a string representation of this phone number enforcing E164 format
    • toString

      public String toString()
      Overrides:
      toString in class Object