public class BatchUserInteraction extends java.lang.Object implements UserInteractionStrategy
| Constructor and Description |
|---|
BatchUserInteraction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ask(java.lang.String prompt,
boolean dflt)
Ask something to the user (the response must be a
boolean.) |
java.lang.String |
ask(java.lang.String prompt,
java.lang.String dflt)
Ask something to the user (the response must be a
String.) |
void |
logInfo(java.lang.String msg)
A log message, "info" level.
|
void |
messageError(java.lang.String msg)
A message to display to the user, "error" level.
|
void |
messageInfo(java.lang.String msg)
A message to display to the user, "info" level.
|
public void messageInfo(java.lang.String msg)
throws PackageException
UserInteractionStrategymessageInfo in interface UserInteractionStrategymsg - The message to display.PackageException - if an error occurspublic void messageError(java.lang.String msg)
throws PackageException
UserInteractionStrategymessageError in interface UserInteractionStrategymsg - The message to display.PackageException - if an error occurspublic void logInfo(java.lang.String msg)
throws PackageException
UserInteractionStrategylogInfo in interface UserInteractionStrategymsg - The log message.PackageException - if an error occurspublic boolean ask(java.lang.String prompt,
boolean dflt)
throws PackageException
UserInteractionStrategyboolean.)ask in interface UserInteractionStrategyprompt - The prompt to display to the user (to ask the question.)dflt - The default value to propose.PackageException - if an error occurspublic java.lang.String ask(java.lang.String prompt,
java.lang.String dflt)
throws PackageException
UserInteractionStrategyString.)ask in interface UserInteractionStrategyprompt - The prompt to display to the user (to ask the question.)dflt - The default value to propose.PackageException - if an error occursCopyright © 2015-2023 EXPath. All Rights Reserved