|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ChinaVO.FITSManager.XMLRWer org.ChinaVO.FITSManager.SystemSetting
public class SystemSetting
Load the config.xml file which storage all of the configuration information
for this application.
example:
System ss=SystemSetting.getSystemSetting();
ss.getBooleanValue("config/system/isShowHiddenFiles", true);
The path is case sensitive.
remark:config.xml should be at the root directory of the whole application.
structur of config.xml: <?xml version="1.0"
encoding="UTF-8"?>
<config>
<system value="">
<isShowHiddenFiles value="true" />
</system>
</config>
Method Summary | |
---|---|
static void |
dispose()
Set the only instance of SystemSetting to null. |
static SystemSetting |
getSystemSetting()
Get the only instance of SystemSetting. |
static void |
initialize()
initialize the SystemSetting instance |
Methods inherited from class org.ChinaVO.FITSManager.XMLRWer |
---|
getBooleanValue, getDoubleValue, getIntValue, getRootName, getStringValue, getValueAttrStr, getXMLPath, loadXML, saveXML, setSetting, setXMLPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void initialize()
public static void dispose()
public static SystemSetting getSystemSetting()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |