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

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.search.controls.PSearchControlStatesEnum
All Implemented Interfaces:
IStates

public class PSearchControlStatesEnum
extends java.lang.Object
implements IStates

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

Version:
$Rev: 664290 $, $Date: 2008-06-07 08:28:06 +0200 (Sa, 07 Jun 2008) $,
Author:
Apache Directory Project

Field Summary
static int CHANGE_TYPES_STATE
          changeTypes Value
static int CHANGES_ONLY_STATE
          changesOnly Value
static int LAST_PSEARCH_STATE
          terminal state
static int PSEARCH_SEQUENCE_STATE
          Sequence Value
static int RETURN_ECS_STATE
          returnECs Value
static int START_STATE
          Initial state
 
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

PSEARCH_SEQUENCE_STATE

public static final int PSEARCH_SEQUENCE_STATE
Sequence Value

See Also:
Constant Field Values

CHANGE_TYPES_STATE

public static final int CHANGE_TYPES_STATE
changeTypes Value

See Also:
Constant Field Values

CHANGES_ONLY_STATE

public static final int CHANGES_ONLY_STATE
changesOnly Value

See Also:
Constant Field Values

RETURN_ECS_STATE

public static final int RETURN_ECS_STATE
returnECs Value

See Also:
Constant Field Values

LAST_PSEARCH_STATE

public static final int LAST_PSEARCH_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-2009 Apache Software Foundation. All Rights Reserved.