Package org.ametys.runtime.config
Class ConfigParameterDefinitionWrapper<T>
- java.lang.Object
-
- org.ametys.runtime.model.CategorizedElementDefinitionWrapper<T>
-
- org.ametys.runtime.config.ConfigParameterDefinitionWrapper<T>
-
- Type Parameters:
T- Type of the parameter value
public class ConfigParameterDefinitionWrapper<T> extends CategorizedElementDefinitionWrapper<T>
Object containing the definition of a configuration parameter and informations about its categories / groups and group switch
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean_isGroupSwitchDefines if this definition is the group switch-
Fields inherited from class org.ametys.runtime.model.CategorizedElementDefinitionWrapper
_definition, _displayCategory, _displayGroup, _position
-
-
Constructor Summary
Constructors Constructor Description ConfigParameterDefinitionWrapper()Default constructor.ConfigParameterDefinitionWrapper(CategorizedElementDefinitionWrapper<T> wrapperToCopy)Constructor by copying an existingConfigParameterDefinitionWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisGroupSwitch()Retrieves true if this definition is the group switchvoidsetGroupSwitch(boolean isGroupSwitch)Sets the group switch-
Methods inherited from class org.ametys.runtime.model.CategorizedElementDefinitionWrapper
equals, getDefinition, getDisplayCategory, getDisplayGroup, getPosition, hashCode, setDefinition, setDisplayCategory, setDisplayGroup, setPosition, toString
-
-
-
-
Field Detail
-
_isGroupSwitch
protected boolean _isGroupSwitch
Defines if this definition is the group switch
-
-
Constructor Detail
-
ConfigParameterDefinitionWrapper
public ConfigParameterDefinitionWrapper()
Default constructor.
-
ConfigParameterDefinitionWrapper
public ConfigParameterDefinitionWrapper(CategorizedElementDefinitionWrapper<T> wrapperToCopy)
Constructor by copying an existingConfigParameterDefinitionWrapper.- Parameters:
wrapperToCopy- TheConfigParameterDefinitionWrapperto copy
-
-
Method Detail
-
isGroupSwitch
public boolean isGroupSwitch()
Retrieves true if this definition is the group switch- Returns:
- true if this definition is the group switch, false otherwise
-
setGroupSwitch
public void setGroupSwitch(boolean isGroupSwitch)
Sets the group switch- Parameters:
isGroupSwitch- true if this definition is the group switch
-
-