org.apache.directory.shared.ldap.extras.controls.syncrepl_impl
Enum SyncInfoValueStatesEnum

java.lang.Object
  extended by java.lang.Enum<SyncInfoValueStatesEnum>
      extended by org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncInfoValueStatesEnum
All Implemented Interfaces:
Serializable, Comparable<SyncInfoValueStatesEnum>, States

public enum SyncInfoValueStatesEnum
extends Enum<SyncInfoValueStatesEnum>
implements States

This class store the SyncInfoValueControl's grammar constants. It is also used for debugging purposes.

Author:
Apache Directory Project

Enum Constant Summary
END_STATE
          The END_STATE
LAST_SYNC_INFO_VALUE_STATE
          terminal state
NEW_COOKIE_STATE
          NewCookie state
REFRESH_DELETE_COOKIE_STATE
          RefreshDelete cookie state
REFRESH_DELETE_REFRESH_DONE_STATE
          RefreshDelete refreshDone state
REFRESH_DELETE_STATE
          RefreshDelete state
REFRESH_PRESENT_COOKIE_STATE
          RefreshPresent cookie state
REFRESH_PRESENT_REFRESH_DONE_STATE
          RefreshPresent refreshDone state
REFRESH_PRESENT_STATE
          RefreshPresent state
START_STATE
          Initial state
SYNC_ID_SET_COOKIE_STATE
          SyncIdSet cookie state
SYNC_ID_SET_REFRESH_DELETES_STATE
          SyncIdSet refreshDone state
SYNC_ID_SET_SET_OF_UUIDS_STATE
          SyncIdSet SET OF UUIDs state
SYNC_ID_SET_STATE
          SyncIdSet state
SYNC_ID_SET_UUID_STATE
          SyncIdSet UUID state
 
Method Summary
 String getGrammarName(Grammar grammar)
          Get the grammar name
 String getGrammarName(int grammar)
          Get the grammar name
 SyncInfoValueStatesEnum getStartState()
          
 String getState(int state)
          Get the string representing the state
 boolean 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.
 
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

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 name
NullPointerException - if the argument is null

getGrammarName

public String getGrammarName(int grammar)
Get the grammar name

Parameters:
grammar - The grammar code
Returns:
The grammar name

getGrammarName

public String getGrammarName(Grammar grammar)
Get the grammar name

Parameters:
grammar - The grammar class
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 interface States

getStartState

public SyncInfoValueStatesEnum getStartState()

Specified by:
getStartState in interface States


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.