public class ConfigParameters
extends java.lang.Object
| Constructor and Description |
|---|
ConfigParameters()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(java.lang.String group,
java.lang.String paramName,
java.lang.String paramValue)
Adds a configuration parameter either to the specified group or
to the default group.
|
java.lang.String |
getParamValue(java.lang.String group,
java.lang.String paramName)
Returns a configuration parameter’s value either from the
specified group or from the default group.
|
java.lang.String |
removeParam(java.lang.String group,
java.lang.String paramName)
Removes a configuration parameter either from the specified
group or from the default group.
|
public void addParam(java.lang.String group,
java.lang.String paramName,
java.lang.String paramValue)
throws InvalidInputException
group - String Group to which the configuration parameter is to be added.paramName - String Name of the configuration parameter.paramValue - String Value of the configuration parameter.InvalidInputException - if paramName is null or if the parameter in the group is duplicate.public java.lang.String getParamValue(java.lang.String group,
java.lang.String paramName)
throws InvalidInputException
group - String Group from which the configuration parameter’s value is to be returned.paramName - String Name of the configuration parameter.InvalidInputException - if paramName is null.public java.lang.String removeParam(java.lang.String group,
java.lang.String paramName)
throws InvalidInputException
group - String Group from which the configuration parameter is to be removed.paramName - String Name of the configuration parameter.InvalidInputException - if paramName is null.