Interface IConfirmationProvider
- All Known Implementing Classes:
InteractiveConfirmationProvider
public interface IConfirmationProvider
A provider of user confirmation of some action.
- Since:
- 3.4
- Author:
- Christian W. Damus (CEA LIST)
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static interface
-
Method Summary
Modifier and TypeMethodDescriptionconfirm
(String subject, String message, Set<Confirmation> acceptable, Confirmation suggestion) Requests confirmation of some action/operation/consequence pertaining to asubject
and described by amessage
.boolean
-
Method Details
-
confirm
Confirmation confirm(String subject, String message, Set<Confirmation> acceptable, Confirmation suggestion) Requests confirmation of some action/operation/consequence pertaining to asubject
and described by amessage
. Any of the non-empty set ofacceptable
responses may be returned, and the requester may optionally provide asuggestion
of a suitable/safe default answer. -
isInteractive
boolean isInteractive()
-