| java.lang.Object org.acm.seguin.util.FileSettings
FileSettings | public class FileSettings implements Settings(Code) | | Settings loaded from a file
author: Chris Seguin author: Mike Atkinson |
getBoolean | public boolean getBoolean(String key)(Code) | | Gets a boolean
Parameters: key - The code to look up The associated boolean |
getDouble | public double getDouble(String key)(Code) | | Gets a double
Parameters: key - The code to look up The associated double |
getFile | public File getFile()(Code) | | Return the file we are monitoring
The file value |
getInteger | public int getInteger(String key)(Code) | | Gets a integer
Parameters: key - The code to look up The associated integer |
getKeys | public Enumeration getKeys()(Code) | | Gets the keys associated with this properties
the iterator |
getProperty | public String getProperty(String key)(Code) | | Gets a string
Parameters: key - The code to look up The associated string |
getProperty | public String getProperty(String key, String def)(Code) | | Gets a string
Parameters: key - The code to look up Parameters: def - Use this if the code is not found The associated string |
getRefactoryPrettySettings | public static FileSettings getRefactoryPrettySettings()(Code) | | Factory method to create FileSettings objects. Equivalent to
getSettings("Refactory","pretty")
A settings object since: 2.7.04 |
getRefactorySettings | public static FileSettings getRefactorySettings(String name)(Code) | | Factory method to create FileSettings objects. Equivalent to
getSettings("Refactory",name)
Parameters: name - The name of the specific settings A settings object since: 2.7.04 |
getRefactorySettingsRoot | public static File getRefactorySettingsRoot()(Code) | | Gets the SettingsRoot for a Refactory application
The SettingsRoot value since: 2.7.04 |
getSettings | public static FileSettings getSettings(String project, String app, String name)(Code) | | Factory method to create FileSettings objects
Parameters: project - The name of the project Parameters: app - The name of the application Parameters: name - The name of the specific settings A settings object |
getSettings | public static FileSettings getSettings(String app, String name)(Code) | | Factory method to create FileSettings objects
Parameters: app - The name of the application Parameters: name - The name of the specific settings A settings object |
getSettingsRoot | public static File getSettingsRoot()(Code) | | Gets the SettingsRoot attribute of the FileSettings class
The SettingsRoot value |
getString | public String getString(String key)(Code) | | Gets a string
Parameters: key - The code to look up The associated string |
isLocalProperty | public boolean isLocalProperty(String key)(Code) | | Gets a string
Parameters: key - The code to look up The associated string |
main | public static void main(String[] args)(Code) | | Main program to test the FileSettings object
Parameters: args - the command line arguments |
removeKey | public void removeKey(String key)(Code) | | Description of the Method
Parameters: key - Description of the Parameter |
save | public synchronized void save()(Code) | | Stores all the settings from the file
|
setContinuallyReload | public void setContinuallyReload(boolean way)(Code) | | Sets the ContinuallyReload attribute of the FileSettings object
Parameters: way - The new ContinuallyReload value |
setParent | protected void setParent(FileSettings value)(Code) | | Sets the Parent attribute of the FileSettings object
Parameters: value - The new Parent value |
setReloadNow | public void setReloadNow(boolean way)(Code) | | Sets the ReloadNow attribute of the FileSettings object
Parameters: way - The new ReloadNow value |
setSettingsRoot | public static void setSettingsRoot(String dir)(Code) | | Sets the root directory for settings files
Parameters: dir - The new SettingsRoot value |
setSettingsRoot | public static void setSettingsRoot(File dir)(Code) | | Sets the root directory for settings files
Parameters: dir - The new SettingsRoot value |
setString | public void setString(String key, String value)(Code) | | Sets a string
Parameters: key - The code to look up Parameters: value - New value for the setting code. |
toString | public String toString()(Code) | | Description of the Method
Description of the Return Value |
|
|