You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/05/31 00:07:11 UTC

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

Author: elecharny
Date: Mon May 30 15:07:11 2005
New Revision: 179157

URL: http://svn.apache.org/viewcvs?rev=179157&view=rev
Log:
- the restoreGrammar method now return the previous state before the grammar switch
- modified the grammarSwitch method signature
- fixed javadoc

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?rev=179157&r1=179156&r2=179157&view=diff
==============================================================================
--- 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 Mon May 30 15:07:11 2005
@@ -31,7 +31,7 @@
 
     // State accessors
     /**
-     * DOCUMENT ME!
+     * Get the current grammar state
      *
      * @return Returns the current grammar state
      */
@@ -52,14 +52,14 @@
     public void setCurrentTLV( TLV tlv );
 
     /**
-     * DOCUMENT ME!
+     * Get the currentTLV
      *
      * @return Returns the current TLV being decoded
      */
     public TLV getCurrentTLV();
 
     /**
-     * DOCUMENT ME!
+     * Get the grammar
      *
      * @return Returns the grammar used to decode a LdapMessage.
      */
@@ -77,12 +77,14 @@
      *
      * @param grammar The grammar to switch to.
      */
-    public void switchGrammar( int grammar );
+    public void switchGrammar( int currentState, int grammar );
 
     /**
      * restore the previous grammar (the one before a switch has occured)
+     * 
+     * @return Returns the previous state if any.
      */
-    public void restoreGrammar();
+    public int restoreGrammar();
 
     /**
      * @return Returns the currentGrammar.
@@ -96,7 +98,7 @@
     public void setInitGrammar(int grammar);
 
     /**
-     * DOCUMENT ME!
+     * Get the transition
      *
      * @return Returns the transition from the previous state to the new 
      * state