Package org.ametys.runtime.parameter
Class Parameter<T extends Enum<T>>
java.lang.Object
org.ametys.runtime.parameter.Parameter<T>
- Type Parameters:
T
- the actual parameter type.
- Direct Known Subclasses:
AbstractDefaultSearchCriterionDefinition
,AbstractSearchUIColumn
,AbstractSearchUICriterion
,UserPreference
Deprecated.
use ElementDefinition instead
A parameter is defined with the following properties:
- id
- id of the parameter, must be unique
- pluginName
- the plugin name defining this parameter
- label
- the label (can be i18nized)
- description
- the description (can be i18nized)
- type
- the type
- widget
- the optional widget to use for rendering
- enumerator
- the optional enumerator
- validator
- the optional validator
- defaultValue
- the default value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Retrieves the default value.Deprecated.Retrieves the description.Deprecated.Retrieves the enumerator.getId()
Deprecated.Get the id.getLabel()
Deprecated.Retrieves the label.Deprecated.Retrieves the name of the plugin declaring this parameter.getType()
Deprecated.Retrieves the type.Deprecated.Retrieves the validator.Deprecated.Retrieves the widget to use for rendering.Deprecated.Get the widget's parametersvoid
setDefaultValue
(Object defaultValue) Deprecated.Set the default value.void
setDescription
(I18nizableText description) Deprecated.Set the description.void
setEnumerator
(Enumerator enumerator) Deprecated.Set the enumerator.void
Deprecated.Set the id.void
setLabel
(I18nizableText label) Deprecated.Set the label.void
setPluginName
(String pluginName) Deprecated.Set the name of the plugin declaring this parameter.void
Deprecated.Set the type.void
setValidator
(Validator validator) Deprecated.Set the validator.void
Deprecated.Set the widget.void
setWidgetParameters
(Map<String, I18nizableText> params) Deprecated.Set the widget's parameters
-
Constructor Details
-
Parameter
public Parameter()Deprecated.
-
-
Method Details
-
getId
Deprecated.Get the id.- Returns:
- Returns the id.
-
setId
Deprecated.Set the id.- Parameters:
id
- the id.
-
getPluginName
Deprecated.Retrieves the name of the plugin declaring this parameter.- Returns:
- the plugin name.
-
setPluginName
Deprecated.Set the name of the plugin declaring this parameter.- Parameters:
pluginName
- the plugin name.
-
getLabel
Deprecated.Retrieves the label.- Returns:
- the label.
-
setLabel
Deprecated.Set the label.- Parameters:
label
- the label.
-
getDescription
Deprecated.Retrieves the description.- Returns:
- the description.
-
setDescription
Deprecated.Set the description.- Parameters:
description
- the description.
-
getType
Deprecated.Retrieves the type.- Returns:
- the type.
-
setType
Deprecated.Set the type.- Parameters:
type
- the type.
-
getWidget
Deprecated.Retrieves the widget to use for rendering.- Returns:
- the widget or
null
if none is defined.
-
setWidget
Deprecated.Set the widget.- Parameters:
widget
- the widget.
-
getWidgetParameters
Deprecated.Get the widget's parameters- Returns:
- the widget's parameters
-
setWidgetParameters
Deprecated.Set the widget's parameters- Parameters:
params
- the parameters to set
-
getEnumerator
Deprecated.Retrieves the enumerator.- Returns:
- the enumerator or
null
if none is defined.
-
setEnumerator
Deprecated.Set the enumerator.- Parameters:
enumerator
- the enumerator.
-
getValidator
Deprecated.Retrieves the validator.- Returns:
- the validator or
null
if none is defined.
-
setValidator
Deprecated.Set the validator.- Parameters:
validator
- the validator.
-
getDefaultValue
Deprecated.Retrieves the default value.- Returns:
- the default value or
null
if none is defined.
-
setDefaultValue
Deprecated.Set the default value.- Parameters:
defaultValue
- the default value.
-