T
- the actual parameter type.public class Parameter<T extends Enum<T>> extends Object
Modifier and Type | Field and Description |
---|---|
private Object |
_defaultValue |
private I18nizableText |
_description |
private Enumerator |
_enumerator |
private String |
_id |
private I18nizableText |
_label |
private String |
_pluginName |
private T |
_type |
private Validator |
_validator |
private String |
_widget |
private Map<String,I18nizableText> |
_widgetParams |
Constructor and Description |
---|
Parameter() |
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue()
Retrieves the default value.
|
I18nizableText |
getDescription()
Retrieves the description.
|
Enumerator |
getEnumerator()
Retrieves the enumerator.
|
String |
getId()
Get the id.
|
I18nizableText |
getLabel()
Retrieves the label.
|
String |
getPluginName()
Retrieves the name of the plugin declaring this parameter.
|
T |
getType()
Retrieves the type.
|
Validator |
getValidator()
Retrieves the validator.
|
String |
getWidget()
Retrieves the widget to use for rendering.
|
Map<String,I18nizableText> |
getWidgetParameters()
Get the widget's parameters
|
void |
setDefaultValue(Object defaultValue)
Set the default value.
|
void |
setDescription(I18nizableText description)
Set the description.
|
void |
setEnumerator(Enumerator enumerator)
Set the enumerator.
|
void |
setId(String id)
Set the id.
|
void |
setLabel(I18nizableText label)
Set the label.
|
void |
setPluginName(String pluginName)
Set the name of the plugin declaring this parameter.
|
void |
setType(T type)
Set the type.
|
void |
setValidator(Validator validator)
Set the validator.
|
void |
setWidget(String widget)
Set the widget.
|
void |
setWidgetParameters(Map<String,I18nizableText> params)
Set the widget's parameters
|
private String _pluginName
private I18nizableText _label
private I18nizableText _description
private Map<String,I18nizableText> _widgetParams
private Enumerator _enumerator
private Validator _validator
private Object _defaultValue
public Parameter()
public String getPluginName()
public void setPluginName(String pluginName)
pluginName
- the plugin name.public I18nizableText getLabel()
public void setLabel(I18nizableText label)
label
- the label.public I18nizableText getDescription()
public void setDescription(I18nizableText description)
description
- the description.public String getWidget()
null
if none is defined.public Map<String,I18nizableText> getWidgetParameters()
public void setWidgetParameters(Map<String,I18nizableText> params)
params
- the parameters to setpublic Enumerator getEnumerator()
null
if none is defined.public void setEnumerator(Enumerator enumerator)
enumerator
- the enumerator.public Validator getValidator()
null
if none is defined.public void setValidator(Validator validator)
validator
- the validator.public Object getDefaultValue()
null
if none is defined.public void setDefaultValue(Object defaultValue)
defaultValue
- the default value.