org.ChinaVO.FITSManager
Class SystemSetting

java.lang.Object
  extended by org.ChinaVO.FITSManager.XMLRWer
      extended by org.ChinaVO.FITSManager.SystemSetting

public class SystemSetting
extends XMLRWer

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>

Version:
v1.0.0 2009-11-12 15:01:19
Author:
Fany

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

initialize

public static void initialize()
initialize the SystemSetting instance


dispose

public static void dispose()
Set the only instance of SystemSetting to null.


getSystemSetting

public static SystemSetting getSystemSetting()
Get the only instance of SystemSetting. If the instance is null, program will construct a instance itself.

Returns:
the only instance of SystemSetting.