Package lumis.service.questionnaire
Class Question
- java.lang.Object
-
- lumis.service.questionnaire.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 configurationjava.lang.String
getId()
Returns the identifier.int
getPosition()
Gets question positionQuestionnaire
getQuestionnaire()
Gets question questionnairejava.lang.String
getTitle()
Returns the title.lumis.service.questionnaire.QuestionnaireManager.QuestionType
getType()
Gets question typeboolean
isRequired()
Check if question is requiredvoid
setConfiguration(java.lang.String configuration)
Sets question configurationvoid
setId(java.lang.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(java.lang.String title)
Sets the title.void
setType(lumis.service.questionnaire.QuestionnaireManager.QuestionType type)
Sets question type
-
-
-
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
-
-