Class Question


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

      Constructors 
      Constructor Description
      Question()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getConfiguration()
      Gets question configuration
      java.lang.String getId()
      Returns the identifier.
      int getPosition()
      Gets question position
      Questionnaire getQuestionnaire()
      Gets question questionnaire
      java.lang.String getTitle()
      Returns the title.
      lumis.service.questionnaire.QuestionnaireManager.QuestionType getType()
      Gets question type
      boolean isRequired()
      Check if question is required
      void setConfiguration​(java.lang.String configuration)
      Sets question configuration
      void setId​(java.lang.String id)
      Sets the identifier.
      void setPosition​(int position)
      Sets question position
      void setQuestionnaire​(Questionnaire questionnaire)
      Set question questionnaire
      void setRequired​(boolean required)
      Sets question requirement
      void setTitle​(java.lang.String title)
      Sets the title.
      void setType​(lumis.service.questionnaire.QuestionnaireManager.QuestionType type)
      Sets question type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Question

        public Question()
    • Method Detail

      • getId

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

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

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

        public void setTitle​(java.lang.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 java.lang.String getConfiguration()
        Gets question configuration

        *Only some types have configuration

        Returns:
        Since:
        8.1.0
      • setConfiguration

        public void setConfiguration​(java.lang.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