directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208854 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
Date Sat, 02 Jul 2005 18:03:52 GMT
Author: elecharny
Date: Sat Jul  2 11:03:51 2005
New Revision: 208854

URL: http://svn.apache.org/viewcvs?rev=208854&view=rev
Log:
Added SearchResultReference states

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=208854&r1=208853&r2=208854&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
Sat Jul  2 11:03:51 2005
@@ -703,6 +703,29 @@
     public static int LAST_MODIFY_REQUEST_STATE = 19;
 
     //=========================================================================
+    // Search Result Reference grammar states 
+    //=========================================================================
+    // Search Result Reference ------------------------------------------------
+    /** Search Result Reference Tag */
+    public static int SEARCH_RESULT_REFERENCE_TAG = 0;
+
+    /** Search Result Reference Value */
+    public static int SEARCH_RESULT_REFERENCE_VALUE = 1;
+
+    // Search Result Reference Ldap URL ---------------------------------------
+    /** Search Result Reference Ldap Url Tag */
+    public static int SEARCH_RESULT_REFERENCE_LDAP_URL_TAG = 2;
+
+    /** Search Result Reference Ldap Url Value */
+    public static int SEARCH_RESULT_REFERENCE_LDAP_URL_VALUE = 3;
+    
+    /** Ldap Url Loop Tag */
+    public static int SEARCH_RESULT_REFERENCE_LOOP_OR_END_TAG = 4;
+    
+    /** The last state */
+    public static int LAST_SEARCH_RESULT_REFERENCE_STATE_STATE = 5;
+
+    //=========================================================================
     // Filter substring grammar states 
     //=========================================================================
 
@@ -814,6 +837,13 @@
     /** ModifyRequest number */
     public static final int MODIFY_REQUEST_GRAMMAR = 16;
     
+    /** SearchResultReference Grammar */
+    public static final int SEARCH_RESULT_REFERENCE_GRAMMAR_SWITCH = 0x1200;
+
+    /** SearchResultReference number */
+    public static final int SEARCH_RESULT_REFERENCE_GRAMMAR = 17;
+    
+    
     /** The total number of grammars used */
     public static final int NB_GRAMMARS = 20;
 
@@ -841,6 +871,7 @@
             "FILTER_GRAMMAR_SWITCH",
             "SEARCH_RESULT_ENTRY_GRAMMAR_SWITCH",
             "MODIFY_REQUEST_GRAMMAR_SWITCH",
+            "SEARCH_RESULT_REFERENCE_GRAMMAR_SWITCH"
         };
 
     //=========================================================================
@@ -1118,6 +1149,17 @@
 			    "LAST_MODIFY_REQUEST_STATE"
         };
 
+    /** A string representation of all the search result reference states */
+    private static String[] SearchResultReferenceString =
+        new String[]
+        {
+			    "SEARCH_RESULT_REFERENCE_TAG",
+			    "SEARCH_RESULT_REFERENCE_VALUE",
+			    "SEARCH_RESULT_REFERENCE_LDAP_URL_TAG",
+			    "SEARCH_RESULT_REFERENCE_LDAP_URL_VALUE",
+			    "SEARCH_RESULT_REFERENCE_LOOP_OR_END_TAG"
+        };
+    
     
     
     /** The instance */
@@ -1169,7 +1211,8 @@
             case SEARCH_REQUEST_GRAMMAR     : return "SEARCH_REQUEST_GRAMMAR";
             case FILTER_GRAMMAR             : return "FILTER_GRAMMAR";
             case SEARCH_RESULT_ENTRY_GRAMMAR: return "SEARCH_RESULT_ENTRY_GRAMMAR";
-            case MODIFY_REQUEST_GRAMMAR     : return "MODIFY_REQUEST_GRAMMAR";
+            case MODIFY_REQUEST_GRAMMAR         : return "MODIFY_REQUEST_GRAMMAR";
+            case SEARCH_RESULT_REFERENCE_GRAMMAR : return "SEARCH_RESULT_REFERENCE_GRAMMAR";
         	default                         : return "UNKNOWN";
         }
     }
@@ -1249,6 +1292,10 @@
         {
             return "MODIFY_REQUEST_GRAMMAR";
         }
+        else if (grammar instanceof SearchResultReferenceGrammar)
+        {
+            return "SEARCH_RESULT_REFERENCE_GRAMMAR";
+        }
         else 
         {
             return "UNKNOWN GRAMMAR";
@@ -1317,6 +1364,9 @@
 
                 case SEARCH_REQUEST_GRAMMAR :
                     return ( ( state == GRAMMAR_END ) ? "SEARCH_REQUEST_END_STATE" : SearchRequestString[state]
);
+
+                case SEARCH_RESULT_REFERENCE_GRAMMAR :
+                    return ( ( state == GRAMMAR_END ) ? "SEARCH_RESULT_REFERENCE_END_STATE"
: SearchResultReferenceString[state] );
 
                 case FILTER_GRAMMAR :
                     return ( ( state == GRAMMAR_END ) ? "FILTER_END_STATE" : FilterString[state]
);



Mime
View raw message