oracle.panama.messaging.push
Class PhoneAddressData
java.lang.Object
|
+--oracle.panama.messaging.push.AddressData
|
+--oracle.panama.messaging.push.PhoneAddressData
- All Implemented Interfaces:
- java.lang.Cloneable
- public class PhoneAddressData
- extends AddressData
International phone number class
One international phone number has three parts: country code, area code and local number.
Please use <country code>-<area code>-<local number> format.
Use digits only in each part.
Note:
Never access any public data fields inside this class directly, because they are for
internal use in this release and will be changed in coming releases. Always use public
methods of this class.
PhoneAddressData()
|
PhoneAddressData(java.lang.String addr)
Create a PhoneAddressData instance with the phone number in <country code>-<area code>-<local number> format. |
Type | Method |
java.lang.String |
getAddress()
get the phone number. |
java.lang.String |
getAddressType()
"phone" is returned to indicate that it's a phone number. |
java.lang.String |
getAreaCode()
Get area code |
java.lang.String |
getCarrier()
get the carrier of the phone device. |
java.lang.String |
getCountryCode()
get country code |
java.lang.String |
getLocalPhoneNumber()
Get local phone number part |
void |
setAddress(java.lang.String addr)
Set the phone number in <country code>-<area code>-<local number> format. |
void |
setAreaCode(java.lang.String area)
Set area code of this phone number. |
void |
setCarrier(java.lang.String carrier)
set the carrier of the phone |
void |
setCountryCode(java.lang.String country)
Set country code of the phone number. |
void |
setLocalPhoneNumber(java.lang.String local)
Set local phone number. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
country
public java.lang.String country
areaCode
public java.lang.String areaCode
phone
public java.lang.String phone
carrier
public java.lang.String carrier
addressType
public java.lang.String addressType
PhoneAddressData
public PhoneAddressData()
PhoneAddressData
public PhoneAddressData(java.lang.String addr)
- Create a PhoneAddressData instance with the phone number in <country code>-<area code>-<local number> format.
For example: 1-650-5551234
setCountryCode
public void setCountryCode(java.lang.String country)
- Set country code of the phone number. Former country code will be lost.
getCountryCode
public java.lang.String getCountryCode()
- get country code
- Returns:
- null if not available
setAreaCode
public void setAreaCode(java.lang.String area)
- Set area code of this phone number. Former area code will be lost.
getAreaCode
public java.lang.String getAreaCode()
- Get area code
setLocalPhoneNumber
public void setLocalPhoneNumber(java.lang.String local)
- Set local phone number. Former local phone number will be lost.
getLocalPhoneNumber
public java.lang.String getLocalPhoneNumber()
- Get local phone number part
getAddressType
public java.lang.String getAddressType()
- "phone" is returned to indicate that it's a phone number.
- Overrides:
getAddressType
in class AddressData
setAddress
public void setAddress(java.lang.String addr)
- Set the phone number in <country code>-<area code>-<local number> format.
For example: 1-650-5551234
- Overrides:
setAddress
in class AddressData
getAddress
public java.lang.String getAddress()
- get the phone number. The phone number will be in <country code>-<area code>-<local number> format.
For example: 1-650-5551234
- Overrides:
getAddress
in class AddressData
getCarrier
public java.lang.String getCarrier()
- get the carrier of the phone device.
setCarrier
public void setCarrier(java.lang.String carrier)
- set the carrier of the phone
toString
public java.lang.String toString()
- Overrides:
toString
in class AddressData