Package cx.syndeo.entities.surveys
Interface SurveyQuestion
public interface SurveyQuestion
Represents a single question within a survey.
This interface defines the common properties and behaviors expected of any survey question,
regardless of its specific type.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Retrieves the unique identifier of the survey question.intRetrieves the maximum allowed length for text-based questions.intRetrieves the maximum allowed value for numerical or range-based questions.intRetrieves the minimum allowed value for numerical or range-based questions.getName()Retrieves the name of the survey question.Retrieves a list of predefined choice options for multiple-choice or dropdown questions.Retrieves the actual question text.getType()Retrieves the type of the survey question.getUuid()Retrieves the UUID (Universally Unique Identifier) of the survey question.
-
Method Details
-
getId
Long getId()Retrieves the unique identifier of the survey question.- Returns:
- The ID of the survey question.
-
getUuid
UUID getUuid()Retrieves the UUID (Universally Unique Identifier) of the survey question.- Returns:
- The UUID of the survey question.
-
getName
String getName()Retrieves the name of the survey question.- Returns:
- The name of the survey question.
-
getType
SurveyQuestionType getType()Retrieves the type of the survey question.- Returns:
- The
SurveyQuestionTypeof the survey question.
-
getQuestion
String getQuestion()Retrieves the actual question text.- Returns:
- The question text.
-
getMinValue
int getMinValue()Retrieves the minimum allowed value for numerical or range-based questions.- Returns:
- The minimum value.
-
getMaxValue
int getMaxValue()Retrieves the maximum allowed value for numerical or range-based questions.- Returns:
- The maximum value.
-
getMaxLength
int getMaxLength()Retrieves the maximum allowed length for text-based questions.- Returns:
- The maximum length.
-
getOptions
List<SurveyChoiceOption> getOptions()Retrieves a list of predefined choice options for multiple-choice or dropdown questions.- Returns:
- A list of
SurveyChoiceOptionobjects.
-