org.olat.ims.qti.editor.beecom.objects
Class ChoiceQuestion

java.lang.Object
  extended by org.olat.ims.qti.editor.beecom.objects.Question
      extended by org.olat.ims.qti.editor.beecom.objects.ChoiceQuestion
All Implemented Interfaces:
QTIObject

public class ChoiceQuestion
extends Question
implements QTIObject

Author:
rkulow Handles both single choice and multiple choice., sandraroth kprim added

Field Summary
static java.lang.String BLOCK
           
static java.lang.String LIST
           
 
Fields inherited from class org.olat.ims.qti.editor.beecom.objects.Question
TYPE_ESSAY, TYPE_FIB, TYPE_KPRIM, TYPE_MC, TYPE_SC
 
Constructor Summary
ChoiceQuestion()
           
 
Method Summary
 void addToElement(org.dom4j.Element root)
          Build XML tree (presentation & resprocessing)
 java.lang.String getFlowLabelClass()
           
static ChoiceQuestion getInstance(org.dom4j.Element item)
          Called by ItemParser to fetch question/answers.
 void setFlowLabelClass(java.lang.String string)
          Set alignment of response items:
For horizontal alignment: Block
For vertical alignment: List
 
Methods inherited from class org.olat.ims.qti.editor.beecom.objects.Question
getHintText, getIdent, getLable, getMaxValue, getMinValue, getQuestion, getResponses, getSingleCorrectScore, getSolutionText, getType, isShuffle, isSingleCorrect, setHintText, setIdent, setLable, setMaxValue, setMaxValue, setMinValue, setMinValue, setQuestion, setResponses, setShuffle, setSingleCorrect, setSingleCorrectScore, setSingleCorrectScore, setSolutionText, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOCK

public static final java.lang.String BLOCK
See Also:
Constant Field Values

LIST

public static final java.lang.String LIST
See Also:
Constant Field Values
Constructor Detail

ChoiceQuestion

public ChoiceQuestion()
Method Detail

getInstance

public static ChoiceQuestion getInstance(org.dom4j.Element item)
Called by ItemParser to fetch question/answers.

Parameters:
item -
Returns:

addToElement

public void addToElement(org.dom4j.Element root)
Build XML tree (presentation & resprocessing)

Specified by:
addToElement in interface QTIObject

getFlowLabelClass

public java.lang.String getFlowLabelClass()
Returns:

setFlowLabelClass

public void setFlowLabelClass(java.lang.String string)
Set alignment of response items:
For horizontal alignment: Block
For vertical alignment: List

Parameters:
string -