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/06/21 02:41:06 UTC
svn commit: r191601 -
/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/AbstractContainer.java
Author: elecharny
Date: Mon Jun 20 17:41:06 2005
New Revision: 191601
URL: http://svn.apache.org/viewcvs?rev=191601&view=rev
Log:
Added a member : parentTLV, which store a reference to the current parent of the TLV being processed.
and the get/set method.
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=191601&r1=191600&r2=191601&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 Mon Jun 20 17:41:06 2005
@@ -62,6 +62,9 @@
/** Store the different states for debug purpose */
protected IStates states;
+ /** The parent TLV */
+ protected TLV parentTLV;
+
//~ Methods ------------------------------------------------------------------------------------
/**
@@ -119,7 +122,7 @@
}
/**
- * DOCUMENT ME!
+ * Get the current grammar state
*
* @return Returns the current grammar state
*/
@@ -139,7 +142,7 @@
}
/**
- * DOCUMENT ME!
+ * Get the transition
*
* @return Returns the transition from the previous state to the new
* state
@@ -223,9 +226,30 @@
/**
* Get the states for this container's grammars
+ *
* @return Returns the states.
*/
public IStates getStates() {
return states;
+ }
+
+ /**
+ * Get the parent TLV;
+ *
+ * @return Returns the parent TLV, if any.
+ */
+ public TLV getParentTLV()
+ {
+ return parentTLV;
+ }
+
+ /**
+ * Set the parent TLV.
+ *
+ * @param The parent TLV to set.
+ */
+ public void setParentTLV(TLV parentTLV)
+ {
+ this.parentTLV = parentTLV;
}
}