org.prorefactor.refactor.settings
Class Settings
java.lang.Object
org.prorefactor.refactor.settings.Settings
- Direct Known Subclasses:
- ApplicationSettings, ProgressProjectSettings, ProparseProjectSettings
public abstract class Settings
- extends java.lang.Object
Abstract base class for other Settings classes.
This implements the mechanics for loading and saving settings.
The sub-classes are responsible for handling specific
settings attribute/value pairs.
Constructor Summary |
Settings(java.lang.String propsFilename)
This does not create the file if it does not exist. |
Method Summary |
protected java.lang.String |
getVal(java.lang.String orig,
java.lang.String propertyName)
Returns property value, or original if property value is null |
void |
loadSettings()
This does not create the file if it does not exist. |
void |
saveSettings()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
protected java.util.Properties properties
propertiesDescription
protected java.lang.String propertiesDescription
propsFilename
protected java.lang.String propsFilename
Settings
public Settings(java.lang.String propsFilename)
- This does not create the file if it does not exist.
getVal
protected java.lang.String getVal(java.lang.String orig,
java.lang.String propertyName)
- Returns property value, or original if property value is null
loadSettings
public void loadSettings()
throws java.lang.Exception
- This does not create the file if it does not exist.
- Throws:
java.lang.Exception
saveSettings
public void saveSettings()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2008 Joanju Software. All Rights Reserved.