Update of /cvsroot/webmacro/webmacro/src/org/webmacro/engine
In directory sc8-pr-cvs1:/tmp/cvs-serv30356
Modified Files:
PropertyOperatorCache.java
Log Message:
Removed redundant test code I left in.
Index: PropertyOperatorCache.java
===================================================================
RCS file: /cvsroot/webmacro/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** PropertyOperatorCache.java 16 Jul 2003 14:25:31 -0000 1.19
--- PropertyOperatorCache.java 23 Jul 2003 09:59:36 -0000 1.20
***************
*** 247,310 ****
}
- public static class Wrapper
- {
-
- private Map params = new Hashtable();
-
- public String getParameters( String key )
- {
- return (String) params.get( key );
- }
-
- public void setParameters( String key, Object value )
- {
- params.put( key, value );
- }
- }
-
- public static class Wrapper2
- {
-
- private Map params = new Hashtable();
-
- public Wrapper2()
- {
- this.params.put( "Parameters", new Hashtable() );
- }
-
- public Object get( Object key )
- {
- return params.get( key );
- }
-
- public void put( Object key, Object value )
- {
- params.put( key, value );
- }
- }
-
- public static void main( String[] args )
- {
- final String templateText =
- "#set $test.Parameters.Name = 'marc'\n" +
- "#set $test2.Parameters.Name = 'eric'\n" +
- "Current value is: $test.Parameters.Name\n"+
- "Current value2 is: $test2.Parameters.Name\n";
- try
- {
- WebMacro wm = new WM( "testconfig.properties" );
- Template t = new StringTemplate( wm.getBroker(), templateText );
- Context context = wm.getContext();
- context.put( "test", new Wrapper() );
- context.put( "test2", new Wrapper2() );
- t.write( System.out, context );
- }
- catch ( Exception e )
- {
- e.printStackTrace(); //To change body of catch statement use Options | File Templates.
- }
-
- }
-
}
--- 247,250 ----
|