org.jsmpp.util
Class MessageId

java.lang.Object
  extended by org.jsmpp.util.MessageId

public class MessageId
extends java.lang.Object

This class is wrap simple String value as message_id. The main purpose is the creation of the value will be validated as proper message_id.

Author:
uudashr

Constructor Summary
MessageId(java.lang.String value)
          Construct MessageId with specified value.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getValue()
          Get the message_id value.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageId

public MessageId(java.lang.String value)
          throws PDUStringException
Construct MessageId with specified value.

Parameters:
value - is the message_id as String.
Throws:
PDUStringException
Method Detail

getValue

public java.lang.String getValue()
Get the message_id value.

Returns:
the value of message_id.

toString

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

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