Class Question


  • public class Question
    extends Object
    Question.
    Since:
    8.1.0
    Version:
    $Revision: 17592 $ $Date: 2015-07-17 11:19:32 -0300 (Fri, 17 Jul 2015) $
    • Constructor Detail

      • Question

        public Question()
    • Method Detail

      • getId

        public String getId()
        Returns the identifier.
        Returns:
        the identifier.
        Since:
        8.1.0
      • setId

        public void setId​(String id)
        Sets the identifier.
        Parameters:
        id - the identifier.
        Since:
        8.1.0
      • getTitle

        public String getTitle()
        Returns the title.
        Returns:
        the title.
        Since:
        8.1.0
      • setTitle

        public void setTitle​(String title)
        Sets the title.
        Parameters:
        title - the title.
        Since:
        8.1.0
      • getType

        public lumis.service.questionnaire.QuestionnaireManager.QuestionType getType()
        Gets question type
        Returns:
        Since:
        8.1.0
      • setType

        public void setType​(lumis.service.questionnaire.QuestionnaireManager.QuestionType type)
        Sets question type
        Parameters:
        type -
        Since:
        8.1.0
      • getConfiguration

        public String getConfiguration()
        Gets question configuration

        *Only some types have configuration

        Returns:
        Since:
        8.1.0
      • setConfiguration

        public void setConfiguration​(String configuration)
        Sets question configuration
        Parameters:
        configuration -
        Since:
        8.1.0
      • getPosition

        public int getPosition()
        Gets question position
        Returns:
        Since:
        8.1.0
      • setPosition

        public void setPosition​(int position)
        Sets question position
        Parameters:
        position -
        Since:
        8.1.0
      • isRequired

        public boolean isRequired()
        Check if question is required
        Returns:
        Since:
        8.1.0
      • setRequired

        public void setRequired​(boolean required)
        Sets question requirement
        Parameters:
        required -
        Since:
        8.1.0
      • getQuestionnaire

        public Questionnaire getQuestionnaire()
        Gets question questionnaire
        Returns:
        Since:
        8.1.0
      • setQuestionnaire

        public void setQuestionnaire​(Questionnaire questionnaire)
        Set question questionnaire
        Parameters:
        questionnaire -
        Since:
        8.1.0