public class MCconfig
extends java.lang.Object
Configuration items are identified by names as described in the configuration files provided with the toolkit (mergecom.pro and merge.ini).
See the Configuration section for a description of each configuration option.
The methods of this class can be used by multiple threads concurrently.
| Constructor and Description |
|---|
MCconfig() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanConfigValue(java.lang.String parm)
Retrieves the value of a boolean configuration parameter.
|
static int |
getIntConfigValue(java.lang.String parm)
Retrieves the value of a integer type configuration parameter
|
static java.lang.String |
getStringConfigValue(java.lang.String parm)
Retrieves the value of a string-type configuration parameter
|
static void |
setConfigValue(java.lang.String parm,
boolean value)
Sets a new value for the specified configuration parameter.
|
static void |
setConfigValue(java.lang.String parm,
int value)
Sets a new value for the specified configuration parameter.
|
static void |
setConfigValue(java.lang.String parm,
java.lang.String value)
Sets a new value for the specified configuration parameter.
|
public static boolean getBooleanConfigValue(java.lang.String parm)
The following configuration parameters can be retrieved using this method, a description of each item is available in the provided configuration files (mergecom.pro and merge.ini):
parm - The name of the configuration parameterMCexception - If the parameter name is invalid.public static int getIntConfigValue(java.lang.String parm)
The following configuration parameters can be retrieved using this method, a description of each item is available in the provided configuration files (mergecom.pro and merge.ini):
parm - The name of the configuration parameter.MCexception - If the parameter name is invalid.public static java.lang.String getStringConfigValue(java.lang.String parm)
The following configuration parameters can be retrieved using this method, a description of each item is available in the provided configuration files (mergecom.pro and merge.ini):
parm - The name of the configuration parameter.MCexception - If the parameter name is invalid.public static void setConfigValue(java.lang.String parm,
int value)
See getIntConfigValue(String) for the list of supported configuration parameters.
parm - The name of the configuration parameter.value - The value to set.MCexception - If the parameter name or the value is invalid.public static void setConfigValue(java.lang.String parm,
java.lang.String value)
See getStringConfigValue(String) for the list of supported configuration parameters.
parm - The name of the configuration parameter.value - The value to set.MCexception - If the parameter name or the value is invalid.public static void setConfigValue(java.lang.String parm,
boolean value)
See getStringConfigValue(String) for the list of supported configuration parameters.
parm - The name of the configuration parameter.value - The value to set.MCexception - If the parameter name is invalid.