com.jstatcom.project
Class Settings

java.lang.Object
  extended by com.jstatcom.project.Settings

public final class Settings
extends java.lang.Object

Represents all settings that should be stored permanently between different program runs. All settings are stored to an XML file when the program is quit and are automatically retrieved at program start. Settings are handled by the SettingsManager class.

This class only holds a list with an arbitrary number of SettingsElement instances, which are themselves XML serializable classes holding specific types of runtime information.

Author:
Markus Kraetzig

Field Summary
static javolution.xml.XmlFormat<Settings> Settings_XML
           
 
Constructor Summary
Settings()
           
 
Method Summary
 void addSettingsElement(SettingsElement el)
          Adds a SettingsElement object to this.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Settings_XML

public static final javolution.xml.XmlFormat<Settings> Settings_XML
Constructor Detail

Settings

public Settings()
Method Detail

addSettingsElement

public void addSettingsElement(SettingsElement el)
Adds a SettingsElement object to this.

Parameters:
el - an element representing a certain type of runtime information
Throws:
java.lang.IllegalArgumentException - if (el == null)