Class MultipleChoiceInputRequest


  • public class MultipleChoiceInputRequest
    extends InputRequest
    Encapsulates an input request.
    Since:
    Ant 1.5
    • Constructor Detail

      • MultipleChoiceInputRequest

        @Deprecated
        public MultipleChoiceInputRequest​(java.lang.String prompt,
                                          java.util.Vector<java.lang.String> choices)
        Parameters:
        prompt - The prompt to show to the user. Must not be null.
        choices - holds all input values that are allowed. Must not be null.
      • MultipleChoiceInputRequest

        public MultipleChoiceInputRequest​(java.lang.String prompt,
                                          java.util.Collection<java.lang.String> choices)
        Parameters:
        prompt - The prompt to show to the user. Must not be null.
        choices - holds all input values that are allowed. Must not be null.
    • Method Detail

      • getChoices

        public java.util.Vector<java.lang.String> getChoices()
        Returns:
        The possible values.
      • isInputValid

        public boolean isInputValid()
        Description copied from class: InputRequest
        Is the user input valid?
        Overrides:
        isInputValid in class InputRequest
        Returns:
        true if the input is one of the allowed values.