org.jsmpp.bean
Enum InterfaceVersion

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

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

Enum represent the interface version of SMPP.

Since:
1.0
Version:
1.0
Author:
uudashr

Enum Constant Summary
IF_33
          Interface Version for SMPP version 3.3.
IF_34
          Interface Version for SMPP version 3.4.
IF_50
          Interface Version for SMPP version 5.0
 
Method Summary
 byte value()
          Get the value of interface version as defined on SMPP spesification.
static InterfaceVersion valueOf(byte value)
          Get the InterfaceVersion by specified value.
static InterfaceVersion valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static InterfaceVersion[] 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

IF_33

public static final InterfaceVersion IF_33
Interface Version for SMPP version 3.3.


IF_34

public static final InterfaceVersion IF_34
Interface Version for SMPP version 3.4.


IF_50

public static final InterfaceVersion IF_50
Interface Version for SMPP version 5.0

Method Detail

values

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

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

valueOf

public static InterfaceVersion 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 value of interface version as defined on SMPP spesification.

Returns:
the value of interface version.

valueOf

public static InterfaceVersion valueOf(byte value)
                                throws java.lang.IllegalArgumentException
Get the InterfaceVersion by specified value.

Parameters:
value - is the value associated by the enum constant.
Returns:
the enum const assiciated with specified value.
Throws:
java.lang.IllegalArgumentException - if there is InterfaceVersion associated with specified value.