public interface Configuration
ConfigItemType
constants.Modifier and Type | Method and Description |
---|---|
java.util.Set |
getConfigItemKeys()
Returns a
Set of ConfigItemType that represent the keys
of the Configuration collection. |
DataType |
getItemDataType(ConfigItemType itemType)
Returns the enumberated
DataType value corresponding to the specified
ConfigItemType . |
java.lang.String |
getItemDescription(ConfigItemType itemType)
Returns the localized description
String of the specified
configuration item for the default Locale . |
java.lang.String |
getItemDescription(ConfigItemType itemType,
java.util.Locale locale)
Returns the localized description
String of the specified
configuration item for the specified Locale . |
boolean |
getItemValueAsBool(ConfigItemType itemType)
Returns the
boolean value for a configuration item of type
DataType.TYPE_BOOLEAN . |
int |
getItemValueAsInt(ConfigItemType itemType)
Returns the
int value for a configuration item of type
DataType.TYPE_INTEGER . |
java.lang.String |
getItemValueAsString(ConfigItemType itemType)
Returns the
String value for a configuration item of type
DataType.TYPE_STRING . |
void |
setItemValue(ConfigItemType itemType,
boolean value)
Sets the value for a configuration item of type
DataType.TYPE_BOOLEAN . |
void |
setItemValue(ConfigItemType itemType,
int value)
Sets the value for a configuration item of type
DataType.TYPE_INTEGER . |
void |
setItemValue(ConfigItemType itemType,
java.lang.String value)
Sets the value for a configuration item of type
DataType.TYPE_STRING . |
java.util.Set getConfigItemKeys()
Set
of ConfigItemType
that represent the keys
of the Configuration collection.Set
of ConfigItemType
instances.java.lang.String getItemDescription(ConfigItemType itemType, java.util.Locale locale)
String
of the specified
configuration item for the specified Locale
.itemType
- the item's ConfigItemType
identifierlocale
- the Locale
to base the description String
upon.String
description.java.lang.String getItemDescription(ConfigItemType itemType)
String
of the specified
configuration item for the default Locale
.itemType
- the item's ConfigItemType
identifierString
description.DataType getItemDataType(ConfigItemType itemType)
DataType
value corresponding to the specified
ConfigItemType
.itemType
- the ConfigItemType
identifier.DataType
value.boolean getItemValueAsBool(ConfigItemType itemType)
boolean
value for a configuration item of type
DataType.TYPE_BOOLEAN
.itemType
- the ConfigItemType
identifier.boolean
value.BDSException
- if configuration item's type is not DataType.TYPE_BOOLEAN
.int getItemValueAsInt(ConfigItemType itemType)
int
value for a configuration item of type
DataType.TYPE_INTEGER
.itemType
- the ConfigItemType
identifier.int
value.BDSException
- if configuration item's type is not DataType.TYPE_INTEGER
.java.lang.String getItemValueAsString(ConfigItemType itemType)
String
value for a configuration item of type
DataType.TYPE_STRING
.itemType
- the ConfigItemType
identifier.String
value.BDSException
- if configuration item's type is not DataType.TYPE_STRING
.void setItemValue(ConfigItemType itemType, boolean value)
DataType.TYPE_BOOLEAN
.itemType
- the ConfigItemType
identifier.value
- the new boolean
configuration value.BDSException
- if configuration item's type is not DataType.TYPE_BOOLEAN
.void setItemValue(ConfigItemType itemType, int value)
DataType.TYPE_INTEGER
.itemType
- the ConfigItemType
identifier.value
- the new int
configuration value.BDSException
- if configuration item's type is not DataType.TYPE_INTEGER
.void setItemValue(ConfigItemType itemType, java.lang.String value)
DataType.TYPE_STRING
.itemType
- the ConfigItemType
identifier.value
- the new String
configuration value.BDSException
- if configuration item's type is not DataType.TYPE_STRING
.© Copyright IBM Corp. 2006, 2013. All Rights Reserved.