com.atlassian.jira.configurator.console
Class ConsoleToolkit

java.lang.Object
  extended by com.atlassian.jira.configurator.console.ConsoleToolkit

public class ConsoleToolkit
extends Object


Constructor Summary
ConsoleToolkit(ConsoleProvider console)
           
 
Method Summary
<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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleToolkit

public ConsoleToolkit(@Nonnull
                      ConsoleProvider console)
Method Detail

menuItemAndValue

public String menuItemAndValue(String label,
                               Object value)

showMenuItem

public void showMenuItem(char key,
                         String label)

showDefaultMenuItem

public void showDefaultMenuItem(char key,
                                String label)

showMenuItem

public void showMenuItem(char key,
                         String label,
                         char defaultKey)

readMenuChoice

public char readMenuChoice(String menuName)
                    throws IOException
Throws:
IOException

askForPassword

public <T> T askForPassword(@Nonnull
                            String label,
                            @Nonnull
                            Validator<T> validator)
                 throws IOException
Throws:
IOException

askFor

public <T> T askFor(@Nonnull
                    String label,
                    @Nonnull
                    Validator<T> validator)
         throws IOException
Throws:
IOException


Copyright © 2002-2014 Atlassian. All Rights Reserved.