|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acm.seguin.util.FileSettings
public class FileSettings
Settings loaded from a file
| Constructor Summary | |
|---|---|
|
FileSettings(java.io.File express)
Constructor for the FileSettings object |
protected |
FileSettings(java.lang.String project,
java.lang.String app,
java.lang.String type)
Constructor for the FileSettings object |
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.String key)
Gets a boolean |
double |
getDouble(java.lang.String key)
Gets a double |
java.io.File |
getFile()
Return the file we are monitoring |
int |
getInteger(java.lang.String key)
Gets a integer |
java.util.Enumeration |
getKeys()
Gets the keys associated with this properties |
java.lang.String |
getProperty(java.lang.String key)
Gets a string |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String def)
Gets a string |
static FileSettings |
getRefactoryPrettySettings()
Factory method to create FileSettings objects. |
static FileSettings |
getRefactorySettings(java.lang.String name)
Factory method to create FileSettings objects. |
static java.io.File |
getRefactorySettingsRoot()
Gets the SettingsRoot for a Refactory application |
static FileSettings |
getSettings(java.lang.String app,
java.lang.String name)
Factory method to create FileSettings objects |
static FileSettings |
getSettings(java.lang.String project,
java.lang.String app,
java.lang.String name)
Factory method to create FileSettings objects |
static java.io.File |
getSettingsRoot()
Gets the SettingsRoot attribute of the FileSettings class |
java.lang.String |
getString(java.lang.String key)
Gets a string |
boolean |
isLocalProperty(java.lang.String key)
Gets a string |
static void |
main(java.lang.String[] args)
Main program to test the FileSettings object |
void |
removeKey(java.lang.String key)
Description of the Method |
void |
save()
Stores all the settings from the file |
void |
setContinuallyReload(boolean way)
Sets the ContinuallyReload attribute of the FileSettings object |
protected void |
setParent(FileSettings value)
Sets the Parent attribute of the FileSettings object |
void |
setReloadNow(boolean way)
Sets the ReloadNow attribute of the FileSettings object |
static void |
setSettingsRoot(java.io.File dir)
Sets the root directory for settings files |
static void |
setSettingsRoot(java.lang.String dir)
Sets the root directory for settings files |
void |
setString(java.lang.String key,
java.lang.String value)
Sets a string |
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 FileSettings(java.io.File express)
throws MissingSettingsException
express - The file to use for loading
MissingSettingsException - The file is not found
protected FileSettings(java.lang.String project,
java.lang.String app,
java.lang.String type)
throws MissingSettingsException
project - Description of the Parameterapp - The application nametype - The application type
MissingSettingsException - The file is not found| Method Detail |
|---|
public void setContinuallyReload(boolean way)
way - The new ContinuallyReload valuepublic void setReloadNow(boolean way)
way - The new ReloadNow valuepublic java.util.Enumeration getKeys()
public void removeKey(java.lang.String key)
key - Description of the Parameterpublic boolean isLocalProperty(java.lang.String key)
key - The code to look up
public java.lang.String getProperty(java.lang.String key)
key - The code to look up
public java.lang.String getString(java.lang.String key)
getString in interface Settingskey - The code to look up
public java.lang.String getProperty(java.lang.String key,
java.lang.String def)
key - The code to look updef - Use this if the code is not found
public void setString(java.lang.String key,
java.lang.String value)
key - The code to look upvalue - New value for the setting code.public int getInteger(java.lang.String key)
getInteger in interface Settingskey - The code to look up
public double getDouble(java.lang.String key)
getDouble in interface Settingskey - The code to look up
public boolean getBoolean(java.lang.String key)
getBoolean in interface Settingskey - The code to look up
protected void setParent(FileSettings value)
value - The new Parent valuepublic void save()
public static void setSettingsRoot(java.lang.String dir)
dir - The new SettingsRoot valuepublic static void setSettingsRoot(java.io.File dir)
dir - The new SettingsRoot value
public static FileSettings getSettings(java.lang.String project,
java.lang.String app,
java.lang.String name)
project - The name of the projectapp - The name of the applicationname - The name of the specific settings
public static FileSettings getSettings(java.lang.String app,
java.lang.String name)
app - The name of the applicationname - The name of the specific settings
public static FileSettings getRefactorySettings(java.lang.String name)
name - The name of the specific settings
public static FileSettings getRefactoryPrettySettings()
public static java.io.File getRefactorySettingsRoot()
public static java.io.File getSettingsRoot()
public static void main(java.lang.String[] args)
args - the command line argumentspublic java.io.File getFile()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||