Class DefaultPrompter
java.lang.Object
org.codehaus.plexus.components.interactivity.DefaultPrompter
- All Implemented Interfaces:
Prompter
Default prompter.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
formatMessage
(String message, List<String> possibleValues, String defaultReply) promptForPassword
(String message) void
showMessage
(String message) private void
writePrompt
(String message)
-
Field Details
-
outputHandler
-
inputHandler
-
-
Constructor Details
-
DefaultPrompter
-
-
Method Details
-
prompt
- Specified by:
prompt
in interfacePrompter
- Throws:
PrompterException
-
prompt
- Specified by:
prompt
in interfacePrompter
- Throws:
PrompterException
-
prompt
public String prompt(String message, List<String> possibleValues, String defaultReply) throws PrompterException - Specified by:
prompt
in interfacePrompter
- Throws:
PrompterException
-
prompt
- Specified by:
prompt
in interfacePrompter
- Throws:
PrompterException
-
promptForPassword
- Specified by:
promptForPassword
in interfacePrompter
- Throws:
PrompterException
-
formatMessage
-
writePrompt
- Throws:
IOException
-
showMessage
- Specified by:
showMessage
in interfacePrompter
- Throws:
PrompterException
-