|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acm.seguin.ide.common.options.PropertiesFile
public class PropertiesFile
An extension to org.acm.seguin.util.FileSettings with methods
for storing and saving new properties.
| Constructor Summary | |
|---|---|
PropertiesFile(FileSettings props)
initializes the properties with the settings of a FileSettings
instance. |
|
| Method Summary | |
|---|---|
void |
deleteKey(java.lang.String key)
Description of the Method |
boolean |
getBoolean(java.lang.String key)
|
boolean |
getBoolean(java.lang.String key,
boolean defaultValue)
|
int |
getInteger(java.lang.String key,
int defaultValue)
|
java.lang.String |
getString(java.lang.String key)
|
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
|
boolean |
isLocalProperty(java.lang.String key)
Gets the localProperty attribute of the PropertiesFile object |
void |
save()
Reloads the original property file, overrides the old values with the stored new ones, and saves the property file, if there are any changes. |
void |
save(java.io.File file)
Reloads the original property file, overrides the old values with the stored new ones, and saves the property file, if there are any changes. |
void |
setString(java.lang.String key,
java.lang.String value)
Sets the string attribute of the PropertiesFile object |
java.lang.String |
toString()
Description of the Method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesFile(FileSettings props)
FileSettings
instance.
props - Description of the Parameter| Method Detail |
|---|
public boolean isLocalProperty(java.lang.String key)
key - Description of the Parameter
public java.lang.String getString(java.lang.String key)
key - the property key
public java.lang.String getString(java.lang.String key,
java.lang.String defaultValue)
key - the property keydefaultValue - a default value
public int getInteger(java.lang.String key,
int defaultValue)
key - the property keydefaultValue - a default value
public boolean getBoolean(java.lang.String key)
key - the property key
public boolean getBoolean(java.lang.String key,
boolean defaultValue)
key - the property keydefaultValue - Description of the Parameter
public void setString(java.lang.String key,
java.lang.String value)
key - The new string valuevalue - The new string valuepublic void deleteKey(java.lang.String key)
key - Description of the Parameterpublic void save()
public java.lang.String toString()
toString in class java.lang.Object
public void save(java.io.File file)
throws java.io.IOException
file - Description of the Parameter
java.io.IOException - Description of the Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||