public class ConsoleToolkit extends Object
| Constructor and Description |
|---|
ConsoleToolkit(ConsoleProvider console) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
askFor(String label,
Validator<T> validator) |
<T> T |
askForPassword(String label,
Validator<T> validator) |
String |
menuItemAndValue(String label,
Object value) |
char |
readMenuChoice(String menuName) |
void |
showDefaultMenuItem(char key,
String label) |
void |
showMenuItem(char key,
String label) |
void |
showMenuItem(char key,
String label,
char defaultKey) |
public ConsoleToolkit(@Nonnull ConsoleProvider console)
public void showMenuItem(char key,
String label)
public void showDefaultMenuItem(char key,
String label)
public void showMenuItem(char key,
String label,
char defaultKey)
public char readMenuChoice(String menuName) throws IOException
IOExceptionpublic <T> T askForPassword(@Nonnull String label, @Nonnull Validator<T> validator) throws IOException
IOExceptionpublic <T> T askFor(@Nonnull String label, @Nonnull Validator<T> validator) throws IOException
IOExceptionCopyright © 2002-2021 Atlassian. All Rights Reserved.