public class ConfigParameter extends Parameter<ParameterHelper.ParameterType> implements Comparable<ConfigParameter>
Modifier and Type | Field and Description |
---|---|
private DisableConditions |
_disableConditions |
private I18nizableText |
_displayCategory |
private I18nizableText |
_displayGroup |
private boolean |
_groupSwitch |
private JsonFactory |
_jsonFactory |
private ObjectMapper |
_objectMapper |
private long |
_order |
Constructor and Description |
---|
ConfigParameter() |
Modifier and Type | Method and Description |
---|---|
private Map<String,String> |
_disableConditionAsMap(DisableCondition disableCondition)
Formats an Object into JSON.
|
private Map<String,Object> |
_disableConditionsAsMap(DisableConditions disableConditions) |
int |
compareTo(ConfigParameter o) |
String |
disableConditionsToJSON()
Formats disable conditions into JSON.
|
DisableConditions |
getDisableConditions()
Retrieves the disable condition.
|
I18nizableText |
getDisplayCategory()
Retrieves the display category of the parameter.
|
I18nizableText |
getDisplayGroup()
Retrieves the display group of the parameter
|
long |
getOrder()
Retrieves the order of a parameter
|
boolean |
isGroupSwitch()
Retrieves the group switch of the parameter if it has one,
null otherwise |
void |
setDisableConditions(DisableConditions disableConditions)
Sets the disable condition.
|
void |
setDisplayCategory(I18nizableText displayCategory)
Sets the display category of the parameter.
|
void |
setDisplayGroup(I18nizableText displayGroup)
Sets the display group of the parameter
|
void |
setGroupSwitch(boolean groupSwitch)
Sets the group switch of a parameter
|
void |
setOrder(long order)
Sets the order of the parameter
|
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
private I18nizableText _displayCategory
private I18nizableText _displayGroup
private boolean _groupSwitch
private long _order
private DisableConditions _disableConditions
private final JsonFactory _jsonFactory
private final ObjectMapper _objectMapper
public ConfigParameter()
public I18nizableText getDisplayCategory()
public void setDisplayCategory(I18nizableText displayCategory)
displayCategory
- The category of the parameterpublic I18nizableText getDisplayGroup()
public void setDisplayGroup(I18nizableText displayGroup)
displayGroup
- the display grouppublic boolean isGroupSwitch()
null
otherwisepublic void setGroupSwitch(boolean groupSwitch)
groupSwitch
- the group switchpublic long getOrder()
public void setOrder(long order)
order
- the orderpublic DisableConditions getDisableConditions()
null
if none is defined.public void setDisableConditions(DisableConditions disableConditions)
disableConditions
- the disable condition.public int compareTo(ConfigParameter o)
compareTo
in interface Comparable<ConfigParameter>
public String disableConditionsToJSON()
private Map<String,Object> _disableConditionsAsMap(DisableConditions disableConditions)
private Map<String,String> _disableConditionAsMap(DisableCondition disableCondition)
disableCondition
- The disable condition to convert