org.apache.directory.shared.asn1.ber.grammar
Interface IStates

All Known Implementing Classes:
EntryChangeControlStatesEnum, GracefulDisconnectStatesEnum, GracefulShutdownStatesEnum, LdapStatesEnum, PSearchControlStatesEnum, SubEntryControlStatesEnum

public interface IStates

This interface is used to store the different states of a grammar. While tracing debugging information, the methods to dump the current state as a string are called.

Author:
Apache Directory Project

Field Summary
static int END_STATE
          The END_STATE
static int GRAMMAR_END
          The ending state for every grammars
static int INIT_GRAMMAR_STATE
          The initial state of every grammar
 
Method Summary
 String getGrammarName(IGrammar grammar)
          Return the grammar name from a grammar
 String getGrammarName(int grammar)
          Return the grammar name from a grammar number
 String getState(int state)
          Get the current state
 

Field Detail

INIT_GRAMMAR_STATE

static final int INIT_GRAMMAR_STATE
The initial state of every grammar

See Also:
Constant Field Values

GRAMMAR_END

static final int GRAMMAR_END
The ending state for every grammars

See Also:
Constant Field Values

END_STATE

static final int END_STATE
The END_STATE

See Also:
Constant Field Values
Method Detail

getState

String getState(int state)
Get the current state


getGrammarName

String getGrammarName(IGrammar grammar)
Return the grammar name from a grammar


getGrammarName

String getGrammarName(int grammar)
Return the grammar name from a grammar number



Copyright © 2004-2012. All Rights Reserved.