org.jsmpp.bean
Enum Alphabet

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

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

This is enum of the alphabet type.

Version:
1.0
Author:
uudashr

Enum Constant Summary
ALPHA_8_BIT
          The -bit aphabet coding.
ALPHA_DEFAULT
          SMSC alphabet default
ALPHA_RESERVED
          Unused.
ALPHA_UCS2
          UCS2 alphabet coding (16-bit)
 
Field Summary
static byte MASK_ALPHABET
          Is the MASK of alphabet (00001100).
private  byte value
           
 
Method Summary
static Alphabet parseDataCoding(byte dataCoding)
           
 byte value()
          Get the alphabet value.
static Alphabet valueOf(byte value)
          Get the enum constant associated with specified value.
static Alphabet valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Alphabet[] 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

ALPHA_DEFAULT

public static final Alphabet ALPHA_DEFAULT
SMSC alphabet default


ALPHA_8_BIT

public static final Alphabet ALPHA_8_BIT
The -bit aphabet coding.


ALPHA_UCS2

public static final Alphabet ALPHA_UCS2
UCS2 alphabet coding (16-bit)


ALPHA_RESERVED

public static final Alphabet ALPHA_RESERVED
Unused.

Field Detail

MASK_ALPHABET

public static final byte MASK_ALPHABET
Is the MASK of alphabet (00001100).

See Also:
Constant Field Values

value

private final byte value
Method Detail

values

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

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

valueOf

public static Alphabet 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 alphabet value.

Returns:
the alphabet value.

valueOf

public static Alphabet valueOf(byte value)
                        throws java.lang.IllegalArgumentException
Get the enum constant associated with specified value.

Parameters:
value - is the value associated with the Alphabet enum constant.
Returns:
the associated enum constant.
Throws:
java.lang.IllegalArgumentException - if there is no associated enum constant for given value.

parseDataCoding

public static Alphabet parseDataCoding(byte dataCoding)
                                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException