Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.settings.datasource
Class RuntimeDataSource  view RuntimeDataSource download RuntimeDataSource.java

java.lang.Object
  extended bycom.flexstor.common.settings.datasource.RuntimeDataSource
All Implemented Interfaces:
com.flexstor.common.settings.SettingsSourceI

public class RuntimeDataSource
extends java.lang.Object
implements com.flexstor.common.settings.SettingsSourceI

Settings datasource for Runtime Settings

Version:
3.0

Field Summary
private  java.util.Hashtable settings
           
 
Fields inherited from interface com.flexstor.common.settings.SettingsSourceI
BOOLEAN, COLOR, INT, OBJECT, STRING
 
Constructor Summary
RuntimeDataSource()
           
 
Method Summary
 void addSetting(java.lang.String sKey, java.lang.Object obj)
          Adds a setting to the datasource
 boolean canAddDataType(int nDataType)
          Return true if a setting with the specified data type can be added.
 boolean canDeleteSetting()
          Return true if a setting can be deleted,
 boolean canGetDataType(int nDataType)
          Return true if a setting with the specified data type can be retrieved.
 void deleteSetting(java.lang.String sKey)
          Deletes a setting from the datasource
 java.lang.Object getSetting(java.lang.String sKey)
          Retrieves a setting from the datasource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settings

private java.util.Hashtable settings
Constructor Detail

RuntimeDataSource

public RuntimeDataSource()
Method Detail

addSetting

public void addSetting(java.lang.String sKey,
                       java.lang.Object obj)
Description copied from interface: com.flexstor.common.settings.SettingsSourceI
Adds a setting to the datasource

Specified by:
addSetting in interface com.flexstor.common.settings.SettingsSourceI

deleteSetting

public void deleteSetting(java.lang.String sKey)
Description copied from interface: com.flexstor.common.settings.SettingsSourceI
Deletes a setting from the datasource

Specified by:
deleteSetting in interface com.flexstor.common.settings.SettingsSourceI

getSetting

public java.lang.Object getSetting(java.lang.String sKey)
Description copied from interface: com.flexstor.common.settings.SettingsSourceI
Retrieves a setting from the datasource

Specified by:
getSetting in interface com.flexstor.common.settings.SettingsSourceI

canAddDataType

public boolean canAddDataType(int nDataType)
Description copied from interface: com.flexstor.common.settings.SettingsSourceI
Return true if a setting with the specified data type can be added.

Specified by:
canAddDataType in interface com.flexstor.common.settings.SettingsSourceI

canGetDataType

public boolean canGetDataType(int nDataType)
Description copied from interface: com.flexstor.common.settings.SettingsSourceI
Return true if a setting with the specified data type can be retrieved.

Specified by:
canGetDataType in interface com.flexstor.common.settings.SettingsSourceI

canDeleteSetting

public boolean canDeleteSetting()
Description copied from interface: com.flexstor.common.settings.SettingsSourceI
Return true if a setting can be deleted,

Specified by:
canDeleteSetting in interface com.flexstor.common.settings.SettingsSourceI