directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r185066 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
Date Mon, 06 Jun 2005 22:28:24 GMT
Author: elecharny
Date: Mon Jun  6 15:28:23 2005
New Revision: 185066

URL: http://svn.apache.org/viewcvs?rev=185066&view=rev
Log:
Added many states for three different grammars :
- SearchRequest (and all its sub-grammars)
- ModifyDNResponse 
- SeatchResultDone

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java?rev=185066&r1=185065&r2=185066&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
Mon Jun  6 15:28:23 2005
@@ -52,7 +52,9 @@
     /** MessageID Value */
     public static int LDAP_MESSAGE_ID_VALUE = 5;
 
-    // ProtocolOp -------------------------------------------------------------
+    //=========================================================================
+    // ProtocolOp
+    //=========================================================================
     /** protocolOp CHOICE Tag */
     public static int PROTOCOL_OP_TAG = 6;
 
@@ -83,7 +85,7 @@
     /** Version Length */
     public static int BIND_REQUEST_VERSION_LENGTH = 4;
 
-    /** Version Length */
+    /** Version Value */
     public static int BIND_REQUEST_VERSION_VALUE = 5;
 
     // Name -------------------------------------------------------------------
@@ -217,7 +219,7 @@
     public static int CONTROL_VALUE_VALUE = 15;
 
     /** Control last state */
-    public static int CONTROL_LAST_STATE = 16;
+    public static int LAST_CONTROL_STATE = 16;
 
     //=========================================================================
     // BindResponse
@@ -240,7 +242,7 @@
     /** serverSaslCreds Length */
     public static int BIND_RESPONSE_SERVER_SASL_CREDS_LENGTH = 5;
 
-    /** serverSaslCreds Length */
+    /** serverSaslCreds Value */
     public static int BIND_RESPONSE_SERVER_SASL_CREDS_VALUE = 6;
 
     /** Last state */
@@ -319,6 +321,42 @@
     public static int LAST_MODIFY_RESPONSE_STATE = 4;
 
     //=========================================================================
+    // ModifyDNResponse 
+    //=========================================================================
+    /**  Modify DN Response Tag */
+    public static int MODIFY_DN_RESPONSE_TAG = 0;
+
+    /**  Modify DN Response Length */
+    public static int MODIFY_DN_RESPONSE_LENGTH = 1;
+
+    /**  Modify DN Response Value */
+    public static int MODIFY_DN_RESPONSE_VALUE = 2;
+
+    /**  Modify DN Response Ldap Result (we will switch the grammar here) */
+    public static int MODIFY_DN_RESPONSE_LDAP_RESULT = 3;
+
+    /** Last state */
+    public static int LAST_MODIFY_DN_RESPONSE_STATE = 4;
+
+    //=========================================================================
+    // SearchResultDone
+    //=========================================================================
+    /**  SearchResultDone Tag */
+    public static int SEARCH_RESULT_DONE_TAG = 0;
+
+    /**  SearchResultDone Length */
+    public static int SEARCH_RESULT_DONE_LENGTH = 1;
+
+    /**  SearchResultDone Value */
+    public static int SEARCH_RESULT_DONE_VALUE = 2;
+
+    /**  SearchResultDone Ldap Result (we will switch the grammar here) */
+    public static int SEARCH_RESULT_DONE_LDAP_RESULT = 3;
+
+    /** Last state */
+    public static int LAST_SEARCH_RESULT_DONE_STATE = 4;
+
+    //=========================================================================
     // LdapResult grammar states 
     //=========================================================================
     /** LdapResult Code Tag */
@@ -357,7 +395,7 @@
     /** LdapResult referral sequence Length */
     public static int LDAP_RESULT_REFERRAL_SEQUENCE_LENGTH = 10;
 
-    // LdapResult referrale ---------------------------------------------------
+    // LdapResult referral ---------------------------------------------------
     /** LdapResult referral Tag */
     public static int LDAP_RESULT_REFERRAL_TAG = 11;
 
@@ -371,7 +409,306 @@
     public static int LDAP_RESULT_REFERRAL_LOOP_TAG = 14;
 
     /** The last state */
-    public static int LDAP_RESULT_LAST_STATE = 15;
+    public static int LAST_LDAP_RESULT_STATE = 15;
+
+    //=========================================================================
+    // SearchRequest grammar states 
+    //=========================================================================
+    // SearchRequest ----------------------------------------------------------
+    /** SearchRequest Tag */
+    public static int SEARCH_REQUEST_TAG = 0;
+
+    /** SearchRequest Length */
+    public static int SEARCH_REQUEST_LENGTH = 1;
+
+    /** SearchRequest Value */
+    public static int SEARCH_REQUEST_VALUE = 2;
+
+    // SearchRequest base Object ----------------------------------------------
+    /** SearchRequest BaseObject Tag */
+    public static int SEARCH_REQUEST_BASE_OBJECT_TAG = 3;
+
+    /** SearchRequest BaseObject Length */
+    public static int SEARCH_REQUEST_BASE_OBJECT_LENGTH = 4;
+
+    /** SearchRequest BaseObject Value */
+    public static int SEARCH_REQUEST_BASE_OBJECT_VALUE = 5;
+
+    // SearchRequest scope ----------------------------------------------------
+    /** SearchRequest scope Tag */
+    public static int SEARCH_REQUEST_SCOPE_TAG = 6;
+
+    /** SearchRequest scope Length */
+    public static int SEARCH_REQUEST_SCOPE_LENGTH = 7;
+
+    /** SearchRequest scope Value */
+    public static int SEARCH_REQUEST_SCOPE_VALUE = 8;
+
+    // SearchRequest derefAliases ---------------------------------------------
+    /** SearchRequest derefAliases Tag */
+    public static int SEARCH_REQUEST_DEREF_ALIASES_TAG = 9;
+
+    /** SearchRequest derefAliases Length */
+    public static int SEARCH_REQUEST_DEREF_ALIASES_LENGTH = 10;
+
+    /** SearchRequest derefAliases Value */
+    public static int SEARCH_REQUEST_DEREF_ALIASES_VALUE = 11;
+
+    // SearchRequest sizeLimit ------------------------------------------------
+    /** SearchRequest sizeLimit Tag */
+    public static int SEARCH_REQUEST_SIZE_LIMIT_TAG = 12;
+
+    /** SearchRequest sizeLimit Length */
+    public static int SEARCH_REQUEST_SIZE_LIMIT_LENGTH = 13;
+
+    /** SearchRequest sizeLimit Value */
+    public static int SEARCH_REQUEST_SIZE_LIMIT_VALUE = 14;
+
+    // SearchRequest timeLimit ------------------------------------------------
+    /** SearchRequest timeLimit Tag */
+    public static int SEARCH_REQUEST_TIME_LIMIT_TAG = 15;
+
+    /** SearchRequest timeLimit Length */
+    public static int SEARCH_REQUEST_TIME_LIMIT_LENGTH = 16;
+
+    /** SearchRequest timeLimit Value */
+    public static int SEARCH_REQUEST_TIME_LIMIT_VALUE = 17;
+
+    // SearchRequest typesOnly ------------------------------------------------
+    /** SearchRequest typesOnly Tag */
+    public static int SEARCH_REQUEST_TYPES_ONLY_TAG = 18;
+
+    /** SearchRequest typesOnly Length */
+    public static int SEARCH_REQUEST_TYPES_ONLY_LENGTH = 19;
+
+    /** SearchRequest typesOnly Value */
+    public static int SEARCH_REQUEST_TYPES_ONLY_VALUE = 20;
+
+    // SearchRequest Filter ---------------------------------------------------
+    /** SearchRequest Filter (we will switch the grammar here) */
+    public static int SEARCH_REQUEST_FILTER = 21;
+
+    // SearchRequest attribute description list -------------------------------
+    /** SearchRequest attributes description list Tag */
+    public static int SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LIST_TAG = 22;
+
+    /** serverSaslCreds attributes description list Length */
+    public static int SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LIST_LENGTH = 23;
+
+    /** serverSaslCreds attributes description list Value */
+    public static int SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LIST_VALUE = 24;
+
+    // SearchRequest attribute description ------------------------------------
+    /** SearchRequest attributes description Tag */
+    public static int SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_TAG = 25;
+
+    /** SearchRequest attributes description Length */
+    public static int SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LENGTH = 26;
+
+    /** SearchRequest attributes description Value */
+    public static int SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_VALUE = 27;
+
+    /** SearchRequest attributes description Tag loop */
+    public static int SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LOOP_TAG = 28;
+    
+    /** The last state */
+    public static int LAST_SEARCH_REQUEST_STATE = 29;
+
+    //=========================================================================
+    // Filter grammar states 
+    //=========================================================================
+    /** Filter Tag */
+    public static int FILTER_TAG = 0;
+
+    // Filter and -------------------------------------------------------------
+    /** Filter And Tag */
+    public static int FILTER_AND_TAG = 1;
+
+    /** Filter And Length */
+    public static int FILTER_AND_LENGTH = 2;
+
+    /** Filter And Value */
+    public static int FILTER_AND_VALUE = 3;
+
+    // Filter or --------------------------------------------------------------
+    /** Filter Or Tag */
+    public static int FILTER_OR_TAG = 4;
+
+    /** Filter Or Length */
+    public static int FILTER_OR_LENGTH = 5;
+
+    /** Filter Or Value */
+    public static int FILTER_OR_VALUE = 6;
+
+    // Filter not -------------------------------------------------------------
+    /** Filter Not Tag */
+    public static int FILTER_NOT_TAG = 7;
+
+    /** Filter Not Length */
+    public static int FILTER_NOT_LENGTH = 8;
+
+    /** Filter Not Value */
+    public static int FILTER_NOT_VALUE = 9;
+    
+    // Filter equalityMatch ---------------------------------------------------
+    /** Filter equalityMatch Tag */
+    public static int FILTER_EQUALITY_MATCH_TAG = 10;
+
+    /** Filter equalityMatch Length */
+    public static int FILTER_EQUALITY_MATCH_LENGTH = 11;
+
+    /** Filter equalityMatch Value */
+    public static int FILTER_EQUALITY_MATCH_VALUE = 12;
+
+    // Filter substrings ------------------------------------------------------
+    /** Filter substrings Tag */
+    public static int FILTER_SUBSTRINGS_TAG = 13;
+
+    /** Filter substrings Length */
+    public static int FILTER_SUBSTRINGS_LENGTH = 14;
+
+    /** Filter substrings Value */
+    public static int FILTER_SUBSTRINGS_VALUE = 15;
+
+    // Filter greaterOrEqual --------------------------------------------------
+    /** Filter greaterOrEqual Tag */
+    public static int FILTER_GREATER_OR_EQUAL_TAG = 16;
+
+    /** Filter greaterOrEqual Length */
+    public static int FILTER_GREATER_OR_EQUAL_LENGTH = 17;
+
+    /** Filter greaterOrEqual Value */
+    public static int FILTER_GREATER_OR_EQUAL_VALUE = 18;
+
+    // Filter lessOrEqual -----------------------------------------------------
+    /** Filter lessOrEqual Tag */
+    public static int FILTER_LESS_OR_EQUAL_TAG = 19;
+
+    /** Filter lessOrEqual Length */
+    public static int FILTER_LESS_OR_EQUAL_LENGTH = 20;
+
+    /** Filter lessOrEqual Value */
+    public static int FILTER_LESS_OR_EQUAL_VALUE = 21;
+
+    // Filter present ---------------------------------------------------------
+    /** Filter present Tag */
+    public static int FILTER_PRESENT_TAG = 22;
+
+    /** Filter present Length */
+    public static int FILTER_PRESENT_LENGTH = 23;
+
+    /** Filter present Value */
+    public static int FILTER_PRESENT_VALUE = 24;
+
+    // Filter approxMatch -----------------------------------------------------
+    /** Filter approxMatch Tag */
+    public static int FILTER_APPROX_MATCH_TAG = 25;
+
+    /** Filter approxMatch Length */
+    public static int FILTER_APPROX_MATCH_LENGTH = 26;
+
+    /** Filter approxMatch Value */
+    public static int FILTER_APPROX_MATCH_VALUE = 27;
+
+    // Filter extensibleMatch -------------------------------------------------
+    /** Filter extensibleMatch Tag */
+    public static int FILTER_EXTENSIBLE_MATCH_TAG = 28;
+
+    /** Filter extensibleMatch Length */
+    public static int FILTER_EXTENSIBLE_MATCH_LENGTH = 29;
+
+    /** Filter extensibleMatch Value */
+    public static int FILTER_EXTENSIBLE_MATCH_VALUE = 30;
+
+    // Filter Loop ------------------------------------------------------------
+    /** Filter Loop Tag */
+    public static int FILTER_LOOP_TAG = 31;
+
+    // Filter AttributeDesc ---------------------------------------------------
+    /** Filter AttributeDesc Tag */
+    public static int FILTER_ATTRIBUTE_DESC_TAG = 32;
+
+    /** Filter Length */
+    public static int FILTER_ATTRIBUTE_DESC_LENGTH = 33;
+
+    /** Filter Value */
+    public static int FILTER_ATTRIBUTE_DESC_VALUE = 34;
+
+    // Filter Assertion Value  ------------------------------------------------
+    /** Filter Assertion Value Tag */
+    public static int FILTER_ASSERTION_VALUE_TAG = 35;
+
+    /** Filter Assertion Value Length */
+    public static int FILTER_ASSERTION_VALUE_LENGTH = 36;
+
+    /** Filter Assertion Value Value */
+    public static int FILTER_ASSERTION_VALUE_VALUE = 37;
+    
+    // Filter  -------------------------------------------------------------
+    /** Filter Tag */
+    //public static int FILTER__TAG = ;
+
+    /** Filter Length */
+    //public static int FILTER__LENGTH = ;
+
+    /** Filter Value */
+    //public static int FILTER__VALUE = ;
+
+    /** The last state */
+    public static int LAST_FILTER_STATE = 38;
+
+    //=========================================================================
+    // Filter substring grammar states 
+    //=========================================================================
+    // Filter Substrings type -------------------------------------------------
+    /** Filter Substrings Type Tag */
+    public static int FILTER_SUBSTRINGS_TYPE_TAG = 0;
+
+    /** Filter Substrings Type Length */
+    public static int FILTER_SUBSTRINGS_TYPE_LENGTH = 1;
+
+    /** Filter Substrings Type Value */
+    public static int FILTER_SUBSTRINGS_TYPE_VALUE = 2;
+
+    // Filter Substrings Substrings -------------------------------------------
+    /** Filter Substrings Substrings Tag */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_TAG = 3;
+
+    /** Filter Substrings Substrings Length */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_LENGTH = 4;
+
+    /** Filter Substrings Substrings Value */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_VALUE = 5;
+
+    // Filter Substrings Substrings Initial -----------------------------------
+    /** Filter Substrings Substrings Initial Tag */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_INITIAL_TAG = 6;
+
+    /** Filter Substrings Substrings Initial Length */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_INITIAL_LENGTH = 7;
+
+    /** Filter Substrings Substrings Initial Value */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_INITIAL_VALUE = 8;
+
+    // Filter Substrings Substrings Any ---------------------------------------
+    /** Filter Substrings Substrings Any Tag */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_ANY_TAG = 9;
+
+    /** Filter Substrings Substrings Any Length */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_ANY_LENGTH = 10;
+
+    /** Filter Substrings Substrings Any Value */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_ANY_VALUE = 11;
+
+    // Filter Substrings Substrings Final -------------------------------------
+    /** Filter Substrings Substrings Final Tag */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_FINAL_TAG = 12;
+
+    /** Filter Substrings Substrings Final Length */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_FINAL_LENGTH = 13;
+
+    /** Filter Substrings Substrings Final Value */
+    public static int FILTER_SUBSTRINGS_SUBSTRINGS_FINAL_VALUE = 14;
 
     //=========================================================================
     // Grammars declaration.
