public class ConfigParameterGroup extends Object
Modifier and Type | Field and Description |
---|---|
private I18nizableText |
_groupLabel |
private Map<String,ConfigParameter> |
_groupParams |
private Set<ConfigParameterCheckerDescriptor> |
_paramCheckers |
private String |
_switcher |
Constructor and Description |
---|
ConfigParameterGroup(I18nizableText groupLabel)
Create a group
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addParam(ConfigParameter param) |
(package private) void |
addParamChecker(ConfigParameterCheckerDescriptor paramChecker) |
I18nizableText |
getLabel()
Returns the label.
|
Set<ConfigParameterCheckerDescriptor> |
getParamCheckers()
Returns the
ParameterCheckerDescriptor s associated with this group. |
ConfigParameter |
getParameter(String id)
Returns the named
ConfigParameter . |
Set<ConfigParameter> |
getParams(boolean withSwitch)
Returns the
ConfigParameter contained in this group. |
String |
getSwitch()
Returns the group switch, if any.
|
private Map<String,ConfigParameter> _groupParams
private I18nizableText _groupLabel
private Set<ConfigParameterCheckerDescriptor> _paramCheckers
public ConfigParameterGroup(I18nizableText groupLabel)
groupLabel
- The label of the groupvoid addParam(ConfigParameter param)
void addParamChecker(ConfigParameterCheckerDescriptor paramChecker)
public Set<ConfigParameterCheckerDescriptor> getParamCheckers()
ParameterCheckerDescriptor
s associated with this group.ParameterCheckerDescriptor
s associated with this group.public I18nizableText getLabel()
public Set<ConfigParameter> getParams(boolean withSwitch)
ConfigParameter
contained in this group.withSwitch
- if the returned parameters should contains the group switcher, if any.ConfigParameter
contained in this group.public ConfigParameter getParameter(String id)
ConfigParameter
.id
- the id to retrieve.ConfigParameter
.