public class DynamicFixedValuesParameterDefinition extends FixedValuesParameterDefinition
HIDDEN, NOT_HIDDEN, NOT_NULLABLE, NULLABLE, OPTIONAL, REQUIRED| Constructor and Description |
|---|
DynamicFixedValuesParameterDefinition(String name,
String type,
boolean required,
boolean nullable,
boolean hidden,
List<Object> allowed,
String description)
The only difference between this constructor and its super constructor is
allowed can be
null or empty. |
DynamicFixedValuesParameterDefinition(String name,
String type,
boolean required,
boolean nullable,
boolean hidden,
List<Object> allowed,
String description,
ParameterRenderingInformation renderingInfo)
The only difference between this constructor and its super constructor is
allowed can be
null or empty. |
DynamicFixedValuesParameterDefinition(String name,
String type,
boolean required,
boolean nullable,
boolean hidden,
Object[] allowed,
String description)
The only difference between this constructor and its super constructor is
allowed can be
null or empty. |
DynamicFixedValuesParameterDefinition(String name,
String type,
boolean hidden,
List<Object> allowed,
String description)
The only difference between this constructor and its super constructor is
allowed can be
null or empty. |
DynamicFixedValuesParameterDefinition(String name,
String type,
boolean hidden,
List<Object> allowed,
String description,
ParameterRenderingInformation renderingInfo)
The only difference between this constructor and its super constructor is
allowed can be
null or empty. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowZeroFixedValues()
Returns
true meaning this class allows the parameter definition's
allowed values to be empty. |
void |
setAllowedValues(List<Object> newAllowedValues)
This class allows the parameter definition's fixed values to be changed at runtime via this method (unlike its
parent class).
|
convertObject, getAllowedValues, getDefaultRenderingInfo, isValidValue, toStringequals, getDescription, getName, getRenderingInfo, getType, hashCode, isHidden, isNullable, isRequired, setDefaultRenderingAttributes, setRenderingInfopublic DynamicFixedValuesParameterDefinition(String name, String type, boolean required, boolean nullable, boolean hidden, Object[] allowed, String description) throws IllegalArgumentException
allowed can be
null or empty.public DynamicFixedValuesParameterDefinition(String name, String type, boolean hidden, List<Object> allowed, String description) throws IllegalArgumentException
allowed can be
null or empty.public DynamicFixedValuesParameterDefinition(String name, String type, boolean hidden, List<Object> allowed, String description, ParameterRenderingInformation renderingInfo) throws IllegalArgumentException
allowed can be
null or empty.public DynamicFixedValuesParameterDefinition(String name, String type, boolean required, boolean nullable, boolean hidden, List<Object> allowed, String description) throws IllegalArgumentException
allowed can be
null or empty.public DynamicFixedValuesParameterDefinition(String name, String type, boolean required, boolean nullable, boolean hidden, List<Object> allowed, String description, ParameterRenderingInformation renderingInfo) throws IllegalArgumentException
allowed can be
null or empty.protected boolean allowZeroFixedValues()
true meaning this class allows the parameter definition's
allowed values to be empty. This is because this class
allows that list of allowed values to be modified dynamically at runtime. You could therefore instantiate this
parameter definition with zero allowed values and later on add to that list (in the case when the allowed values
aren't known until after this object has been instantiated).allowZeroFixedValues in class FixedValuesParameterDefinitionfalseFixedValuesParameterDefinition.allowZeroFixedValues()public void setAllowedValues(List<Object> newAllowedValues) throws IllegalArgumentException
setAllowedValues in class FixedValuesParameterDefinitionnewAllowedValues - the new list of allowed valuesIllegalArgumentException - if failed to convert the values to the parameter definition's type or
allowedValues was null or empty and this parameter
definition object does not accept that (see FixedValuesParameterDefinition.allowZeroFixedValues()).FixedValuesParameterDefinition.setAllowedValues(List)Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.