public class TelephoneNumber
extends java.lang.Object
Constructor and Description |
---|
TelephoneNumber() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAreaCode()
Gets the area code part of the Area Number.
|
java.lang.String |
getCountryCode()
Gets the country code part of the Telephone Number.
|
java.lang.String |
getExtension()
Gets the extension code part of the Telephone Number.
|
java.lang.String |
getNumber()
Gets the Number part of the Telephone Number.
|
Category |
getPhoneType()
Get the phone type.
|
void |
setAreaCode(java.lang.String areaCode)
Sets the area code part of the Area Number.
|
void |
setCountryCode(java.lang.String countryCode)
Sets the country code part of the Telephone Number.
|
void |
setExtension(java.lang.String extension)
Sets the extension code part of the Telephone Number.
|
void |
setNumber(java.lang.String number)
Sets the Number part of the Telephone Number.
|
void |
setPhoneType(Category phoneType)
Set the phone type.
|
java.lang.String |
toString() |
public java.lang.String getCountryCode()
public void setCountryCode(java.lang.String countryCode)
countryCode
- The country code to setpublic java.lang.String getAreaCode()
public void setAreaCode(java.lang.String areaCode)
areaCode
- AreaCode of the telephone numberpublic java.lang.String getNumber()
public void setNumber(java.lang.String number)
number
- Number of the telephone numberpublic java.lang.String getExtension()
public void setExtension(java.lang.String extension)
extension
- extension code of the telephone numberpublic void setPhoneType(Category phoneType)
phoneType
- Ex: Office, Mobile etcpublic Category getPhoneType()
public java.lang.String toString()
toString
in class java.lang.Object