org.sakaiproject.tool.assessment.samlite.api
Class Question

java.lang.Object
  extended by org.sakaiproject.tool.assessment.samlite.api.Question

public class Question
extends Object


Field Summary
static int FILL_IN_THE_BLANK_QUESTION
           
static int MULTIPLE_CHOICE_MULTIPLE_ANSWER_QUESTION
           
static int MULTIPLE_CHOICE_QUESTION
           
static int SHORT_ESSAY_QUESTION
           
static int TRUE_FALSE_QUESTION
           
static int UNDEFINED_QUESTION
           
 
Constructor Summary
Question()
           
 
Method Summary
 void addAnswer(String id, String text, boolean isCorrect)
           
 void append(String questionSegment)
           
 List getAnswers()
           
 String getCorrectAnswer()
           
 String getQuestion()
           
 int getQuestionNumber()
           
 String getQuestionPoints()
           
 int getQuestionType()
           
 String getQuestionTypeAsString()
           
 boolean hasPoints()
           
 void setAnswers(List answers)
           
 void setCorrectAnswer(String correctAnswer)
           
 void setQuestionNumber(int questionNumber)
           
 void setQuestionPoints(String questionPoints)
           
 void setQuestionType(int questionType)
           
 void setQuestionTypeAsString(String questionTypeAsString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED_QUESTION

public static final int UNDEFINED_QUESTION
See Also:
Constant Field Values

MULTIPLE_CHOICE_QUESTION

public static final int MULTIPLE_CHOICE_QUESTION
See Also:
Constant Field Values

MULTIPLE_CHOICE_MULTIPLE_ANSWER_QUESTION

public static final int MULTIPLE_CHOICE_MULTIPLE_ANSWER_QUESTION
See Also:
Constant Field Values

FILL_IN_THE_BLANK_QUESTION

public static final int FILL_IN_THE_BLANK_QUESTION
See Also:
Constant Field Values

TRUE_FALSE_QUESTION

public static final int TRUE_FALSE_QUESTION
See Also:
Constant Field Values

SHORT_ESSAY_QUESTION

public static final int SHORT_ESSAY_QUESTION
See Also:
Constant Field Values
Constructor Detail

Question

public Question()
Method Detail

addAnswer

public void addAnswer(String id,
                      String text,
                      boolean isCorrect)

getAnswers

public List getAnswers()

setAnswers

public void setAnswers(List answers)

getCorrectAnswer

public String getCorrectAnswer()

setCorrectAnswer

public void setCorrectAnswer(String correctAnswer)

getQuestion

public String getQuestion()

append

public void append(String questionSegment)

getQuestionNumber

public int getQuestionNumber()

setQuestionNumber

public void setQuestionNumber(int questionNumber)

getQuestionPoints

public String getQuestionPoints()

setQuestionPoints

public void setQuestionPoints(String questionPoints)

hasPoints

public boolean hasPoints()

getQuestionType

public int getQuestionType()

setQuestionType

public void setQuestionType(int questionType)

getQuestionTypeAsString

public String getQuestionTypeAsString()

setQuestionTypeAsString

public void setQuestionTypeAsString(String questionTypeAsString)


Copyright © 2005-2012 Sakai Project. All Rights Reserved.