|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
com.ibm.dse.desktop.Settings
This class is used to manage (create, modify, and select) settings.
@copyright(c) Copyright IBM Corporation 2000.
Field Summary | |
---|---|
static int |
DATABASE
|
protected java.lang.String |
dataSourceLocation
|
static int |
FILE
|
static java.lang.String |
NullConstant
|
static int |
RESOURCE
|
Constructor Summary | |
---|---|
Settings()
Creates a Settings object. |
Method Summary | |
---|---|
void |
flush()
Saves the current settings values to the data source. |
java.lang.String |
getProperty(java.lang.String key)
Returns the value of a given property. |
java.lang.String |
getProperty(java.lang.String group,
java.lang.String key)
Returns the value of the given group's property. |
java.util.Hashtable |
getSettingsGroup(java.lang.String groupName)
Returns a hash table with the settings of the given group. |
java.util.Hashtable |
getSettingsGroupValues(java.lang.String groupName)
Returns a hash table with the settings values of the given group. |
protected void |
initialize()
Initializes the Settings, using the given data source. |
void |
removeProperty(java.lang.String key)
Removes the value of a given property. |
void |
removeProperty(java.lang.String group,
java.lang.String key)
Deletes a property. |
void |
removeSettingsGroupValues(java.lang.String group)
Removes all the properties of the given group. |
void |
setDataSource(java.lang.String name,
int type)
Initializes the Settings, using the given data source. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Adds or updates the value of a given property. |
void |
setProperty(java.lang.String group,
java.lang.String key,
java.lang.String value)
Adds or updates the value of a given property of a given group. |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String dataSourceLocation
public static final int RESOURCE
public static final int FILE
public static final int DATABASE
public static final java.lang.String NullConstant
Constructor Detail |
public Settings()
Method Detail |
public void flush() throws java.lang.Exception
java.lang.Exception
public java.lang.String getProperty(java.lang.String key)
key
- java.lang.Object - the key
public java.lang.String getProperty(java.lang.String group, java.lang.String key)
group
- java.lang.String - the groupkey
- java.lang.String - the key
public java.util.Hashtable getSettingsGroup(java.lang.String groupName)
groupName
- java.lang.String
public java.util.Hashtable getSettingsGroupValues(java.lang.String groupName)
groupName
- java.lang.String
protected void initialize() throws java.lang.Exception
java.lang.Exception
public void removeProperty(java.lang.String key)
key
- java.lang.Object - the key
public void removeProperty(java.lang.String group, java.lang.String key)
group
- java.lang.Stringkey
- java.lang.Stringpublic void removeSettingsGroupValues(java.lang.String group)
group
- java.lang.String - the settings grouppublic void setDataSource(java.lang.String name, int type) throws java.lang.Exception
name
- java.lang.String - the data source locationtype
- int - the data source type
java.lang.Exception
public void setProperty(java.lang.String key, java.lang.String value)
key
- java.lang.Stringvalue
- java.lang.Stringpublic void setProperty(java.lang.String group, java.lang.String key, java.lang.String value)
group
- java.lang.Stringkey
- java.lang.Stringvalue
- java.lang.String
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |