directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r164668 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
Date Mon, 25 Apr 2005 22:14:13 GMT
Author: elecharny
Date: Mon Apr 25 15:14:11 2005
New Revision: 164668

URL: http://svn.apache.org/viewcvs?rev=164668&view=rev
Log:
Cleaning and commenting the class

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=164668&r1=164667&r2=164668&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 Apr 25 15:14:11 2005
@@ -64,13 +64,12 @@
     /** protocolOp CHOICE Value */
     public static int PROTOCOL_OP_VALUE       = 8;
 
-    /** DOCUMENT ME! */
+    /** The Ldap Message last state */
     public static int LAST_LDAP_MESSAGE_STATE = 9;
 
 
     // BindRequest ============================================================
-    // Version ----------------------------------------------------------------
-    /** DOCUMENT ME! */
+    /** The bind request init state */
     private static int BIND_REQUEST_STATE = 0;
 
     /** The BindRequest Tag */
@@ -145,12 +144,12 @@
     /** Authentication sasl credentials Value */
     public static int BIND_REQUEST_AUTHENTICATION_CREDENTIALS_VALUE = 19;
 
-    /** DOCUMENT ME! */
+    /** The bind request last state */
     public static int LAST_BIND_REQUEST_STATE = 20;
 
 
     // Controls ===============================================================
-    /** DOCUMENT ME! */
+    /** The ldap control init state */
     private static int LDAP_CONTROL_STATE = 0;
 
     /** Controls Tag */
@@ -206,8 +205,7 @@
     public static int CONTROL_LAST_STATE = 16;
 
     // BindResponse ===========================================================
-    // Version ----------------------------------------------------------------
-    /** DOCUMENT ME! */
+    /** The bind response init state */
     private static int BIND_RESPONSE_STATE = 0;
 
     /**  Response Tag */
@@ -239,7 +237,7 @@
 
 
     // LdapResult grammar states ==============================================
-    /** DOCUMENT ME! */
+    /** The ldap result init state */
     private static int LDAP_RESULT_STATE = 0;
 
     // LdapResult Code --------------------------------------------------------
@@ -329,8 +327,10 @@
     private static String[] GrammarSwitchString =
         new String[]
         {
-            "LDAP_MESSAGE_GRAMMAR_SWITCH", "LDAP_RESULT_GRAMMAR_SWITCH",
-            "LDAP_CONTROL_GRAMMAR_SWITCH", "BIND_REQUEST_GRAMMAR_SWITCH",
+            "LDAP_MESSAGE_GRAMMAR_SWITCH", 
+            "LDAP_RESULT_GRAMMAR_SWITCH",
+            "LDAP_CONTROL_GRAMMAR_SWITCH", 
+            "BIND_REQUEST_GRAMMAR_SWITCH",
             "BIND_RESPONSE_GRAMMAR_SWITCH"
         };
 
