|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.Address
public class Address
Object representing a Short Message Entity's address. An address consists of a Type Of Number, a Numbering Plan Indicator and an address.
com.adenki.smpp.util.GSMConstants,
Serialized Form| Constructor Summary | |
|---|---|
Address()
Create a new Address with all nul values. |
|
Address(int ton,
int npi,
String address)
Create a new Address. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Test for equality. |
String |
getAddress()
Get the address. |
int |
getLength()
Get the number of bytes this object would encode to. |
int |
getNPI()
Get the Numbering Plan Indicator. |
int |
getTON()
Get the Type Of Number. |
int |
hashCode()
Get a unique hash code for this address. |
void |
readFrom(PacketDecoder decoder)
TODO: doc |
void |
setAddress(String address)
Set the address. |
void |
setNPI(int npi)
Set the Numbering Plan Indicator. |
void |
setTON(int ton)
Set the Type of Number. |
String |
toString()
|
void |
writeTo(PacketEncoder encoder)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Address()
public Address(int ton,
int npi,
String address)
ton - The Type Of Number.npi - The Numbering Plan Indicator.address - The address.| Method Detail |
|---|
public int getTON()
public void setTON(int ton)
public int getNPI()
public void setNPI(int npi)
public String getAddress()
public void setAddress(String address)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int getLength()
public void writeTo(PacketEncoder encoder)
throws IOException
IOExceptionpublic void readFrom(PacketDecoder decoder)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||