Package com.polarion.platform.jobs
Interface IJobDescriptor.IJobParameterChoiceType
- Enclosing interface:
IJobDescriptor
public static interface IJobDescriptor.IJobParameterChoiceType
Optional "flavor" type adding choice support to any type.
- Author:
- Stepan Roh, Polarion Software
-
Method Summary
Modifier and TypeMethodDescriptionReturn choice of given name (if any).Available choices.booleanWhether choices are restricted to those available or user may supply its own value.
-
Method Details
-
getChoices
List getChoices()Available choices.Order suggests how they should be presented in UI.
- Returns:
ListofIJobDescriptor.IJobParameterChoices (notnull)
-
getChoice
Return choice of given name (if any).- Parameters:
name- choice name- Returns:
- choice or
nullif unknown - Throws:
IllegalArgumentException- if name isnull
-
isRestricted
boolean isRestricted()Whether choices are restricted to those available or user may supply its own value.- Returns:
trueif only available choices are permitted,falseif any value is permitted
-