org.apache.directory.shared.ldap.codec.controls.replication.syncRequestValue
Class SyncRequestValueControlStatesEnum

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

public class SyncRequestValueControlStatesEnum
extends java.lang.Object
implements IStates

This class store the SyncRequestValueControl'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 COOKIE_STATE
          cookie Value
static int LAST_SYNC_REQUEST_VALUE_STATE
          terminal state
static int MODE_STATE
          mode Value
static int RELOAD_HINT_STATE
          reloadHint Value
static int START_STATE
          Initial state
static int SYNC_REQUEST_VALUE_SEQUENCE_STATE
          Sequence Value
 
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

SYNC_REQUEST_VALUE_SEQUENCE_STATE

public static final int SYNC_REQUEST_VALUE_SEQUENCE_STATE
Sequence Value

See Also:
Constant Field Values

MODE_STATE

public static final int MODE_STATE
mode Value

See Also:
Constant Field Values

COOKIE_STATE

public static final int COOKIE_STATE
cookie Value

See Also:
Constant Field Values

RELOAD_HINT_STATE

public static final int RELOAD_HINT_STATE
reloadHint Value

See Also:
Constant Field Values

LAST_SYNC_REQUEST_VALUE_STATE

public static final int LAST_SYNC_REQUEST_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.