|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.tools.Settings
Settings is a class which contains, stores and retrieves properties
Field Summary | |
protected java.util.Properties |
properties
|
Constructor Summary | |
Settings(java.lang.String description)
Constructs a new Settings |
Method Summary | |
java.lang.String |
getDescription()
Gets the description of this Settings object. |
java.util.Properties |
getProperties()
Gets the CodeGen Properties |
java.lang.String |
getProperty(java.lang.String key)
Gets CodeGen property value for given key |
protected abstract java.lang.String |
getPropertyFileName()
Gets the full property file name |
protected abstract java.lang.String |
getPropertyFilePath()
Gets the full property file name |
void |
loadSettings()
Loads the CodeGen Settings from the default settings file (if exists) |
void |
loadSettings(java.io.File propFile)
Loads the CodeGen Settings from the default settings file (if exists) |
void |
saveSettings()
Saves the CodeGen Settings to the default settings file. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets the CodeGen property value for the given key |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Properties properties
Constructor Detail |
public Settings(java.lang.String description)
Method Detail |
protected abstract java.lang.String getPropertyFilePath()
protected abstract java.lang.String getPropertyFileName()
public void loadSettings() throws java.io.IOException
IOException
- if problem loading properties filepublic void loadSettings(java.io.File propFile) throws java.io.IOException
IOException
- if problem loading properties filepublic void saveSettings() throws java.io.IOException
IOException
- if problem loading properties filepublic java.util.Properties getProperties()
public java.lang.String getProperty(java.lang.String key)
key
- of requested property
public void setProperty(java.lang.String key, java.lang.String value)
key
- of the propertyvalue
- for the propertypublic java.lang.String getDescription()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |