|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object seda.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 ConfigDataIF
public java.lang.String getString(java.lang.String key)
getString
in interface ConfigDataIF
public int getInt(java.lang.String key)
getInt
in interface ConfigDataIF
public double getDouble(java.lang.String key)
getDouble
in interface ConfigDataIF
public boolean getBoolean(java.lang.String key)
getBoolean
in interface ConfigDataIF
public java.lang.String[] getStringList(java.lang.String key)
getStringList
in interface ConfigDataIF
public void setString(java.lang.String key, java.lang.String val)
setString
in interface ConfigDataIF
public void setInt(java.lang.String key, int val)
setInt
in interface ConfigDataIF
public void setDouble(java.lang.String key, double val)
setDouble
in interface ConfigDataIF
public void setBoolean(java.lang.String key, boolean val)
setBoolean
in interface ConfigDataIF
public void setStringList(java.lang.String key, java.lang.String[] valarr)
setStringList
in interface ConfigDataIF
public ManagerIF getManager()
getManager
in interface ConfigDataIF
ManagerIF
public StageIF getStage()
getStage
in interface ConfigDataIF
StageIF
public void setStage(StageIF stage)
ConfigDataIF
setStage
in interface ConfigDataIF
void 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 | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |