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

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

public class EssayQuestion
extends Question
implements QTIObject

Initial Date: Oct 10, 2003

Author:
gnaegi Comment: Representatio of an essay question type. An essay consists of a question (material) and a response (response_str) element. The essay question type has no respconditions at all, it can only be used in the context of a survey.

Field Summary
 
Fields inherited from class org.olat.ims.qti.editor.beecom.objects.Question
TYPE_ESSAY, TYPE_FIB, TYPE_KPRIM, TYPE_MC, TYPE_SC
 
Constructor Summary
EssayQuestion()
           
 
Method Summary
 void addToElement(org.dom4j.Element root)
          Render XML
 EssayResponse getEssayResponse()
          Returns the essay response.
static EssayQuestion getInstance(org.dom4j.Element item)
          Called by ItemParser
 
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
 

Constructor Detail

EssayQuestion

public EssayQuestion()
Method Detail

getInstance

public static EssayQuestion getInstance(org.dom4j.Element item)
Called by ItemParser

Parameters:
item -
Returns:

addToElement

public void addToElement(org.dom4j.Element root)
Render XML

Specified by:
addToElement in interface QTIObject

getEssayResponse

public EssayResponse getEssayResponse()
Returns the essay response. In the QTI editor it is only possible to have one response in the essay question type

Returns:
the essay response