Package org.apache.tools.ant.input
Class MultipleChoiceInputRequest
java.lang.Object
org.apache.tools.ant.input.InputRequest
org.apache.tools.ant.input.MultipleChoiceInputRequest
Encapsulates an input request.
- Since:
- Ant 1.5
- 
Constructor SummaryConstructorsConstructorDescriptionMultipleChoiceInputRequest(String prompt, Collection<String> choices) MultipleChoiceInputRequest(String prompt, Vector<String> choices) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIs the user input valid?Methods inherited from class org.apache.tools.ant.input.InputRequestgetDefaultValue, getInput, getPrompt, setDefaultValue, setInput
- 
Constructor Details- 
MultipleChoiceInputRequestDeprecated.UseMultipleChoiceInputRequest(String,Collection)instead- 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- 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 Details- 
getChoices
- 
isInputValidpublic boolean isInputValid()Description copied from class:InputRequestIs the user input valid?- Overrides:
- isInputValidin class- InputRequest
- Returns:
- true if the input is one of the allowed values.
 
 
- 
MultipleChoiceInputRequest(String,Collection)instead