org.apache.directory.shared.ldap.codec.extended.operations
Class GracefulDisconnectStatesEnum

java.lang.Object
  extended byorg.apache.directory.shared.ldap.codec.extended.operations.GracefulDisconnectStatesEnum
All Implemented Interfaces:
org.apache.directory.shared.asn1.ber.grammar.IStates

public class GracefulDisconnectStatesEnum
extends java.lang.Object
implements org.apache.directory.shared.asn1.ber.grammar.IStates

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

Author:
Apache Directory Project

Field Summary
static int DELAY_OR_REPLICATED_OR_END_TAG
          Delay Tag
static int DELAY_VALUE
          Delay Value
static int GRACEFUL_DISCONNECT_GRAMMAR
          GracefulDisconnect grammar number
static int GRACEFUL_DISCONNECT_GRAMMAR_SWITCH
          GracefulDisconnect grammar
static int GRACEFUL_DISCONNECT_SEQUENCE_TAG
          Sequence Tag
static int GRACEFUL_DISCONNECT_SEQUENCE_VALUE
          Sequence Value
static int LAST_GRACEFUL_DISCONNECT_STATE
          terminal state
static int NB_GRAMMARS
          The total number of grammars used
static int REPLICATED_CONTEXT_OR_END_TAG
          Replicated contexts Tag
static int REPLICATED_CONTEXT_VALUE
          Replicated contexts Value
static int REPLICATED_CONTEXTS_OR_END_TAG
          Replicated contexts Tag
static int REPLICATED_CONTEXTS_VALUE
          Replicated contexts Value
static int TIME_OFFLINE_OR_DELAY_OR_REPLICATED_OR_END_TAG
          Time offline Tag
static int TIME_OFFLINE_VALUE
          Time offline Value
 
Fields inherited from interface org.apache.directory.shared.asn1.ber.grammar.IStates
END_STATE, GRAMMAR_END, GRAMMAR_SWITCH_MASK, INIT_GRAMMAR_STATE, STATES_SWITCH_MASK
 
Method Summary
 java.lang.String getGrammarName(org.apache.directory.shared.asn1.ber.grammar.IGrammar grammar)
          Get the grammar name
 java.lang.String getGrammarName(int grammar)
          Get the grammar name
static org.apache.directory.shared.asn1.ber.grammar.IStates getInstance()
          Get an instance of this class
 java.lang.String getState(int grammar, 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

GRACEFUL_DISCONNECT_SEQUENCE_TAG

public static int GRACEFUL_DISCONNECT_SEQUENCE_TAG
Sequence Tag


GRACEFUL_DISCONNECT_SEQUENCE_VALUE

public static int GRACEFUL_DISCONNECT_SEQUENCE_VALUE
Sequence Value


TIME_OFFLINE_OR_DELAY_OR_REPLICATED_OR_END_TAG

public static int TIME_OFFLINE_OR_DELAY_OR_REPLICATED_OR_END_TAG
Time offline Tag


TIME_OFFLINE_VALUE

public static int TIME_OFFLINE_VALUE
Time offline Value


DELAY_OR_REPLICATED_OR_END_TAG

public static int DELAY_OR_REPLICATED_OR_END_TAG
Delay Tag


DELAY_VALUE

public static int DELAY_VALUE
Delay Value


REPLICATED_CONTEXTS_OR_END_TAG

public static int REPLICATED_CONTEXTS_OR_END_TAG
Replicated contexts Tag


REPLICATED_CONTEXTS_VALUE

public static int REPLICATED_CONTEXTS_VALUE
Replicated contexts Value


REPLICATED_CONTEXT_OR_END_TAG

public static int REPLICATED_CONTEXT_OR_END_TAG
Replicated contexts Tag


REPLICATED_CONTEXT_VALUE

public static int REPLICATED_CONTEXT_VALUE
Replicated contexts Value


LAST_GRACEFUL_DISCONNECT_STATE

public static int LAST_GRACEFUL_DISCONNECT_STATE
terminal state


GRACEFUL_DISCONNECT_GRAMMAR_SWITCH

public static final int GRACEFUL_DISCONNECT_GRAMMAR_SWITCH
GracefulDisconnect grammar

See Also:
Constant Field Values

GRACEFUL_DISCONNECT_GRAMMAR

public static final int GRACEFUL_DISCONNECT_GRAMMAR
GracefulDisconnect grammar number

See Also:
Constant Field Values

NB_GRAMMARS

public static final int NB_GRAMMARS
The total number of grammars used

See Also:
Constant Field Values
Method Detail

getInstance

public static org.apache.directory.shared.asn1.ber.grammar.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 org.apache.directory.shared.asn1.ber.grammar.IStates
Parameters:
grammar - The grammar code
Returns:
The grammar name

getGrammarName

public java.lang.String getGrammarName(org.apache.directory.shared.asn1.ber.grammar.IGrammar grammar)
Get the grammar name

Specified by:
getGrammarName in interface org.apache.directory.shared.asn1.ber.grammar.IStates
Parameters:
grammar - The grammar class
Returns:
The grammar name

getState

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

Specified by:
getState in interface org.apache.directory.shared.asn1.ber.grammar.IStates
Parameters:
grammar - The current grammar being used
state - The state number
Returns:
The String representing the state


Copyright © 2003-2006 . All Rights Reserved.