@@ -338,48 +338,77 @@
     private static String[] LdapMessageString =
         new String[]
         {
-            "LDAP_MESSAGE_TAG", "LDAP_MESSAGE_LENGTH", "LDAP_MESSAGE_VALUE", "LDAP_MESSAGE_ID_TAG",
-            "LDAP_MESSAGE_ID_LENGTH", "LDAP_MESSAGE_ID_VALUE", "PROTOCOL_OP_TAG",
-            "PROTOCOL_OP_LENGTH", "PROTOCOL_OP_VALUE"
+            "LDAP_MESSAGE_TAG", 
+            "LDAP_MESSAGE_LENGTH", 
+            "LDAP_MESSAGE_VALUE", 
+            "LDAP_MESSAGE_ID_TAG",
+            "LDAP_MESSAGE_ID_LENGTH", 
+            "LDAP_MESSAGE_ID_VALUE", 
+            "PROTOCOL_OP_TAG",
+            "PROTOCOL_OP_LENGTH", 
+            "PROTOCOL_OP_VALUE"
         };
 
     /** A string representation of all the LdapResult states */
     private static String[] LdapResultString =
         new String[]
         {
-            "LDAP_RESULT_CODE_TAG", "LDAP_RESULT_CODE_LENGTH", "LDAP_RESULT_CODE_VALUE",
-            "LDAP_RESULT_MATCHED_DN_TAG", "LDAP_RESULT_MATCHED_DN_LENGTH",
-            "LDAP_RESULT_MATCHED_DN_VALUE", "LDAP_RESULT_ERROR_MESSAGE_TAG",
-            "LDAP_RESULT_ERROR_MESSAGE_LENGTH", "LDAP_RESULT_ERROR_MESSAGE_VALUE",
-            "LDAP_RESULT_REFERRAL_SEQUENCE_TAG", "LDAP_RESULT_REFERRAL_SEQUENCE_LENGTH",
-            "LDAP_RESULT_REFERRAL_TAG", "LDAP_RESULT_REFERRAL_LENGTH",
-            "LDAP_RESULT_REFERRAL_VALUE", "LAST_STATE"
+            "LDAP_RESULT_CODE_TAG", 
+            "LDAP_RESULT_CODE_LENGTH", 
+            "LDAP_RESULT_CODE_VALUE",
+            "LDAP_RESULT_MATCHED_DN_TAG", 
+            "LDAP_RESULT_MATCHED_DN_LENGTH",
+            "LDAP_RESULT_MATCHED_DN_VALUE", 
+            "LDAP_RESULT_ERROR_MESSAGE_TAG",
+            "LDAP_RESULT_ERROR_MESSAGE_LENGTH", 
+            "LDAP_RESULT_ERROR_MESSAGE_VALUE",
+            "LDAP_RESULT_REFERRAL_SEQUENCE_TAG", 
+            "LDAP_RESULT_REFERRAL_SEQUENCE_LENGTH",
+            "LDAP_RESULT_REFERRAL_TAG", 
+            "LDAP_RESULT_REFERRAL_LENGTH",
+            "LDAP_RESULT_REFERRAL_VALUE", 
+            "LAST_STATE"
         };
 
     /** A string representation of all the controls states */
     private static String[] LdapControlString =
         new String[]
         {
-            "CONTROLS_TAG", "CONTROLS_LENGTH", "CONTROLS_VALUE", "CONTROL_TAG", "CONTROL_LENGTH",
-            "CONTROL_VALUE", "CONTROL_TYPE_TAG", "CONTROL_TYPE_LENGTH", "CONTROL_TYPE_VALUE",
-            "CONTROL_CRITICALITY_TAG", "CONTROL_CRITICALITY_LENGTH", "CONTROL_CRITICALITY_VALUE",
-            "CONTROL_VALUE_TAG", "CONTROL_VALUE_LENGTH", "CONTROL_VALUE_VALUE"
+            "CONTROLS_TAG", 
+            "CONTROLS_LENGTH", 
+            "CONTROLS_VALUE", 
+            "CONTROL_TAG", 
+            "CONTROL_LENGTH",
+            "CONTROL_VALUE", 
+            "CONTROL_TYPE_TAG", 
+            "CONTROL_TYPE_LENGTH", 
+            "CONTROL_TYPE_VALUE",
+            "CONTROL_CRITICALITY_TAG", 
+            "CONTROL_CRITICALITY_LENGTH", 
+            "CONTROL_CRITICALITY_VALUE",
+            "CONTROL_VALUE_TAG", 
+            "CONTROL_VALUE_LENGTH", 
+            "CONTROL_VALUE_VALUE"
         };
 
     /** A string representation of all the Bind Request states */
     private static String[] BindRequestString =
         new String[]
         {
-            "BIND_REQUEST_TAG", "BIND_REQUEST_LENGTH", "BIND_REQUEST_VALUE",
-            "BIND_REQUEST_VERSION_TAG", "BIND_REQUEST_VERSION_LENGTH",
-            "BIND_REQUEST_VERSION_VALUE", "BIND_REQUEST_NAME_TAG", "BIND_REQUEST_NAME_LENGTH",
-            "BIND_REQUEST_NAME_VALUE", "BIND_REQUEST_AUTHENTICATION_CHOICE_TAG",
-
-            //public static int BIND_AUTHENTICATION_SIMPLE_TAG",
+            "BIND_REQUEST_TAG", 
+            "BIND_REQUEST_LENGTH", 
+            "BIND_REQUEST_VALUE",
+            "BIND_REQUEST_VERSION_TAG", 
+            "BIND_REQUEST_VERSION_LENGTH",
+            "BIND_REQUEST_VERSION_VALUE", 
+            "BIND_REQUEST_NAME_TAG", 
+            "BIND_REQUEST_NAME_LENGTH",
+            "BIND_REQUEST_NAME_VALUE", 
+            "BIND_REQUEST_AUTHENTICATION_CHOICE_TAG",
             "BIND_REQUEST_AUTHENTICATION_SIMPLE_LENGTH",
             "BIND_REQUEST_AUTHENTICATION_SIMPLE_VALUE",
-            //public static int BIND_AUTHENTICATION_SASL_TAG",
-            "BIND_REQUEST_AUTHENTICATION_SASL_LENGTH", "BIND_REQUEST_AUTHENTICATION_SASL_VALUE",
+            "BIND_REQUEST_AUTHENTICATION_SASL_LENGTH", 
+            "BIND_REQUEST_AUTHENTICATION_SASL_VALUE",
             "BIND_REQUEST_AUTHENTICATION_MECHANISM_TAG",
             "BIND_REQUEST_AUTHENTICATION_MECHANISM_LENGTH",
             "BIND_REQUEST_AUTHENTICATION_MECHANISM_VALUE",
@@ -392,9 +421,14 @@
     private static String[] BindResponseString =
         new String[]
         {
-            "BIND_RESPONSE_TAG", "BIND_RESPONSE_LENGTH", "BIND_RESPONSE_VALUE",
-            "BIND_RESPONSE_MESSAGE_ID_TAG", "SERVER_SASL_CREDS_TAG", "SERVER_SASL_CREDS_LENGTH",
-            "SERVER_SASL_CREDS_VALUE", "LAST_STATE"
+            "BIND_RESPONSE_TAG", 
+            "BIND_RESPONSE_LENGTH", 
+            "BIND_RESPONSE_VALUE",
+            "BIND_RESPONSE_MESSAGE_ID_TAG", 
+            "SERVER_SASL_CREDS_TAG", 
+            "SERVER_SASL_CREDS_LENGTH",
+            "SERVER_SASL_CREDS_VALUE", 
+            "LAST_STATE"
         };
 
     /** The instance */
@@ -424,7 +458,7 @@
     /**
      * Get the string representing the state
      * 
-     * @param grammar DOCUMENT ME!
+     * @param grammar The current grammar being used
      * @param state The state number
      * @return The String representing the state
      */



Mime
View raw message