01: /*
02: * (C) Copyright SimulacraMedia 2005. All rights reserved.
03: *
04: * Created on Jan 6, 2005
05: *
06: */
07: package org.openharmonise.rm.commands;
08:
09: import java.util.*;
10: import java.util.Map;
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 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 sName, Object 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 getContextParameter(String sName) {
48: return m_context_params.get(sName);
49: }
50:
51: }
|