Enum SortResponseStates
- java.lang.Object
-
- java.lang.Enum<SortResponseStates>
-
- org.apache.directory.api.ldap.codec.controls.sort.SortResponseStates
-
- All Implemented Interfaces:
Serializable
,Comparable<SortResponseStates>
,States
public enum SortResponseStates extends Enum<SortResponseStates> implements States
Enumeration of states encountered while decoding a SortResponseControl.- Author:
- Apache Directory Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AT_DESC_STATE
attributeType [0] AttributeDescription OPTIONAL transitionEND_STATE
Final stateRESULT_CODE_STATE
sortResult ENUMERATED transitionSEQUENCE_STATE
SortResult ::= SEQUENCE transitionSTART_STATE
Initialstate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGrammarName()
Get the grammar nameEnum<?>
getStartState()
String
getState(int state)
Get the string representing the stateboolean
isEndState()
static SortResponseStates
valueOf(String name)
Returns the enum constant of this type with the specified name.static SortResponseStates[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_STATE
public static final SortResponseStates START_STATE
Initialstate
-
SEQUENCE_STATE
public static final SortResponseStates SEQUENCE_STATE
SortResult ::= SEQUENCE transition
-
RESULT_CODE_STATE
public static final SortResponseStates RESULT_CODE_STATE
sortResult ENUMERATED transition
-
AT_DESC_STATE
public static final SortResponseStates AT_DESC_STATE
attributeType [0] AttributeDescription OPTIONAL transition
-
END_STATE
public static final SortResponseStates END_STATE
Final state
-
-
Method Detail
-
values
public static SortResponseStates[] 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 (SortResponseStates c : SortResponseStates.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SortResponseStates 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 Enum<?> getStartState()
- Specified by:
getStartState
in interfaceStates
- Returns:
- The START_STATE of the enum
-
-