Package com.flowable.questionnaire.api
Interface Question
- All Known Subinterfaces:
QuestionEntity
- All Known Implementing Classes:
QuestionEntityImpl
public interface Question
The DTO for a single question as part of a
Questionnaire
.- Author:
- Filip Hrisafov, Micha Kiener
-
Method Summary
Modifier and Type Method Description java.util.List<Answer>
getAnswers()
Returns a list of possible answers for this question in the exact order they should be rendered.java.lang.String
getContent()
The optional content of the question.java.lang.String
getId()
Returns the unique id of this question.java.util.Map<java.lang.String,java.lang.Object>
getParameters()
The parameters that were used when answering the question.Answer
getSelectedAnswer()
Optionally returns the selected answer, if this question was answered already.java.lang.String
getType()
Returns the type (typically an enumeration) of the question.
-
Method Details
-
getId
java.lang.String getId()Returns the unique id of this question.- Returns:
- the id of the question
-
getType
java.lang.String getType()Returns the type (typically an enumeration) of the question.- Returns:
- the type of this question
-
getContent
java.lang.String getContent()The optional content of the question.- Returns:
- the optional content of the question object, might be
null
-
getParameters
java.util.Map<java.lang.String,java.lang.Object> getParameters()The parameters that were used when answering the question.- Returns:
- the optional parameters for the question, might be empty or even
null
-
getAnswers
java.util.List<Answer> getAnswers()Returns a list of possible answers for this question in the exact order they should be rendered.- Returns:
- the list of possible answers
-
getSelectedAnswer
Answer getSelectedAnswer()Optionally returns the selected answer, if this question was answered already.- Returns:
- the selected answer, if this question was answered,
null
otherwise
-