Class ConfirmClientAnswer
java.lang.Object
ch.tocco.nice2.web.core.api.clientquestion.ConfirmClientAnswer
- All Implemented Interfaces:
ClientAnswer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the answer as selected by the user.static ConfirmClientAnswer
no()
void
void
setQuestionId
(String id) static ConfirmClientAnswer
yes()
-
Constructor Details
-
ConfirmClientAnswer
public ConfirmClientAnswer() -
ConfirmClientAnswer
-
-
Method Details
-
setAnswer
-
getAnswer
This method returns the answer as selected by the user. Returns true if option "YES" was selected, false otherwise, unless the flow of control did not return to the server.- Returns:
- the answer as selected by the user.
-
setQuestionId
- Specified by:
setQuestionId
in interfaceClientAnswer
-
getQuestionId
- Specified by:
getQuestionId
in interfaceClientAnswer
- Returns:
- the id-
String
of the question this answer is associated with.
-
yes
-
no
-