public class SimpleChoiceItem
extends java.lang.Object
Constructor and Description |
---|
SimpleChoiceItem(org.tencompetence.services.xml.qti.elements.SimpleChoice simpleChoice,
int index)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFeedback()
Gets the feedback of the item.
|
int |
getIndex()
Gets the index of the item.
|
java.lang.String |
getScore()
Gets the score of the item.
|
org.tencompetence.services.xml.qti.elements.SimpleChoice |
getSimpleChoice()
Gets the simple choice.
|
java.lang.String |
getText()
Gets the choice text.
|
boolean |
isCorrect()
Checks if the choice is currently marked as correct.
|
void |
setCorrect(boolean correct)
Sets the correct value.
|
void |
setFeedback(java.lang.String feedback)
Sets the feedback of the item.
|
void |
setScore(java.lang.String score)
Sets the score of the item.
|
void |
setText(java.lang.String text)
Sets the choice text.
|
public SimpleChoiceItem(org.tencompetence.services.xml.qti.elements.SimpleChoice simpleChoice, int index)
simpleChoice
- the simple choiceindex
- the indexpublic org.tencompetence.services.xml.qti.elements.SimpleChoice getSimpleChoice()
public java.lang.String getText()
public void setText(java.lang.String text)
text
- the new textpublic int getIndex()
public boolean isCorrect()
public void setCorrect(boolean correct)
correct
- the new correct valuepublic java.lang.String getScore()
public void setScore(java.lang.String score)
score
- the new scorepublic java.lang.String getFeedback()
public void setFeedback(java.lang.String feedback)
feedback
- the new feedback