ie.ncl.sms.gsm
Class GsmAddress
java.lang.Object
ie.ncl.msg.Address
ie.ncl.sms.gsm.GsmAddress
- All Implemented Interfaces:
- AttributeNames, AddressAttributeNames, java.io.Serializable, java.lang.Cloneable
public class GsmAddress
- extends Address
- implements AddressAttributeNames
A GSM Addess object. If the number begins with
'+' it will be replaced by '00' and assume
a international TypeOfAddress. Otherwise it
is considered national.
- See Also:
- Serialized Form
Constructor Summary |
GsmAddress(java.lang.String msisdn)
Set the address telephone number. |
GsmAddress(java.lang.String msisdn,
TypeOfAddress typeOfAddress)
Set the address telephone number and
type of address. |
Method Summary |
java.lang.String |
getMsisdn()
Return the MSISDN number. |
TypeOfAddress |
getTypeOfAddress()
Get the address type. |
java.lang.String |
toString()
Return printable telephone number, including a '+' if
the number is an international one. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GsmAddress
public GsmAddress(java.lang.String msisdn,
TypeOfAddress typeOfAddress)
- Set the address telephone number and
type of address.
GsmAddress
public GsmAddress(java.lang.String msisdn)
- Set the address telephone number.
getTypeOfAddress
public TypeOfAddress getTypeOfAddress()
- Get the address type.
- See Also:
TypeOfAddress
getMsisdn
public java.lang.String getMsisdn()
- Return the MSISDN number.
toString
public java.lang.String toString()
- Return printable telephone number, including a '+' if
the number is an international one.
- Overrides:
toString
in class Address
- Returns:
- the string value that was used in its construction.