org.jsmpp.bean
Enum GSMSpecificFeature

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

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

Author:
uudashr

Enum Constant Summary
DEFAULT
           
REPLYPATH
          Reply path.
UDHI
          User data header indicator.
UDHI_REPLYPATH
          User data header indicator and Reply path.
 
Field Summary
static byte CLEAR_BYTE
           
static byte MASK_BYTE
           
 
Method Summary
static byte clear(byte esmClass)
          Clear the bit 0 - 6.
static byte compose(byte esmClass, GSMSpecificFeature specificFeature)
          Compose the existing ESM class with the GSM specific feature.
 boolean containedIn(byte esmClass)
          Check the GSM Specific Feature is contained in ESM class value.
 boolean containedIn(ESMClass esmClass)
          Check the GSM Specific Feature is contained in ESM class value.
 byte value()
           
static GSMSpecificFeature valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GSMSpecificFeature[] 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

DEFAULT

public static final GSMSpecificFeature DEFAULT

UDHI

public static final GSMSpecificFeature UDHI
User data header indicator.


REPLYPATH

public static final GSMSpecificFeature REPLYPATH
Reply path.


UDHI_REPLYPATH

public static final GSMSpecificFeature UDHI_REPLYPATH
User data header indicator and Reply path.

Field Detail

CLEAR_BYTE

public static final byte CLEAR_BYTE
See Also:
Constant Field Values

MASK_BYTE

public static final byte MASK_BYTE
See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

public static GSMSpecificFeature 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()

containedIn

public boolean containedIn(ESMClass esmClass)
Check the GSM Specific Feature is contained in ESM class value.

Parameters:
esmClass - is the ESM class.
Returns:
true if the GSM specific feature is contained in ESM class.

containedIn

public boolean containedIn(byte esmClass)
Check the GSM Specific Feature is contained in ESM class value.

Parameters:
esmClass - is the ESM class.
Returns:
true if the GSM specific feature is contained in ESM class.

compose

public static byte compose(byte esmClass,
                           GSMSpecificFeature specificFeature)
Compose the existing ESM class with the GSM specific feature.

Parameters:
esmClass - is the existing ESM class.
specificFeature - the GSM specific feature.
Returns:
the ESM class composed with specified GSM specific feature.

clear

public static byte clear(byte esmClass)
Clear the bit 0 - 6.

Parameters:
esmClass - is the ESM class value.
Returns:
the masked value for ESM class.