Enum EndTransactionResponseStates
- java.lang.Object
-
- java.lang.Enum<EndTransactionResponseStates>
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.endTransaction.EndTransactionResponseStates
-
- All Implemented Interfaces:
Serializable
,Comparable<EndTransactionResponseStates>
,States
public enum EndTransactionResponseStates extends Enum<EndTransactionResponseStates> implements States
This class store the EndTransactionResponse's grammar constants. It is also used for debugging purposes.- Author:
- Apache Directory Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTROL_MESSAGE_ID_STATE
THe control's message ID stateCONTROLS_STATE
The control's stateEND_STATE
The END_STATEEND_TRANSACTION_SEQUENCE_STATE
The initial SEQUENCEFAILED_MESSAGE_ID_STATE
The failed message IDLAST_STATE
Last stateSTART_STATE
start stateUPDATE_CONTROL_SEQ_STATE
The update control SEQUPDATE_CONTROLS_SEQ_STATE
The update controls SEQ
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGrammarName()
Get the grammar nameEndTransactionResponseStates
getStartState()
String
getState(int state)
Get the string representing the stateboolean
isEndState()
static EndTransactionResponseStates
valueOf(String name)
Returns the enum constant of this type with the specified name.static EndTransactionResponseStates[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
END_STATE
public static final EndTransactionResponseStates END_STATE
The END_STATE
-
START_STATE
public static final EndTransactionResponseStates START_STATE
start state
-
END_TRANSACTION_SEQUENCE_STATE
public static final EndTransactionResponseStates END_TRANSACTION_SEQUENCE_STATE
The initial SEQUENCE
-
FAILED_MESSAGE_ID_STATE
public static final EndTransactionResponseStates FAILED_MESSAGE_ID_STATE
The failed message ID
-
UPDATE_CONTROLS_SEQ_STATE
public static final EndTransactionResponseStates UPDATE_CONTROLS_SEQ_STATE
The update controls SEQ
-
UPDATE_CONTROL_SEQ_STATE
public static final EndTransactionResponseStates UPDATE_CONTROL_SEQ_STATE
The update control SEQ
-
CONTROL_MESSAGE_ID_STATE
public static final EndTransactionResponseStates CONTROL_MESSAGE_ID_STATE
THe control's message ID state
-
CONTROLS_STATE
public static final EndTransactionResponseStates CONTROLS_STATE
The control's state
-
LAST_STATE
public static final EndTransactionResponseStates LAST_STATE
Last state
-
-
Method Detail
-
values
public static EndTransactionResponseStates[] 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 (EndTransactionResponseStates c : EndTransactionResponseStates.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EndTransactionResponseStates valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getGrammarName
public String getGrammarName()
Get the grammar name- Returns:
- The grammar name
-
getState
public String getState(int state)
Get the string representing the state- Parameters:
state
- The state number- Returns:
- The String representing the state
-
isEndState
public boolean isEndState()
- Specified by:
isEndState
in interfaceStates
- Returns:
- True if this is the END_STATE
-
getStartState
public EndTransactionResponseStates getStartState()
- Specified by:
getStartState
in interfaceStates
- Returns:
- The START_STATE of the enum
-
-