public abstract class AbstractMultiChoicesHelper extends Object implements ChoicesHelper
ChoicesHelper based on a map of choices| Modifier and Type | Field and Description |
|---|---|
protected SortedMap<String,String> |
choices |
| Constructor and Description |
|---|
AbstractMultiChoicesHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getChoice(String key)
Every implementation should consider that invalid choices lead to null values
that will be simply handled in a while condition
|
SortedMap<String,String> |
getChoices() |
String |
getChoicesDisplaying() |
String |
getFullMessage() |
protected abstract String |
getQuestion() |
protected abstract void |
initialize() |
protected abstract void initialize()
public String getChoice(String key)
ChoicesHelpergetChoice in interface ChoicesHelperpublic String getChoicesDisplaying()
protected abstract String getQuestion()
public String getFullMessage()
getFullMessage in interface ChoicesHelperCopyright © 2018. All rights reserved.