Class ConfirmClientAnswer

java.lang.Object
ch.tocco.nice2.web.core.api.clientquestion.ConfirmClientAnswer
All Implemented Interfaces:
ClientAnswer

public class ConfirmClientAnswer extends Object implements ClientAnswer
  • Constructor Details

    • ConfirmClientAnswer

      public ConfirmClientAnswer()
    • ConfirmClientAnswer

      public ConfirmClientAnswer(Boolean answer, String questionId)
  • Method Details

    • setAnswer

      public void setAnswer(Boolean answer)
    • getAnswer

      public Boolean 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

      public void setQuestionId(String id)
      Specified by:
      setQuestionId in interface ClientAnswer
    • getQuestionId

      public String getQuestionId()
      Specified by:
      getQuestionId in interface ClientAnswer
      Returns:
      the id-String of the question this answer is associated with.
    • yes

      public static ConfirmClientAnswer yes()
    • no

      public static ConfirmClientAnswer no()