You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jv...@locus.apache.org on 2000/11/02 23:32:24 UTC
cvs commit: jakarta-velocity/src/java/org/apache/velocity Context.java
jvanzyl 00/11/02 14:32:24
Modified: src/java/org/apache/velocity Context.java
Log:
- added getKeys() to the context as requested for debugging purposes :-)
Revision Changes Path
1.6 +9 -1 jakarta-velocity/src/java/org/apache/velocity/Context.java
Index: Context.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/Context.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Context.java 2000/10/31 23:44:52 1.5
+++ Context.java 2000/11/02 22:32:24 1.6
@@ -66,7 +66,7 @@
* an valid object derived from Object. These objects
* are stored in a Hashtable.
* @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
- * @version $Id: Context.java,v 1.5 2000/10/31 23:44:52 jvanzyl Exp $
+ * @version $Id: Context.java,v 1.6 2000/11/02 22:32:24 jvanzyl Exp $
*/
public class Context implements Cloneable
{
@@ -115,6 +115,14 @@
{
return context.containsKey(key);
}
+
+ /*
+ * Get all the keys for the values in the context
+ */
+ public Object[] getKeys()
+ {
+ return context.keySet().toArray();
+ }
/**
* Removes the value associated with the specified key from the context.