Constructor and Description |
---|
DefaultPrompter(org.codehaus.plexus.PlexusContainer container) |
Modifier and Type | Method and Description |
---|---|
String |
prompt(String message,
List<String> possibleValues,
String defaultReply)
Prompts the user for a string using a list of possible values and a default reply.
|
String |
promptForPassword(String message)
Prompts the user for a password.
|
void |
showMessage(String message)
Displays a message to the user.
|
@Inject public DefaultPrompter(org.codehaus.plexus.PlexusContainer container)
public String prompt(String message, List<String> possibleValues, String defaultReply) throws PrompterException
Prompter
prompt
in interface Prompter
message
- the message to displaypossibleValues
- the list of possible valuesdefaultReply
- the default reply valuePrompterException
- if an exception occurspublic String promptForPassword(String message) throws PrompterException
Prompter
promptForPassword
in interface Prompter
message
- the message to displayPrompterException
- if an exception occurspublic void showMessage(String message) throws PrompterException
Prompter
showMessage
in interface Prompter
message
- the message to displayPrompterException
- if an exception occursCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.