@@ -442,6 +779,30 @@
     /** ModifyResponse number */
     public static final int MODIFY_RESPONSE_GRAMMAR = 10;
     
+    /** ModifyDNResponse Grammar */
+    public static final int MODIFY_DN_RESPONSE_GRAMMAR_SWITCH = 0x0C00;
+
+    /** ModifyDNResponse number */
+    public static final int MODIFY_DN_RESPONSE_GRAMMAR = 11;
+    
+    /** SearchResultDone Grammar */
+    public static final int SEARCH_RESULT_DONE_GRAMMAR_SWITCH = 0x0D00;
+
+    /** SearchResultDone number */
+    public static final int SEARCH_RESULT_DONE_GRAMMAR = 12;
+    
+    /** SearchRequest Grammar */
+    public static final int SEARCH_REQUEST_GRAMMAR_SWITCH = 0x0E00;
+
+    /** SearchRequest number */
+    public static final int SEARCH_REQUEST_GRAMMAR = 13;
+    
+    /** Filter Grammar */
+    public static final int FILTER_GRAMMAR_SWITCH = 0x0F00;
+
+    /** Filter number */
+    public static final int FILTER_GRAMMAR = 14;
+    
     /** The total number of grammars used */
     public static final int NB_GRAMMARS = 20;
 
