public class Settings
extends java.lang.Object
Constructor and Description |
---|
Settings()
Creates the default settings.
|
Settings(java.util.Properties pProperties)
Loads the settings saved in the specified properties object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProperty(java.lang.String pProperty)
Returns the value of the specified property.
|
void |
setProperty(java.lang.String pProperty,
java.lang.String pValue)
Sets the value of the specified property.
|
void |
store(java.lang.String pFileName)
Stores the current settings to a Java properties file with the specified file name.
|
public Settings()
public Settings(java.util.Properties pProperties)
pProperties
- The properties object from which the settings should be taken.public java.lang.String getProperty(java.lang.String pProperty)
pProperty
- A string indicating the name of the property.public void setProperty(java.lang.String pProperty, java.lang.String pValue)
pProperty
- A string indicating the name of the property.pValue
- The value of the specified property as string.public void store(java.lang.String pFileName) throws java.lang.Exception
pFileName
- The file name of the java properties file that should be stored.java.lang.Exception
- If the file name is not defined, if there are no values to store or if the store procedure has IO exceptions.