Interface CustomEnumParameter.Builder
- All Superinterfaces:
CustomEnumParameter.Setter
,RichPageParameter.Builder<CustomEnumParameter,
CustomEnumParameter.Builder>
- Enclosing interface:
- CustomEnumParameter
public static interface CustomEnumParameter.Builder
extends CustomEnumParameter.Setter, RichPageParameter.Builder<CustomEnumParameter,CustomEnumParameter.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionaddEnumItem
(String value, String label) Adds an enumeration item.allowMultipleValues
(boolean value) allowNoValue
(boolean allow) Adds 'not selected' option.singleValue
(String value) Overrides values set byCustomEnumParameter.Setter.values(Iterable)
orCustomEnumParameter.Setter.values(String...)
methods.Overrides values set byCustomEnumParameter.Setter.values(String...)
orCustomEnumParameter.Setter.singleValue(String)
methods.Overrides values set byCustomEnumParameter.Setter.values(Iterable)
orCustomEnumParameter.Setter.singleValue(String)
methods.Methods inherited from interface com.polarion.alm.shared.api.model.rp.parameter.CustomEnumParameter.Setter
clear
Methods inherited from interface com.polarion.alm.shared.api.model.rp.parameter.RichPageParameter.Builder
build, dependencySource, dependencyTarget
-
Method Details
-
addEnumItem
Description copied from interface:CustomEnumParameter.Setter
Adds an enumeration item.- Specified by:
addEnumItem
in interfaceCustomEnumParameter.Setter
- Parameters:
value
- id of the option, selected value will be returned inCustomEnumParameter.values()
label
- that will be shown to user, if label isnull
,value
will be used as label- Returns:
- the same instance to allow method chaining.
-
allowNoValue
Description copied from interface:CustomEnumParameter.Setter
Adds 'not selected' option.- Specified by:
allowNoValue
in interfaceCustomEnumParameter.Setter
-
allowMultipleValues
- Specified by:
allowMultipleValues
in interfaceCustomEnumParameter.Setter
-
values
Description copied from interface:CustomEnumParameter.Setter
Overrides values set byCustomEnumParameter.Setter.values(String...)
orCustomEnumParameter.Setter.singleValue(String)
methods.- Specified by:
values
in interfaceCustomEnumParameter.Setter
- Returns:
- the same instance to allow method chaining.
-
values
Description copied from interface:CustomEnumParameter.Setter
Overrides values set byCustomEnumParameter.Setter.values(Iterable)
orCustomEnumParameter.Setter.singleValue(String)
methods.- Specified by:
values
in interfaceCustomEnumParameter.Setter
- Returns:
- the same instance to allow method chaining.
-
singleValue
Description copied from interface:CustomEnumParameter.Setter
Overrides values set byCustomEnumParameter.Setter.values(Iterable)
orCustomEnumParameter.Setter.values(String...)
methods.- Specified by:
singleValue
in interfaceCustomEnumParameter.Setter
- Returns:
- the same instance to allow method chaining.
-