public class MultipleChoiceInputRequest extends InputRequest
Constructor and Description |
---|
MultipleChoiceInputRequest(java.lang.String prompt,
java.util.Vector<java.lang.String> choices) |
Modifier and Type | Method and Description |
---|---|
java.util.Vector<java.lang.String> |
getChoices() |
boolean |
isInputValid()
Is the user input valid?
|
getDefaultValue, getInput, getPrompt, setDefaultValue, setInput
public MultipleChoiceInputRequest(java.lang.String prompt, java.util.Vector<java.lang.String> 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<java.lang.String> getChoices()
public boolean isInputValid()
InputRequest
isInputValid
in class InputRequest