01: package com.sun.portal.sra.admin.util;
02:
03: import java.util.HashMap;
04:
05: /**
06: * @author : Sandeep Soni
07: *
08: * @version 1.0 @updated 05-Mar-2005 10:00:44 PM
09: */
10: public class OSDefaults {
11: protected HashMap _hashmap = new HashMap();
12:
13: public OSDefaults() {
14: }
15:
16: // This method will reurn the value of the property passed in. If the key exists for this
17: // OS then the value is returned else a null is returned. The calling code should check for
18: // the null and handle it accordingly.
19:
20: public String getValue(String key) {
21: if (_hashmap.containsKey(key))
22: return (String) _hashmap.get(key);
23: else
24: return null;
25: }
26: }
|