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
Constructors -
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 parametersvoidsetDefaultValue(Object defaultValue) Deprecated.Set the default value.voidsetDescription(I18nizableText description) Deprecated.Set the description.voidsetEnumerator(Enumerator enumerator) Deprecated.Set the enumerator.voidDeprecated.Set the id.voidsetLabel(I18nizableText label) Deprecated.Set the label.voidsetPluginName(String pluginName) Deprecated.Set the name of the plugin declaring this parameter.voidDeprecated.Set the type.voidsetValidator(Validator validator) Deprecated.Set the validator.voidDeprecated.Set the widget.voidsetWidgetParameters(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
nullif 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
nullif none is defined.
-
setEnumerator
Deprecated.Set the enumerator.- Parameters:
enumerator- the enumerator.
-
getValidator
Deprecated.Retrieves the validator.- Returns:
- the validator or
nullif none is defined.
-
setValidator
Deprecated.Set the validator.- Parameters:
validator- the validator.
-
getDefaultValue
Deprecated.Retrieves the default value.- Returns:
- the default value or
nullif none is defined.
-
setDefaultValue
Deprecated.Set the default value.- Parameters:
defaultValue- the default value.
-