org.apache.directory.shared.ldap.codec.controls.replication.syncInfoValue
Class SyncInfoValueControlStatesEnum

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.controls.replication.syncInfoValue.SyncInfoValueControlStatesEnum
All Implemented Interfaces:
IStates

public class SyncInfoValueControlStatesEnum
extends java.lang.Object
implements IStates

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

Version:
$Rev: 741888 $, $Date: 2009-02-07 13:57:03 +0100 (Sat, 07 Feb 2009) $,
Author:
Apache Directory Project

Field Summary
static int LAST_SYNC_INFO_VALUE_STATE
          terminal state
static int NEW_COOKIE_STATE
          NewCookie state
static int REFRESH_DELETE_COOKIE_STATE
          RefreshDelete cookie state
static int REFRESH_DELETE_REFRESH_DONE_STATE
          RefreshDelete refreshDone state
static int REFRESH_DELETE_STATE
          RefreshDelete state
static int REFRESH_PRESENT_COOKIE_STATE
          RefreshPresent cookie state
static int REFRESH_PRESENT_REFRESH_DONE_STATE
          RefreshPresent refreshDone state
static int REFRESH_PRESENT_STATE
          RefreshPresent state
static int START_STATE
          Initial state
static int SYNC_ID_SET_COOKIE_STATE
          SyncIdSet cookie state
static int SYNC_ID_SET_REFRESH_DELETES_STATE
          SyncIdSet refreshDone state
static int SYNC_ID_SET_SET_OF_UUIDS_STATE
          SyncIdSet SET OF UUIDs state
static int SYNC_ID_SET_STATE
          SyncIdSet state
static int SYNC_ID_SET_UUID_STATE
          SyncIdSet UUID state
 
Fields inherited from interface org.apache.directory.shared.asn1.ber.grammar.IStates
END_STATE, GRAMMAR_END, INIT_GRAMMAR_STATE
 
Method Summary
 java.lang.String getGrammarName(IGrammar grammar)
          Get the grammar name
 java.lang.String getGrammarName(int grammar)
          Get the grammar name
static IStates getInstance()
          Get an instance of this class
 java.lang.String getState(int state)
          Get the string representing the state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_STATE

public static final int START_STATE
Initial state

See Also:
Constant Field Values

NEW_COOKIE_STATE

public static final int NEW_COOKIE_STATE
NewCookie state

See Also:
Constant Field Values

REFRESH_DELETE_STATE

public static final int REFRESH_DELETE_STATE
RefreshDelete state

See Also:
Constant Field Values

REFRESH_DELETE_COOKIE_STATE

public static final int REFRESH_DELETE_COOKIE_STATE
RefreshDelete cookie state

See Also:
Constant Field Values

REFRESH_DELETE_REFRESH_DONE_STATE

public static final int REFRESH_DELETE_REFRESH_DONE_STATE
RefreshDelete refreshDone state

See Also:
Constant Field Values

REFRESH_PRESENT_STATE

public static final int REFRESH_PRESENT_STATE
RefreshPresent state

See Also:
Constant Field Values

REFRESH_PRESENT_COOKIE_STATE

public static final int REFRESH_PRESENT_COOKIE_STATE
RefreshPresent cookie state

See Also:
Constant Field Values

REFRESH_PRESENT_REFRESH_DONE_STATE

public static final int REFRESH_PRESENT_REFRESH_DONE_STATE
RefreshPresent refreshDone state

See Also:
Constant Field Values

SYNC_ID_SET_STATE

public static final int SYNC_ID_SET_STATE
SyncIdSet state

See Also:
Constant Field Values

SYNC_ID_SET_COOKIE_STATE

public static final int SYNC_ID_SET_COOKIE_STATE
SyncIdSet cookie state

See Also:
Constant Field Values

SYNC_ID_SET_REFRESH_DELETES_STATE

public static final int SYNC_ID_SET_REFRESH_DELETES_STATE
SyncIdSet refreshDone state

See Also:
Constant Field Values

SYNC_ID_SET_SET_OF_UUIDS_STATE

public static final int SYNC_ID_SET_SET_OF_UUIDS_STATE
SyncIdSet SET OF UUIDs state

See Also:
Constant Field Values

SYNC_ID_SET_UUID_STATE

public static final int SYNC_ID_SET_UUID_STATE
SyncIdSet UUID state

See Also:
Constant Field Values

LAST_SYNC_INFO_VALUE_STATE

public static final int LAST_SYNC_INFO_VALUE_STATE
terminal state

See Also:
Constant Field Values
Method Detail

getInstance

public static IStates getInstance()
Get an instance of this class

Returns:
An instance on this class

getGrammarName

public java.lang.String getGrammarName(int grammar)
Get the grammar name

Specified by:
getGrammarName in interface IStates
Parameters:
grammar - The grammar code
Returns:
The grammar name

getGrammarName

public java.lang.String getGrammarName(IGrammar grammar)
Get the grammar name

Specified by:
getGrammarName in interface IStates
Parameters:
grammar - The grammar class
Returns:
The grammar name

getState

public java.lang.String getState(int state)
Get the string representing the state

Specified by:
getState in interface IStates
Parameters:
state - The state number
Returns:
The String representing the state


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