org.telscenter.pas.util
Class JaxbQtiCreationUtils

java.lang.Object
  extended by org.telscenter.pas.util.JaxbQtiCreationUtils

public class JaxbQtiCreationUtils
extends java.lang.Object

Creation of jaxb element utils

Author:
aperritano

Constructor Summary
JaxbQtiCreationUtils()
          Constructor
 
Method Summary
static void addChoice(net.sf.sail.jaxb.extension.BlockInteractionType interaction, org.imsglobal.xsd.imsqti_v2p0.SimpleChoiceType newJaxbSimpleChoice, int newChoiceIndex, org.imsglobal.xsd.imsqti_v2p0.ResponseDeclarationType responseDeclarationType)
          Adds a simple choice to the list of choices
static void addInlineFeedbackToChoice(org.imsglobal.xsd.imsqti_v2p0.SimpleChoiceType choice, java.lang.String choiceId)
           
static net.sf.sail.jaxb.extension.BlockInteractionType addJaxbBlockInteraction(JaxbQtiStep assmtBean, java.lang.String keyString, int rimIndex, java.util.List<org.imsglobal.xsd.imsqti_v2p0.ResponseDeclarationType> responseDeclarations)
           
static boolean isCorrectAnswer(org.imsglobal.xsd.imsqti_v2p0.ResponseDeclarationType rd, java.lang.String answerId)
          Checks the answerID vs the correct answer id in response declaration
static void removeBlockInteraction(org.imsglobal.xsd.imsqti_v2p0.AssessmentItemType assessmentItem, net.sf.sail.jaxb.extension.BlockInteractionType interaction)
          Removes the interaction from the list of interactions
static void removeChoice(net.sf.sail.jaxb.extension.BlockInteractionType interaction, org.imsglobal.xsd.imsqti_v2p0.SimpleChoiceType simpleChoice)
          Removes a simple choice from the list of choices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxbQtiCreationUtils

public JaxbQtiCreationUtils()
Constructor

Method Detail

removeBlockInteraction

public static void removeBlockInteraction(org.imsglobal.xsd.imsqti_v2p0.AssessmentItemType assessmentItem,
                                          net.sf.sail.jaxb.extension.BlockInteractionType interaction)
Removes the interaction from the list of interactions

Parameters:
assessmentItem -
interaction -

addChoice

public static void addChoice(net.sf.sail.jaxb.extension.BlockInteractionType interaction,
                             org.imsglobal.xsd.imsqti_v2p0.SimpleChoiceType newJaxbSimpleChoice,
                             int newChoiceIndex,
                             org.imsglobal.xsd.imsqti_v2p0.ResponseDeclarationType responseDeclarationType)
Adds a simple choice to the list of choices

Parameters:
interaction -
newJaxbSimpleChoice -
newChoiceIndex -
responseDeclarationType -

removeChoice

public static void removeChoice(net.sf.sail.jaxb.extension.BlockInteractionType interaction,
                                org.imsglobal.xsd.imsqti_v2p0.SimpleChoiceType simpleChoice)
Removes a simple choice from the list of choices

Parameters:
interaction -
simpleChoice -

addJaxbBlockInteraction

public static net.sf.sail.jaxb.extension.BlockInteractionType addJaxbBlockInteraction(JaxbQtiStep assmtBean,
                                                                                      java.lang.String keyString,
                                                                                      int rimIndex,
                                                                                      java.util.List<org.imsglobal.xsd.imsqti_v2p0.ResponseDeclarationType> responseDeclarations)
Parameters:
assmtBean -
bi -
string -
rimIndex -
responseDeclarations -

isCorrectAnswer

public static boolean isCorrectAnswer(org.imsglobal.xsd.imsqti_v2p0.ResponseDeclarationType rd,
                                      java.lang.String answerId)
Checks the answerID vs the correct answer id in response declaration

Parameters:
rd -
answerId -
Returns:

addInlineFeedbackToChoice

public static void addInlineFeedbackToChoice(org.imsglobal.xsd.imsqti_v2p0.SimpleChoiceType choice,
                                             java.lang.String choiceId)


Copyright © 2004-2008 TELS Center. All Rights Reserved.