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 Details

    • getChoices

      List getChoices()
      Available choices.

      Order suggests how they should be presented in UI.

      Returns:
      List of IJobDescriptor.IJobParameterChoices (not null)
    • getChoice

      Return choice of given name (if any).
      Parameters:
      name - choice name
      Returns:
      choice or null if unknown
      Throws:
      IllegalArgumentException - if name is null
    • isRestricted

      boolean isRestricted()
      Whether choices are restricted to those available or user may supply its own value.
      Returns:
      true if only available choices are permitted, false if any value is permitted