org.jsmpp.bean
Enum TypeOfNumber

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

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

Type of Number based on SMPP version 3.4.

Since:
1.0
Version:
1.0
Author:
uudashr

Enum Constant Summary
ABBREVIATED
           
ALPHANUMERIC
           
INTERNATIONAL
           
NATIONAL
           
NETWORK_SPECIFIC
           
SUBSCRIBER_NUMBER
           
UNKNOWN
           
 
Method Summary
 byte value()
          Get the byte value of the enum constant.
static TypeOfNumber valueOf(byte value)
          Get the TypeOfNumber based on the specified byte value representation.
static TypeOfNumber valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TypeOfNumber[] 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

UNKNOWN

public static final TypeOfNumber UNKNOWN

INTERNATIONAL

public static final TypeOfNumber INTERNATIONAL

NATIONAL

public static final TypeOfNumber NATIONAL

NETWORK_SPECIFIC

public static final TypeOfNumber NETWORK_SPECIFIC

SUBSCRIBER_NUMBER

public static final TypeOfNumber SUBSCRIBER_NUMBER

ALPHANUMERIC

public static final TypeOfNumber ALPHANUMERIC

ABBREVIATED

public static final TypeOfNumber ABBREVIATED
Method Detail

values

public static TypeOfNumber[] 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 (TypeOfNumber c : TypeOfNumber.values())
    System.out.println(c);

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

valueOf

public static TypeOfNumber 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()
Get the byte value of the enum constant.

Returns:
the byte value.

valueOf

public static TypeOfNumber valueOf(byte value)
Get the TypeOfNumber based on the specified byte value representation.

Parameters:
value - is the byte value representation.
Returns:
is the enum const related to the specified byte value.
Throws:
java.lang.IllegalArgumentException - if there is no enum const associated with specified byte value.