org.jsmpp.bean
Enum MessageState

java.lang.Object
  extended by java.lang.Enum<MessageState>
      extended by org.jsmpp.bean.MessageState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MessageState>

public enum MessageState
extends java.lang.Enum<MessageState>

The enumerated state for short message.

Author:
uudashr

Enum Constant Summary
ACCEPTED
          Message is in accepted state.
DELETED
          Message has been deleted.
DELIVERED
          Message is delivered to destination.
ENROUTE
          The message is in enroute state.
EXPIRED
          Message validity period has expired.
REJECTED
          Message is in rejected state.
UNDELIVERABLE
          Message is undeliverable.
UNKNOWN
          Message is in invalid state.
 
Method Summary
 byte value()
           
static MessageState valueOf(byte value)
           
static MessageState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessageState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ENROUTE

public static final MessageState ENROUTE
The message is in enroute state.


DELIVERED

public static final MessageState DELIVERED
Message is delivered to destination.


EXPIRED

public static final MessageState EXPIRED
Message validity period has expired.


DELETED

public static final MessageState DELETED
Message has been deleted.


UNDELIVERABLE

public static final MessageState UNDELIVERABLE
Message is undeliverable.


ACCEPTED

public static final MessageState ACCEPTED
Message is in accepted state.


UNKNOWN

public static final MessageState UNKNOWN
Message is in invalid state.


REJECTED

public static final MessageState REJECTED
Message is in rejected state.

Method Detail

values

public static MessageState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MessageState c : MessageState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MessageState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public byte value()

valueOf

public static MessageState valueOf(byte value)