Enum SyncInfoValueStatesEnum
- java.lang.Object
-
- java.lang.Enum<SyncInfoValueStatesEnum>
-
- org.apache.directory.api.ldap.extras.intermediate.syncrepl_impl.SyncInfoValueStatesEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<SyncInfoValueStatesEnum>
,States
public enum SyncInfoValueStatesEnum extends Enum<SyncInfoValueStatesEnum> implements States
This class store the SyncInfoValue's grammar constants. It is also used for debugging purposes.- Author:
- Apache Directory Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_STATE
The END_STATELAST_SYNC_INFO_VALUE_STATE
terminal stateNEW_COOKIE_STATE
NewCookie stateREFRESH_DELETE_COOKIE_STATE
RefreshDelete cookie stateREFRESH_DELETE_REFRESH_DONE_STATE
RefreshDelete refreshDone stateREFRESH_DELETE_STATE
RefreshDelete stateREFRESH_PRESENT_COOKIE_STATE
RefreshPresent cookie stateREFRESH_PRESENT_REFRESH_DONE_STATE
RefreshPresent refreshDone stateREFRESH_PRESENT_STATE
RefreshPresent stateSTART_STATE
Initial stateSYNC_ID_SET_COOKIE_STATE
SyncIdSet cookie stateSYNC_ID_SET_REFRESH_DELETES_STATE
SyncIdSet refreshDone stateSYNC_ID_SET_SET_OF_UUIDS_STATE
SyncIdSet SET OF UUIDs stateSYNC_ID_SET_STATE
SyncIdSet stateSYNC_ID_SET_UUID_STATE
SyncIdSet UUID state
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGrammarName()
Get the grammar nameSyncInfoValueStatesEnum
getStartState()
String
getState(int state)
Get the string representing the stateboolean
isEndState()
static SyncInfoValueStatesEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static SyncInfoValueStatesEnum[]
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 SyncInfoValueStatesEnum END_STATE
The END_STATE
-
START_STATE
public static final SyncInfoValueStatesEnum START_STATE
Initial state
-
NEW_COOKIE_STATE
public static final SyncInfoValueStatesEnum NEW_COOKIE_STATE
NewCookie state
-
REFRESH_DELETE_STATE
public static final SyncInfoValueStatesEnum REFRESH_DELETE_STATE
RefreshDelete state
-
REFRESH_DELETE_COOKIE_STATE
public static final SyncInfoValueStatesEnum REFRESH_DELETE_COOKIE_STATE
RefreshDelete cookie state
-
REFRESH_DELETE_REFRESH_DONE_STATE
public static final SyncInfoValueStatesEnum REFRESH_DELETE_REFRESH_DONE_STATE
RefreshDelete refreshDone state
-
REFRESH_PRESENT_STATE
public static final SyncInfoValueStatesEnum REFRESH_PRESENT_STATE
RefreshPresent state
-
REFRESH_PRESENT_COOKIE_STATE
public static final SyncInfoValueStatesEnum REFRESH_PRESENT_COOKIE_STATE
RefreshPresent cookie state
-
REFRESH_PRESENT_REFRESH_DONE_STATE
public static final SyncInfoValueStatesEnum REFRESH_PRESENT_REFRESH_DONE_STATE
RefreshPresent refreshDone state
-
SYNC_ID_SET_STATE
public static final SyncInfoValueStatesEnum SYNC_ID_SET_STATE
SyncIdSet state
-
SYNC_ID_SET_COOKIE_STATE
public static final SyncInfoValueStatesEnum SYNC_ID_SET_COOKIE_STATE
SyncIdSet cookie state
-
SYNC_ID_SET_REFRESH_DELETES_STATE
public static final SyncInfoValueStatesEnum SYNC_ID_SET_REFRESH_DELETES_STATE
SyncIdSet refreshDone state
-
SYNC_ID_SET_SET_OF_UUIDS_STATE
public static final SyncInfoValueStatesEnum SYNC_ID_SET_SET_OF_UUIDS_STATE
SyncIdSet SET OF UUIDs state
-
SYNC_ID_SET_UUID_STATE
public static final SyncInfoValueStatesEnum SYNC_ID_SET_UUID_STATE
SyncIdSet UUID state
-
LAST_SYNC_INFO_VALUE_STATE
public static final SyncInfoValueStatesEnum LAST_SYNC_INFO_VALUE_STATE
terminal state
-
-
Method Detail
-
values
public static SyncInfoValueStatesEnum[] 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 (SyncInfoValueStatesEnum c : SyncInfoValueStatesEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SyncInfoValueStatesEnum 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 SyncInfoValueStatesEnum getStartState()
- Specified by:
getStartState
in interfaceStates
- Returns:
- The START_STATE of the enum
-
-