Class AbstractMultiChoicesHelper
java.lang.Object
org.sklsft.generator.bash.arguments.AbstractMultiChoicesHelper
- All Implemented Interfaces:
ChoicesHelper
- Direct Known Subclasses:
DatabaseEngineChoicesHelper
,SkeletonChoicesHelper
,TrueFalseChoicesHelper
An abstract implementation of
We have to override initialization to fetch the possible values
Be careful that the access to choices is not thread-safe.
We do not consider multi-threading
ChoicesHelper
based on a map of choicesWe have to override initialization to fetch the possible values
Be careful that the access to choices is not thread-safe.
We do not consider multi-threading
- Author:
- Nicolas Thibault
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvery implementation should consider that invalid choices lead to null values that will be simply handled in a while conditionprotected abstract String
protected abstract void
-
Field Details
-
choices
-
-
Constructor Details
-
AbstractMultiChoicesHelper
public AbstractMultiChoicesHelper()
-
-
Method Details
-
initialize
protected abstract void initialize() -
getChoices
-
getChoice
Description copied from interface:ChoicesHelper
Every implementation should consider that invalid choices lead to null values that will be simply handled in a while condition- Specified by:
getChoice
in interfaceChoicesHelper
- Parameters:
key
-- Returns:
-
getChoicesDisplaying
-
getQuestion
-
getFullMessage
- Specified by:
getFullMessage
in interfaceChoicesHelper
-