Package google.registry.model.eppcommon
Class PhoneNumber
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.eppcommon.PhoneNumber
-
- All Implemented Interfaces:
UnsafeSerializable
,java.io.Serializable
,java.lang.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:
ContactPhoneNumber
,MarkPhoneNumber
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PhoneNumber.Builder<T extends PhoneNumber>
A builder for constructingPhoneNumber
.-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description PhoneNumber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExtension()
java.lang.String
getPhoneNumber()
boolean
hasNullFields()
Returns true if both fields of the phone number are null.java.lang.String
toPhoneString()
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-