Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.push
Class PhoneAddressData

java.lang.Object
  extended byoracle.panama.messaging.push.AddressData
      extended byoracle.panama.messaging.push.DeviceAddressData
          extended byoracle.panama.messaging.push.PhoneAddressData

All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class PhoneAddressData
extends DeviceAddressData

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.

See Also:
Serialized Form

Field Summary
java.lang.String addressType

Fields inherited from class oracle.panama.messaging.push.AddressData
failoverOrder, MAX_ADDRESS_LENGTH, MAX_ASSOCIATED_KEY_LENGTH, MAX_NAME_LENGTH, MAX_TRANSPORT_TYPE_LENGTH, totalFailovers

Constructor Summary
PhoneAddressData()
PhoneAddressData(java.lang.String addr)
Create a PhoneAddressData instance with the phone number in <country code>-<area code>-<local number> format.

Method Summary
boolean equals(java.lang.Object other)
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
int hashCode()
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 oracle.panama.messaging.push.DeviceAddressData
getOriginalDeviceAddressData, getOwner, setOriginalDeviceAddressData, setOwner

Methods inherited from class oracle.panama.messaging.push.AddressData
clone, getAssociatedKey, getEncoding, getFailoverAddress, getFailoverDeliveryChannels, getFailoverTransportTypes, getFirstName, getLastName, getPrimaryDeliveryChannel, getPrimaryTransportType, setAddressType, setAssociatedKey, setEncoding, setFailoverAddress, setFailoverDeliveryChannels, setFailoverTransportTypes, setFirstName, setLastName, setPrimaryDeliveryChannel, setPrimaryTransportType

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Field Detail

addressType

public final java.lang.String addressType
See Also:
Constant Field Values

Constructor Detail

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

Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class DeviceAddressData

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

getAddressType

public java.lang.String getAddressType()
"phone" is returned to indicate that it's a phone number.
Overrides:
getAddressType in class AddressData

getAreaCode

public java.lang.String getAreaCode()
Get area code

getCarrier

public java.lang.String getCarrier()
get the carrier of the phone device.

getCountryCode

public java.lang.String getCountryCode()
get country code
Returns:
null if not available

getLocalPhoneNumber

public java.lang.String getLocalPhoneNumber()
Get local phone number part

hashCode

public int hashCode()
Overrides:
hashCode in class DeviceAddressData

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

setAreaCode

public void setAreaCode(java.lang.String area)
Set area code of this phone number. Former area code will be lost.

setCarrier

public void setCarrier(java.lang.String carrier)
set the carrier of the phone

setCountryCode

public void setCountryCode(java.lang.String country)
Set country code of the phone number. Former country code will be lost.

setLocalPhoneNumber

public void setLocalPhoneNumber(java.lang.String local)
Set local phone number. Former local phone number will be lost.

toString

public java.lang.String toString()
Overrides:
toString in class AddressData

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.