@@ -462,7 +823,11 @@
             "ADD_RESPONSE_GRAMMAR_SWITCH",
             "COMPARE_RESPONSE_GRAMMAR_SWITCH",
             "DEL_RESPONSE_GRAMMAR_SWITCH",
-            "MODIFY_RESPONSE_GRAMMAR_SWITCH"
+            "MODIFY_RESPONSE_GRAMMAR_SWITCH",
+            "MODIFY_DN_RESPONSE_GRAMMAR_SWITCH",
+            "SEARCH_RESULT_DONE_GRAMMAR_SWITCH",
+            "SEARCH_REQUEST_GRAMMAR_SWITCH",
+            "FILTER_GRAMMAR_SWITCH"
         };
 
     //=========================================================================
@@ -500,8 +865,7 @@
             "LDAP_RESULT_REFERRAL_SEQUENCE_LENGTH",
             "LDAP_RESULT_REFERRAL_TAG", 
             "LDAP_RESULT_REFERRAL_LENGTH",
-            "LDAP_RESULT_REFERRAL_VALUE", 
-            "LAST_STATE"
+            "LDAP_RESULT_REFERRAL_VALUE"
         };
 
     /** A string representation of all the controls states */
@@ -561,8 +925,7 @@
             "BIND_RESPONSE_LDAP_RESULT",
             "SERVER_SASL_CREDS_TAG", 
             "SERVER_SASL_CREDS_LENGTH",
