-
public final class QuestionUi.SingleChoiceQuestion extends QuestionUi.ChoiceQuestions
-
-
Field Summary
Fields Modifier and Type Field Description private StringwithTitleprivate List<String>optionsprivate IntegercorrectOptionIndexprivate Longindexprivate BooleanrequiredToAnswerprivate LongtotalQuestionsprivate List<Integer>selectionsprivate final IntegerviewType
-
Method Summary
Modifier and Type Method Description StringgetWithTitle()UnitsetWithTitle(String withTitle)List<String>getOptions()UnitsetOptions(List<String> options)final IntegergetCorrectOptionIndex()final UnitsetCorrectOptionIndex(Integer correctOptionIndex)LonggetIndex()UnitsetIndex(Long index)BooleangetRequiredToAnswer()UnitsetRequiredToAnswer(Boolean requiredToAnswer)LonggetTotalQuestions()UnitsetTotalQuestions(Long totalQuestions)List<Integer>getSelections()UnitsetSelections(List<Integer> selections)IntegergetViewType()BooleanisValid(Boolean isPoll)-
-
Method Detail
-
getWithTitle
String getWithTitle()
-
setWithTitle
Unit setWithTitle(String withTitle)
-
getOptions
List<String> getOptions()
-
setOptions
Unit setOptions(List<String> options)
-
getCorrectOptionIndex
final Integer getCorrectOptionIndex()
-
setCorrectOptionIndex
final Unit setCorrectOptionIndex(Integer correctOptionIndex)
-
getRequiredToAnswer
Boolean getRequiredToAnswer()
-
setRequiredToAnswer
Unit setRequiredToAnswer(Boolean requiredToAnswer)
-
getTotalQuestions
Long getTotalQuestions()
-
setTotalQuestions
Unit setTotalQuestions(Long totalQuestions)
-
getSelections
List<Integer> getSelections()
-
setSelections
Unit setSelections(List<Integer> selections)
-
getViewType
Integer getViewType()
-
-
-
-