|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.util.GlobalConfig
public class GlobalConfig
Constructor Summary | |
---|---|
GlobalConfig()
|
Method Summary | |
---|---|
java.lang.Object[] |
getAllParameters()
each parameter name consists of the plugin name and the parameter name, separated by a dot. |
static GlobalConfig |
getGlobalConfig()
|
java.lang.String |
getParS(java.lang.String Par)
get String-valued parameter |
static java.lang.String |
getS(java.lang.String Par)
|
boolean |
loadSettings()
load settings from the current config file |
boolean |
loadSettings(java.lang.String fName)
load settings from the specified file. note that the specified file is NOT automatically used as current config file. |
boolean |
saveSettings()
save settings to the current config file |
boolean |
setParS(java.lang.String Par,
java.lang.String Val)
set String-valued parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalConfig()
Method Detail |
---|
public static GlobalConfig getGlobalConfig()
public java.lang.String getParS(java.lang.String Par)
Par
- name of the parameter
null
if such parameter doesn't existpublic static java.lang.String getS(java.lang.String Par)
public java.lang.Object[] getAllParameters()
public boolean setParS(java.lang.String Par, java.lang.String Val)
Par
- name of the parameterVal
- value to be set
true
if successful, false
otherwisepublic boolean saveSettings()
public boolean loadSettings()
true
on success, false
otherwisepublic boolean loadSettings(java.lang.String fName)
true
on success, false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |