org.telscenter.pas.util
Class QTIUtils
java.lang.Object
org.telscenter.pas.util.QTIUtils
public class QTIUtils
- extends java.lang.Object
- Author:
- aperritano
|
Method Summary |
static void |
addBlockInteraction(Assessment assmtBean,
BlockInteraction interaction,
java.lang.String keyString,
int rimIndex,
java.util.List<ResponseDeclaration> responseDeclarations)
|
static void |
addChoice(BlockInteraction interaction,
SimpleChoice<java.lang.String> newSimpleChoice,
int newChoiceIndex)
|
static void |
addJaxbBlockInteraction(Assessment assmtBean,
BlockInteraction interaction,
java.lang.String keyString,
int rimIndex,
java.util.List<ResponseDeclaration> responseDeclarations)
|
static boolean |
isCorrectAnswer(ResponseDeclaration rd,
java.lang.String answerId)
Checks the answerID vs the correct answer id in response declaration |
static void |
removeBlockInteraction(AssessmentItem assItem,
BlockInteraction interaction)
|
static void |
removeChoice(BlockInteraction interaction,
SimpleChoice<java.lang.String> simpleChoice)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESPONSE_ID
public static final java.lang.String RESPONSE_ID
- See Also:
- Constant Field Values
SIMPLE_CHOICE
public static final java.lang.String SIMPLE_CHOICE
- See Also:
- Constant Field Values
QTIUtils
public QTIUtils()
removeBlockInteraction
public static void removeBlockInteraction(AssessmentItem assItem,
BlockInteraction interaction)
addChoice
public static void addChoice(BlockInteraction interaction,
SimpleChoice<java.lang.String> newSimpleChoice,
int newChoiceIndex)
- Parameters:
interaction - newSimpleChoice - newChoiceIndex -
removeChoice
public static void removeChoice(BlockInteraction interaction,
SimpleChoice<java.lang.String> simpleChoice)
- Parameters:
interaction - simpleChoice -
addBlockInteraction
public static void addBlockInteraction(Assessment assmtBean,
BlockInteraction interaction,
java.lang.String keyString,
int rimIndex,
java.util.List<ResponseDeclaration> responseDeclarations)
- Parameters:
assmtBean - bi - string - rimIndex - responseDeclarations -
addJaxbBlockInteraction
public static void addJaxbBlockInteraction(Assessment assmtBean,
BlockInteraction interaction,
java.lang.String keyString,
int rimIndex,
java.util.List<ResponseDeclaration> responseDeclarations)
- Parameters:
assmtBean - bi - string - rimIndex - responseDeclarations -
isCorrectAnswer
public static boolean isCorrectAnswer(ResponseDeclaration rd,
java.lang.String answerId)
- Checks the answerID vs the correct answer id in response declaration
- Parameters:
rd - answerId -
- Returns:
Copyright © 2004-2008 TELS Center. All Rights Reserved.