|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectProjectConfig
public class ProjectConfig
Configuration class that dynamically holds any variable you wish in the properties file.
Constructor Summary | |
---|---|
ProjectConfig()
Default Constructor. |
|
ProjectConfig(java.lang.String name,
java.lang.String homeDir)
Constructor that sets the only two required parameters of the ProjectConfig. |
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String key)
Gets the property associated with the key. |
boolean |
loadSettings(java.lang.String file)
Loads all the settings from a properties file. |
void |
saveSettings()
Saves the settings of this class to a properties file. |
void |
set(java.lang.String key,
java.lang.String content)
Sets a key/property pair, then saves it to a properties file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectConfig()
public ProjectConfig(java.lang.String name, java.lang.String homeDir)
name
- The name of the project.homeDir
- The absolute path of the project's home directory.Method Detail |
---|
public java.lang.String get(java.lang.String key)
key
- Key of the property you want.
public void set(java.lang.String key, java.lang.String content)
key
- The key to assign the property to.content
- They property to put into the specified key value.public boolean loadSettings(java.lang.String file)
file
- File to load from.
public void saveSettings()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |