directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r160138 - directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java
Date Tue, 05 Apr 2005 07:24:02 GMT
Author: elecharny
Date: Tue Apr  5 00:24:01 2005
New Revision: 160138

URL: http://svn.apache.org/viewcvs?view=rev&rev=160138
Log:
Added Grammar Switch methods

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java?view=diff&r1=160137&r2=160138
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java
Tue Apr  5 00:24:01 2005
@@ -33,6 +33,8 @@
 
     // State accessors
     /**
+     * DOCUMENT ME!
+     *
      * @return Returns the current grammar state
      */
     int getState();
@@ -52,21 +54,48 @@
     public void setCurrentTLV( TLV tlv );
 
     /**
+     * DOCUMENT ME!
+     *
      * @return Returns the current TLV being decoded
      */
     public TLV getCurrentTLV();
 
     /**
+     * DOCUMENT ME!
+     *
      * @return Returns the grammar used to decode a LdapMessage.
      */
     public IGrammar getGrammar();
 
     /**
-     * Set the IGrammar to use
+     * Add a new IGrammar to use
      *
-     * @param grammar The grammar to set.
+     * @param grammar The grammar to add.
+     */
+    public void addGrammar( IGrammar grammar );
+
+    /**
+     * Switch to another grammar
+     *
+     * @param grammar The grammar to switch to.
+     */
+    public void switchGrammar( int grammar );
+
+    /**
+     * restore the previous grammar (the one before a switch has occured)
      */
-    public void setGrammar( IGrammar grammar );
+    public void restoreGrammar();
+
+    /**
+     * @return Returns the currentGrammar.
+     */
+    public int getCurrentGrammar();
+
+    /**
+     * Set the first grammar to use
+     * @param The first grammar .
+     */
+    public void setInitGrammar(int grammar);
 
     /**
      * Associate a pool Manager to the container
@@ -76,11 +105,15 @@
     public void setPoolManager( LocalPoolManager poolManager );
 
     /**
+     * DOCUMENT ME!
+     *
      * @return The poolManager associated with this container
      */
     public LocalPoolManager getPoolManager();
 
     /**
+     * DOCUMENT ME!
+     *
      * @return Returns the transition from the previous state to the new 
      * state
      */



Mime
View raw message