|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BindType>
org.jsmpp.bean.BindType
public enum BindType
Enum represent bind type of SMPP. There is 3 bind type provide by SMPP:
Enum Constant Summary | |
---|---|
BIND_RX
Bind receiver. |
|
BIND_TRX
Bind transceiver. |
|
BIND_TX
Bind transmitter. |
Field Summary | |
---|---|
private int |
bindCommandId
|
Method Summary | |
---|---|
int |
commandId()
Get the command_id of given bind type. |
boolean |
isReceiveable()
Inform whether the bind type is receivable. |
boolean |
isTransmitable()
Inform whether the bind type is transmitable. |
int |
responseCommandId()
Return the response command_id that should given by this bind type. |
static BindType |
valueOf(int bindCommandId)
Get the BindType by specified command_id. |
static BindType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BindType[] |
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 |
---|
public static final BindType BIND_TX
public static final BindType BIND_RX
public static final BindType BIND_TRX
Field Detail |
---|
private int bindCommandId
Method Detail |
---|
public static BindType[] values()
for (BindType c : BindType.values()) System.out.println(c);
public static BindType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int commandId()
public int responseCommandId()
public boolean isTransmitable()
public boolean isReceiveable()
public static final BindType valueOf(int bindCommandId) throws java.lang.IllegalArgumentException
bindCommandId
- is the command_id.
java.lang.IllegalArgumentException
- if there is no BindType
associated with specified bindCommandId found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |