edu.ksu.cis.bnj.preferences
Class Preferences

java.lang.Object
  extended byedu.ksu.cis.bnj.preferences.Preferences

public class Preferences
extends java.lang.Object

Options is a class to facilitate the customization of the BNJ package.

Author:
James Plummer

Field Summary
static java.lang.String preferencesfilename
          The base options file name.
 
Constructor Summary
Preferences()
           
 
Method Summary
 int verifyPreferences()
          verifyOptions is a function which verifies the state of the Options in load memory compared to the options file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

preferencesfilename

public static final java.lang.String preferencesfilename
The base options file name. Should alway be in the options directory

See Also:
Constant Field Values
Constructor Detail

Preferences

public Preferences()
Method Detail

verifyPreferences

public int verifyPreferences()
verifyOptions is a function which verifies the state of the Options in load memory compared to the options file. All flags which keep track of state are updated. This should be called when a system error affecting options occurs to sync Options with the operating program.

Returns:
- an int representing the restored state or and error. 0 for restored. 1 for error.