directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r189648 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/AbstractContainer.java
Date Wed, 08 Jun 2005 21:56:50 GMT
Author: elecharny
Date: Wed Jun  8 14:56:49 2005
New Revision: 189648

URL: http://svn.apache.org/viewcvs?rev=189648&view=rev
Log:
Added a member to store an instance of the grammar states. It is used for debugging purposes.

Added some Javadoc.

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/AbstractContainer.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/AbstractContainer.java?rev=189648&r1=189647&r2=189648&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/AbstractContainer.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/AbstractContainer.java
Wed Jun  8 14:56:49 2005
@@ -18,11 +18,14 @@
 
 import org.apache.asn1.ber.containers.IAsn1Container;
 import org.apache.asn1.ber.grammar.IGrammar;
+import org.apache.asn1.ber.grammar.IStates;
 import org.apache.asn1.ber.tlv.TLV;
 
 
 /**
- * DOCUMENT ME!
+ * This class is the abstract container used to store the current state
+ * of a PDU being decoded. It also stores the grammars used to decode
+ * the PDU, and zll the informations needed to decode a PDU. 
  * 
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -56,6 +59,9 @@
     /** The current TLV */
     protected TLV tlv;
 
+    /** Store the different states for debug purpose */
+    protected IStates states;
+    
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
@@ -213,5 +219,13 @@
     public TLV getCurrentTLV()
     {
         return this.tlv;
+    }
+    
+    /**
+     * Get the states for this container's grammars
+     * @return Returns the states.
+     */
+    public IStates getStates() {
+        return states;
     }
 }



Mime
View raw message