Package lumis.service.questionnaire
Class Question
- java.lang.Object
-
- lumis.service.questionnaire.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 Summary
Constructors Constructor Description Question()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfiguration()
Gets question configurationString
getId()
Returns the identifier.int
getPosition()
Gets question positionQuestionnaire
getQuestionnaire()
Gets question questionnaireString
getTitle()
Returns the title.lumis.service.questionnaire.QuestionnaireManager.QuestionType
getType()
Gets question typeboolean
isRequired()
Check if question is requiredvoid
setConfiguration(String configuration)
Sets question configurationvoid
setId(String id)
Sets the identifier.void
setPosition(int position)
Sets question positionvoid
setQuestionnaire(Questionnaire questionnaire)
Set question questionnairevoid
setRequired(boolean required)
Sets question requirementvoid
setTitle(String title)
Sets the title.void
setType(lumis.service.questionnaire.QuestionnaireManager.QuestionType type)
Sets question type
-
-
-
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
-
-