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 Type
    Method
    Description
    Retrieves the unique identifier of the survey question.
    int
    Retrieves the maximum allowed length for text-based questions.
    int
    Retrieves the maximum allowed value for numerical or range-based questions.
    int
    Retrieves the minimum allowed value for numerical or range-based questions.
    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.
    Retrieves the type of the survey question.
    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

      Retrieves the type of the survey question.
      Returns:
      The SurveyQuestionType of 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 SurveyChoiceOption objects.