Class PhoneNumber

All Implemented Interfaces:
UnsafeSerializable, Serializable, Cloneable
Direct Known Subclasses:
ContactPhoneNumber, MarkPhoneNumber

@Embeddable @MappedSuperclass 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:
  • Constructor Details

    • PhoneNumber

      public PhoneNumber()
  • Method Details

    • getPhoneNumber

      public String getPhoneNumber()
    • getExtension

      public String getExtension()
    • toPhoneString

      public String toPhoneString()
    • hasNullFields

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