-            "SERVER_SASL_CREDS_VALUE", 
-            "LAST_BIND_RESPONSE_STATE"
+            "SERVER_SASL_CREDS_VALUE"
         };
 
     /** A string representation of all the Unbind Request states */
@@ -622,6 +985,107 @@
             "MODIFY_RESPONSE_LDAP_RESULT"
         };
 
+    /** A string representation of all the Modify DN Response states */
+    private static String[] ModifyDNResponseString =
+        new String[]
+        {
+            "MODIFY_DN_RESPONSE_TAG", 
+            "MODIFY_DN_RESPONSE_LENGTH",
+            "MODIFY_DN_RESPONSE_VALUE",
+            "MODIFY_DN_RESPONSE_LDAP_RESULT"
+        };
+
+    /** A string representation of all the Search Result Done states */
+    private static String[] SearchResultDoneString =
+        new String[]
+        {
+            "SEARCH_RESULT_DONE_TAG", 
+            "SEARCH_RESULT_DONE_LENGTH",
+            "SEARCH_RESULT_DONE_VALUE",
+            "SEARCH_RESULT_DONE_LDAP_RESULT"
+        };
+
+    /** A string representation of all the Search Request states */
+    private static String[] SearchRequestString =
+        new String[]
+        {
+            "SEARCH_REQUEST_TAG",
+            "SEARCH_REQUEST_LENGTH",
+            "SEARCH_REQUEST_VALUE",
+            "SEARCH_REQUEST_BASE_OBJECT_TAG",
+            "SEARCH_REQUEST_BASE_OBJECT_LENGTH",
+            "SEARCH_REQUEST_BASE_OBJECT_VALUE",
+            "SEARCH_REQUEST_SCOPE_TAG",
+            "SEARCH_REQUEST_SCOPE_LENGTH",
+            "SEARCH_REQUEST_SCOPE_VALUE",
+            "SEARCH_REQUEST_DEREF_ALIASES_TAG",
+            "SEARCH_REQUEST_DEREF_ALIASES_LENGTH",
+            "SEARCH_REQUEST_DEREF_ALIASES_VALUE",
+            "SEARCH_REQUEST_SIZE_LIMIT_TAG",
+            "SEARCH_REQUEST_SIZE_LIMIT_LENGTH",
+            "SEARCH_REQUEST_SIZE_LIMIT_VALUE",
+            "SEARCH_REQUEST_TIME_LIMIT_TAG",
+            "SEARCH_REQUEST_TIME_LIMIT_LENGTH",
+            "SEARCH_REQUEST_TIME_LIMIT_VALUE",
+            "SEARCH_REQUEST_TYPES_ONLY_TAG",
+            "SEARCH_REQUEST_TYPES_ONLY_LENGTH",
+            "SEARCH_REQUEST_TYPES_ONLY_VALUE",
+            "SEARCH_REQUEST_FILTER",
+            "SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LIST_TAG",
+            "SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LIST_LENGTH",
+            "SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LIST_VALUE",
+            "SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_TAG",
+            "SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LENGTH",
+            "SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_VALUE",
+            "SEARCH_REQUEST_ATTRIBUTE_DESCRIPTION_LOOP_TAG"
+        };
+
+
+    /** A string representation of all the Filter states */
+    private static String[] FilterString =
+        new String[]
+        {
+                "FILTER_TAG",
+                "FILTER_AND_TAG",
+                "FILTER_AND_LENGTH",
+                "FILTER_AND_VALUE",
+                "FILTER_OR_TAG",
+                "FILTER_OR_LENGTH",
+                "FILTER_OR_VALUE",
+                "FILTER_NOT_TAG",
+                "FILTER_NOT_LENGTH",
+                "FILTER_NOT_VALUE",
+                "FILTER_EQUALITY_MATCH_TAG",
+                "FILTER_EQUALITY_MATCH_LENGTH",
+                "FILTER_EQUALITY_MATCH_VALUE",
+                "FILTER_SUBSTRINGS_TAG",
+                "FILTER_SUBSTRINGS_LENGTH",
+                "FILTER_SUBSTRINGS_VALUE",
+                "FILTER_GREATER_OR_EQUAL_TAG",
+                "FILTER_GREATER_OR_EQUAL_LENGTH",
+                "FILTER_GREATER_OR_EQUAL_VALUE",
+                "FILTER_LESS_OR_EQUAL_TAG",
+                "FILTER_LESS_OR_EQUAL_LENGTH",
+                "FILTER_LESS_OR_EQUAL_VALUE",
+                "FILTER_PRESENT_TAG",
+                "FILTER_PRESENT_LENGTH",
+                "FILTER_PRESENT_VALUE",
+                "FILTER_APPROX_MATCH_TAG",
+                "FILTER_APPROX_MATCH_LENGTH",
+                "FILTER_APPROX_MATCH_VALUE",
+                "FILTER_EXTENSIBLE_MATCH_TAG",
+                "FILTER_EXTENSIBLE_MATCH_LENGTH",
+                "FILTER_EXTENSIBLE_MATCH_VALUE",
+                "FILTER_LOOP_TAG",
+                "FILTER_ATTRIBUTE_DESC_TAG",
+                "FILTER_ATTRIBUTE_DESC_LENGTH",
+                "FILTER_ATTRIBUTE_DESC_VALUE",
+                "FILTER_ASSERTION_VALUE_TAG",
+                "FILTER_ASSERTION_VALUE_LENGTH",
+                "FILTER_ASSERTION_VALUE_VALUE",
+                "FILTER_END_STATE"
+        };
+    
     /** The instance */
     private static LdapStatesEnum instance = new LdapStatesEnum();
 
