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

All Known Implementing Classes:
CancelStatesEnum, CertGenerationStatesEnum, EntryChangeControlStatesEnum, GracefulDisconnectStatesEnum, GracefulShutdownStatesEnum, LdapStatesEnum, PagedResultsControlStatesEnum, PersistentSearchControlStatesEnum, StoredProcedureStatesEnum, SubentriesControlStatesEnum, SyncDoneValueControlStatesEnum, SyncInfoValueControlStatesEnum, SyncRequestValueControlStatesEnum, SyncStateValueControlStatesEnum

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.

Version:
$Rev: 664290 $, $Date: 2008-06-07 08:28:06 +0200 (Sat, 07 Jun 2008) $
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
 java.lang.String getGrammarName(IGrammar grammar)
          Return the grammar name of a grammar
 java.lang.String getGrammarName(int grammar)
          Return the grammar name from a grammar number
 java.lang.String getState(int state)
          Get the current state's name
 

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

java.lang.String getState(int state)
Get the current state's name

Parameters:
state - the current state
Returns:
the associated name for this state

getGrammarName

java.lang.String getGrammarName(IGrammar grammar)
Return the grammar name of a grammar

Parameters:
grammar - the grammar from which we want the name
Returns:
the grammar's name

getGrammarName

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

Parameters:
grammar - the grammar number from which we want the name
Returns:
the grammar's name


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