org.prorefactor.refactor.settings
Class Settings

java.lang.Object
  extended by 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.


Field Summary
protected  java.util.Properties properties
           
protected  java.lang.String propertiesDescription
           
protected  java.lang.String propsFilename
           
 
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
 

Field Detail

properties

protected java.util.Properties properties

propertiesDescription

protected java.lang.String propertiesDescription

propsFilename

protected java.lang.String propsFilename
Constructor Detail

Settings

public Settings(java.lang.String propsFilename)
This does not create the file if it does not exist.

Method Detail

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.