@@ -655,18 +1119,22 @@
     {
         switch (grammar)
         {
-            case LDAP_MESSAGE_GRAMMAR : return "LDAP_MESSAGE_GRAMMAR";
-            case LDAP_RESULT_GRAMMAR : return "LDAP_RESULT_GRAMMAR";
-            case LDAP_CONTROL_GRAMMAR : return "LDAP_CONTROL_GRAMMAR";
-            case BIND_REQUEST_GRAMMAR : return "BIND_REQUEST_GRAMMAR";
-            case BIND_RESPONSE_GRAMMAR : return "BIND_RESPONSE_GRAMMAR";
-            case UNBIND_REQUEST_GRAMMAR : return "UNBIND_REQUEST_GRAMMAR";
-            case ABANDON_REQUEST_GRAMMAR : return "ABANDON_REQUEST_GRAMMAR";
-            case ADD_RESPONSE_GRAMMAR : return "ADD_RESPONSE_GRAMMAR";
-            case COMPARE_RESPONSE_GRAMMAR : return "COMPARE_RESPONSE_GRAMMAR";
-            case DEL_RESPONSE_GRAMMAR : return "DEL_RESPONSE_GRAMMAR";
-            case MODIFY_RESPONSE_GRAMMAR : return "MODIFY_RESPONSE_GRAMMAR";
-        	default : return "UNKNOWN";
+            case LDAP_MESSAGE_GRAMMAR       : return "LDAP_MESSAGE_GRAMMAR";
+            case LDAP_RESULT_GRAMMAR        : return "LDAP_RESULT_GRAMMAR";
+            case LDAP_CONTROL_GRAMMAR       : return "LDAP_CONTROL_GRAMMAR";
+            case BIND_REQUEST_GRAMMAR       : return "BIND_REQUEST_GRAMMAR";
+            case BIND_RESPONSE_GRAMMAR      : return "BIND_RESPONSE_GRAMMAR";
+            case UNBIND_REQUEST_GRAMMAR     : return "UNBIND_REQUEST_GRAMMAR";
+            case ABANDON_REQUEST_GRAMMAR    : return "ABANDON_REQUEST_GRAMMAR";
+            case ADD_RESPONSE_GRAMMAR       : return "ADD_RESPONSE_GRAMMAR";
+            case COMPARE_RESPONSE_GRAMMAR   : return "COMPARE_RESPONSE_GRAMMAR";
+            case DEL_RESPONSE_GRAMMAR       : return "DEL_RESPONSE_GRAMMAR";
+            case MODIFY_RESPONSE_GRAMMAR    : return "MODIFY_RESPONSE_GRAMMAR";
+            case MODIFY_DN_RESPONSE_GRAMMAR : return "MODIFY_DN_RESPONSE_GRAMMAR";
+            case SEARCH_RESULT_DONE_GRAMMAR : return "SEARCH_RESULT_DONE_GRAMMAR";
+            case SEARCH_REQUEST_GRAMMAR     : return "SEARCH_REQUEST_GRAMMAR";
+            case FILTER_GRAMMAR             : return "FILTER_GRAMMAR";
+        	default                         : return "UNKNOWN";
         }
     }
 
