KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > rm > commands > Context


1 /*
2  * (C) Copyright SimulacraMedia 2005. All rights reserved.
3  *
4  * Created on Jan 6, 2005
5  *
6  */

7 package org.openharmonise.rm.commands;
8
9 import java.util.*;
10 import java.util.Map JavaDoc;
11
12 /**
13  * FIXME - Michael Bell DIDN'T GIVE ME A DESCRIPTION!!
14  * @author Michael Bell
15  * @version $Revision: 1.1 $
16  *
17  */

18 public class Context {
19
20     private Map JavaDoc m_context_params = null;
21     
22     /**
23      *
24      */

25     public Context() {
26         super();
27         m_context_params = new Hashtable();
28     }
29     
30     /**
31      * Adds a name-value pair to this context
32      *
33      * @param sName
34      * @param val
35      */

36     public void addContextParameter(String JavaDoc sName, Object JavaDoc val) {
37         m_context_params.put(sName, val);
38     }
39     
40     /**
41      * Returns the value for the parameter with the specified
42      * name
43      *
44      * @param sName
45      * @return
46      */

47     public Object JavaDoc getContextParameter(String JavaDoc sName) {
48         return m_context_params.get(sName);
49     }
50
51     
52 }
53
Popular Tags