public class InteractiveConfirmationProvider extends Object implements IConfirmationProvider
Modifier and Type | Class and Description |
---|---|
static class |
InteractiveConfirmationProvider.Factory |
IConfirmationProvider.Provider
Constructor and Description |
---|
InteractiveConfirmationProvider() |
Modifier and Type | Method and Description |
---|---|
Confirmation |
confirm(String subject,
String message,
Set<Confirmation> acceptable,
Confirmation suggestion)
Requests confirmation of some action/operation/consequence pertaining to a
subject and described by a message . |
boolean |
isInteractive() |
public boolean isInteractive()
isInteractive
in interface IConfirmationProvider
public Confirmation confirm(String subject, String message, Set<Confirmation> acceptable, Confirmation suggestion)
IConfirmationProvider
subject
and described by a message
. Any of the non-empty
set of acceptable
responses may be returned, and the requester
may optionally provide a suggestion
of a suitable/safe default
answer.confirm
in interface IConfirmationProvider
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.