|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.nukesoft.botutil.ConfManager
The ConfManager simplifies access to an XML based configuration file. It manages the file management and the data location. This class acts as a wrapper for the TXML library. (http://sourceforge.net/projects/txml/)
Constructor Summary | |
ConfManager(String confPath)
Creates a confuguration manager and loads a file. |
|
ConfManager(String confPath,
boolean globalize)
Creates a confuguration manager and loads a file. |
Method Summary | |
String |
getConfString(String confPath)
Loads a string from the configuration file. |
static ConfManager |
getGlobalConf()
Gets the global configuration manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConfManager(String confPath) throws IOException
confPath
- The path to the confuguration file to load.
IOException
public ConfManager(String confPath, boolean globalize) throws IOException
confPath
- The path to the confuguration file to load.globalize
- Set to TRUE if you want this configuration file to be the global config.
IOException
Method Detail |
public String getConfString(String confPath) throws IOException
confPath
- The path in the configuration heiarchy to load.
Format: //Node/Node/Node/Element
IOException
public static ConfManager getGlobalConf()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |