| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectseda.sandStorm.internal.ConfigData
public class ConfigData
ConfigData is used to pass configuration arguments into various components.
| Field Summary | |
|---|---|
| private static boolean | DEBUG | 
| private  ManagerIF | mgr | 
| private  StageIF | stage | 
| private  java.util.Hashtable | vals | 
| Fields inherited from interface seda.sandStorm.api.ConfigDataIF | 
|---|
| SET | 
| Constructor Summary | |
|---|---|
| ConfigData(ManagerIF mgr)Create a ConfigData with the given manager and no argument list. | |
| ConfigData(ManagerIF mgr,
           java.util.Hashtable args)Create a ConfigData with the given manager and argument list. | |
| ConfigData(ManagerIF mgr,
           java.lang.String[] args)Create a ConfigData with the given manager and argument list, specified as an array of strings of the form "key=value". | |
| Method Summary | |
|---|---|
|  boolean | contains(java.lang.String key)Returns true if the given key is set. | 
|  boolean | getBoolean(java.lang.String key)Get the boolean value corresponding to the given key. | 
|  double | getDouble(java.lang.String key)Get the double value corresponding to the given key. | 
|  int | getInt(java.lang.String key)Get the integer value corresponding to the given key. | 
|  ManagerIF | getManager()Return the local manager. | 
|  StageIF | getStage()Return the stage for this ConfigData. | 
|  java.lang.String | getString(java.lang.String key)Get the string value corresponding to the given key. | 
|  java.lang.String[] | getStringList(java.lang.String key)Get the string list value corresponding to the given key. | 
|  void | setBoolean(java.lang.String key,
           boolean val)Set the given key to the given boolean value. | 
|  void | setDouble(java.lang.String key,
          double val)Set the given key to the given double value. | 
|  void | setInt(java.lang.String key,
       int val)Set the given key to the given integer value. | 
| (package private)  void | setManager(ManagerIF mgr) | 
|  void | setStage(StageIF stage)Used to set the StageIF when initializing a ConfigDataIF. | 
|  void | setString(java.lang.String key,
          java.lang.String val)Set the given key to the given string value. | 
|  void | setStringList(java.lang.String key,
              java.lang.String[] valarr)Set the given key to the given string list value. | 
| private  java.util.Hashtable | stringArrayToHT(java.lang.String[] arr) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private static final boolean DEBUG
private java.util.Hashtable vals
private ManagerIF mgr
private StageIF stage
| Constructor Detail | 
|---|
public ConfigData(ManagerIF mgr)
public ConfigData(ManagerIF mgr,
                  java.util.Hashtable args)
public ConfigData(ManagerIF mgr,
                  java.lang.String[] args)
           throws java.io.IOException
java.io.IOException - If any of the strings to not match the 
   pattern "key=value".| Method Detail | 
|---|
public boolean contains(java.lang.String key)
contains in interface ConfigDataIFpublic java.lang.String getString(java.lang.String key)
getString in interface ConfigDataIFpublic int getInt(java.lang.String key)
getInt in interface ConfigDataIFpublic double getDouble(java.lang.String key)
getDouble in interface ConfigDataIFpublic boolean getBoolean(java.lang.String key)
getBoolean in interface ConfigDataIFpublic java.lang.String[] getStringList(java.lang.String key)
getStringList in interface ConfigDataIFpublic void setString(java.lang.String key,
                      java.lang.String val)
setString in interface ConfigDataIFpublic void setInt(java.lang.String key,
                   int val)
setInt in interface ConfigDataIFpublic void setDouble(java.lang.String key,
                      double val)
setDouble in interface ConfigDataIFpublic void setBoolean(java.lang.String key,
                       boolean val)
setBoolean in interface ConfigDataIFpublic void setStringList(java.lang.String key,
                          java.lang.String[] valarr)
setStringList in interface ConfigDataIFpublic ManagerIF getManager()
getManager in interface ConfigDataIFManagerIFpublic StageIF getStage()
getStage in interface ConfigDataIFStageIFpublic void setStage(StageIF stage)
ConfigDataIF
setStage in interface ConfigDataIFvoid setManager(ManagerIF mgr)
private java.util.Hashtable stringArrayToHT(java.lang.String[] arr)
                                     throws java.io.IOException
java.io.IOException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||