@@ -721,6 +1189,22 @@
         {
             return "MODIFY_RESPONSE_GRAMMAR";
         }
+        else if (grammar instanceof ModifyDNResponseGrammar)
+        {
+            return "MODIFY_DN_RESPONSE_GRAMMAR";
+        }
+        else if (grammar instanceof SearchResultDoneGrammar)
+        {
+            return "SEARCH_RESULT_DONE_GRAMMAR";
+        }
+        else if (grammar instanceof SearchRequestGrammar)
+        {
+            return "SEARCH_REQUEST_GRAMMAR";
+        }
+        else if (grammar instanceof FilterGrammar)
+        {
+            return "FILTER_GRAMMAR";
+        }
         else 
         {
             return "UNKNOWN GRAMMAR";
@@ -780,6 +1264,18 @@
 
                 case MODIFY_RESPONSE_GRAMMAR :
                     return ( ( state == GRAMMAR_END ) ? "MODIFY_RESPONSE_END_STATE" : ModifyResponseString[state]
);
+
+                case MODIFY_DN_RESPONSE_GRAMMAR :
+                    return ( ( state == GRAMMAR_END ) ? "MODIFY_DN_RESPONSE_END_STATE" :
ModifyDNResponseString[state] );
+
+                case SEARCH_RESULT_DONE_GRAMMAR :
+                    return ( ( state == GRAMMAR_END ) ? "SEARCH_RESULT_DONE_END_STATE" :
SearchResultDoneString[state] );
+
+                case SEARCH_REQUEST_GRAMMAR :
+                    return ( ( state == GRAMMAR_END ) ? "SEARCH_REQUEST_END_STATE" : SearchRequestString[state]
);
+
+                case FILTER_GRAMMAR :
+                    return ( ( state == GRAMMAR_END ) ? "FILTER_END_STATE" : FilterString[state]
);
 
                 default :
                     return "UNKNOWN";



Mime
View raw message