|
Hilbert II - Version 0.03.08 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.qedeq.kernel.config.QedeqConfig
This class gives a type save access to properties of the application.
| Constructor Summary | |
QedeqConfig(File configFile,
String description,
File basisDirectory)
Constructor. |
|
| Method Summary | |
File |
createAbsolutePath(String path)
Get file path starting from basis directory of this application. |
File |
getBasisDirectory()
Get basis directory of this application. |
File |
getBufferDirectory()
Get local file directory for module buffering. |
File |
getGenerationDirectory()
Get local file directory to save generated files in. |
protected String |
getKeyValue(String key)
Get value for given key. |
protected String |
getKeyValue(String key,
String defaultValue)
Get value for given key. |
File |
getLocalModulesDirectory()
Get directory for newly created QEDEQ module files. |
String |
getLogFile()
Get local file location for log file. |
String[] |
getModuleHistory()
Get history of modules, which were tried to load. |
String[] |
getPreviouslyCheckedModules()
Get list of previously checked modules. |
boolean |
isAutoReloadLastSessionChecked()
Get auto reload of last session successfully loaded modules. |
boolean |
isOldHtml()
Should old HTML code be generated? |
void |
saveModuleHistory(List modules)
Save history of modules, which were tried to load. |
void |
setAutoReloadLastSessionChecked(boolean mode)
Set auto reload checked modules of last session mode. |
void |
setBufferDirectory(File location)
Set local file directory for module buffering. |
void |
setGenerationDirectory(File location)
Set local file directory for generated files. |
protected void |
setKeyValue(String key,
String value)
Set value for given key. |
void |
setLoadedModules(ModuleAddress[] moduleAddresses)
Set successfully list of successfully loaded QEDEQ modules. |
void |
setLocalModulesDirectory(File location)
Set directory for newly created module files. |
void |
setOldHtml(boolean mode)
Set old HTML code generation flag. |
void |
store()
Store properties in config file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QedeqConfig(File configFile,
String description,
File basisDirectory)
throws IOException
configFile - Config file.description - Config file description.basisDirectory - Basis directory of application for all variable data. Basis for all
relative paths
IOException - Config file couldn't be loaded.| Method Detail |
public final void store()
throws IOException
IOExceptionpublic final File getGenerationDirectory()
public final void setGenerationDirectory(File location)
location - generation directory.public final File getBufferDirectory()
public final void setBufferDirectory(File location)
location - buffer directory.public final File getLocalModulesDirectory()
public final void setLocalModulesDirectory(File location)
location - Buffer directory.public final String getLogFile()
public final String[] getModuleHistory()
public final void saveModuleHistory(List modules)
modules - list of modules.public final String[] getPreviouslyCheckedModules()
public final void setLoadedModules(ModuleAddress[] moduleAddresses)
moduleAddresses - This modules were successfully checked.public final File getBasisDirectory()
public final File createAbsolutePath(String path)
path - Go to this path starting from basis directory.
public boolean isAutoReloadLastSessionChecked()
public final void setAutoReloadLastSessionChecked(boolean mode)
mode - enable auto reload?public final boolean isOldHtml()
public final void setOldHtml(boolean mode)
mode - Set old HTML code generation?protected String getKeyValue(String key)
key - Get value for this key.
null.
protected String getKeyValue(String key,
String defaultValue)
key - Get value for this key.defaultValue - Default value..
null defaultValue
is returned..
protected void setKeyValue(String key,
String value)
key - For this key.value - Set this value.
|
Hilbert II - Version 0.03.08 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ©left GNU General Public Licence All Rights Reserved. |