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_STATEattributeType [0] AttributeDescription OPTIONAL transitionEND_STATEFinal stateRESULT_CODE_STATEsortResult ENUMERATED transitionSEQUENCE_STATESortResult ::= SEQUENCE transitionSTART_STATEInitialstate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGrammarName()Get the grammar nameEnum<?>getStartState()StringgetState(int state)Get the string representing the statebooleanisEndState()static SortResponseStatesvalueOf(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:
isEndStatein interfaceStates- Returns:
- True if this is the END_STATE
-
getStartState
public Enum<?> getStartState()
- Specified by:
getStartStatein interfaceStates- Returns:
- The START_STATE of the enum
-
-