org.apache.directory.shared.ldap.codec.search.controls
Class SubEntryControlStatesEnum

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

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

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

Author:
Apache Directory Project

Field Summary
static int LAST_SUB_ENTRY_STATE
          terminal state
static int NB_GRAMMARS
          The total number of grammars used
static int SUB_ENTRY_GRAMMAR
          PSearch grammar number
static int SUB_ENTRY_GRAMMAR_SWITCH
          PSsearch grammar
static int SUB_ENTRY_VISIBILITY_TAG
          Visibility Tag
static int SUB_ENTRY_VISIBILITY_VALUE
          Visibility 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

SUB_ENTRY_VISIBILITY_TAG

public static int SUB_ENTRY_VISIBILITY_TAG
Visibility Tag


SUB_ENTRY_VISIBILITY_VALUE

public static int SUB_ENTRY_VISIBILITY_VALUE
Visibility Value


LAST_SUB_ENTRY_STATE

public static int LAST_SUB_ENTRY_STATE
terminal state


SUB_ENTRY_GRAMMAR_SWITCH

public static final int SUB_ENTRY_GRAMMAR_SWITCH
PSsearch grammar

See Also:
Constant Field Values

SUB_ENTRY_GRAMMAR

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