public interface ConsoleInteractor
Modifier and Type | Interface and Description |
---|---|
static interface |
ConsoleInteractor.AnswerValidator |
static class |
ConsoleInteractor.DisplayMode |
Modifier and Type | Method and Description |
---|---|
void |
blankLine() |
String |
expectAnswerWithRetry(ConsoleInteractor.AnswerValidator answersValidator)
If answer is not valid, it will offer retry.
|
String |
expectAnyAnswer() |
String |
expectAnyNotBlankAnswer() |
void |
expectYes()
Unless user answer yes or y, the program will terminate with exception.
|
ConsoleInteractor |
printf(ConsoleInteractor.DisplayMode mode,
String printfFmt,
Object... args) |
ConsoleInteractor |
printf(String printfFmt,
Object... args)
printf in Information mode.
|
ConsoleInteractor |
printfln(ConsoleInteractor.DisplayMode mode,
String printfFmt,
Object... args) |
ConsoleInteractor |
printfln(String printfFmt,
Object... args)
prinf plus a new line in Information mode.
|
void expectYes()
String expectAnswerWithRetry(ConsoleInteractor.AnswerValidator answersValidator)
ConsoleInteractor printf(String printfFmt, Object... args)
ConsoleInteractor printfln(String printfFmt, Object... args)
ConsoleInteractor printf(ConsoleInteractor.DisplayMode mode, String printfFmt, Object... args)
ConsoleInteractor printfln(ConsoleInteractor.DisplayMode mode, String printfFmt, Object... args)
String expectAnyNotBlankAnswer()
String expectAnyAnswer()
void blankLine()
Copyright © 2015 Zanata Project. All rights reserved.