Class PhoneNumber

  • All Implemented Interfaces:
    UnsafeSerializable,, java.lang.Cloneable
    Direct Known Subclasses:
    ContactPhoneNumber, MarkPhoneNumber

    public class PhoneNumber
    extends ImmutableObject
    implements UnsafeSerializable
    Container for generic E164 phone number.

    This is the "e164" type from RFC5733. It also matches the "e164Type" type from Mark and Signed Mark Objects Mapping

    "Contact telephone number structure is derived from structures defined in [ITU.E164.2005]. Telephone numbers described in this mapping are character strings that MUST begin with a plus sign ("+", ASCII value 0x002B), followed by a country code defined in [ITU.E164.2005], followed by a dot (".", ASCII value 0x002E), followed by a sequence of digits representing the telephone number. An optional "x" attribute is provided to note telephone extension information."

    See Also:
    ContactPhoneNumber, MarkPhoneNumber, Serialized Form
    • Constructor Detail

      • PhoneNumber

        public PhoneNumber()
    • Method Detail

      • getPhoneNumber

        public java.lang.String getPhoneNumber()
      • getExtension

        public java.lang.String getExtension()
      • toPhoneString

        public java.lang.String toPhoneString()
      • hasNullFields

        public boolean hasNullFields()
        Returns true if both fields of the phone number are null.