public class MultipleChoiceInputRequest extends InputRequest
Constructor and Description |
---|
MultipleChoiceInputRequest(java.lang.String prompt,
java.util.Vector choices) |
Modifier and Type | Method and Description |
---|---|
java.util.Vector |
getChoices() |
boolean |
isInputValid()
Is the user input valid?
|
getDefaultValue, getInput, getPrompt, setDefaultValue, setInput
public MultipleChoiceInputRequest(java.lang.String prompt, java.util.Vector choices)
prompt
- The prompt to show to the user. Must not be null.choices
- holds all input values that are allowed.
Must not be null.public java.util.Vector getChoices()
public boolean isInputValid()
InputRequest
isInputValid
in class InputRequest