|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.node.AbstractNode
org.qtitools.qti.node.AbstractObject
org.qtitools.qti.node.content.BodyElement
org.qtitools.qti.node.item.interaction.Interaction
org.qtitools.qti.node.item.interaction.InlineInteraction
org.qtitools.qti.node.item.interaction.EndAttemptInteraction
public class EndAttemptInteraction
The end attempt interaction is A special type of interaction which allows item authors to provide the candidate with control over the way in which the candidate terminates an attempt. The candidate can use the interaction to terminate the attempt (triggering response processing) immediately, typically to request A hint. It must be bound to A response variable with base-type boolean and single cardinality. If the candidate invokes response processing using an endAttemptInteraction then the associated response variable is set to true. If response processing is invoked in any other way, either through A different endAttemptInteraction or through the default method for the delivery engine, then the associated response variable is set to false. The default value of the response variable is always ignored. Attribute : title [1]: string The string that should be displayed to the candidate as A prompt for ending the attempt using this interaction. This should be short, preferably one word. A typical value would be "Hint". For example, in A graphical environment it would be presented as the label on A button that, when pressed, ends the attempt.
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_TITLE_NAME
Name of title attribute in xml schema. |
static java.lang.String |
CLASS_TAG
Name of this class in xml schema. |
| Fields inherited from class org.qtitools.qti.node.item.interaction.Interaction |
|---|
ATTR_RESPONSE_IDENTIFIER_NAME, CLASS_TAG_SUFFIX, DISPLAY_NAME |
| Fields inherited from class org.qtitools.qti.node.content.BodyElement |
|---|
ATTR_CLASS_NAME, ATTR_ID_NAME, ATTR_LABEL_NAME, ATTR_LANG_NAME |
| Fields inherited from interface org.qtitools.qti.node.content.basic.Inline |
|---|
DISPLAY_NAME |
| Fields inherited from interface org.qtitools.qti.node.content.basic.Flow |
|---|
DISPLAY_NAME |
| Constructor Summary | |
|---|---|
EndAttemptInteraction(XmlObject parent)
Construct new interaction. |
|
| Method Summary | |
|---|---|
void |
beforeProcessResponse()
Perform any required processing for the interaction immediately before processResponse is called. |
java.util.List<? extends XmlNode> |
getChildren()
Get A list of the content child nodes of this element |
java.lang.String |
getClassTag()
Gets QTI class name of this node. |
java.lang.String |
getTitle()
Gets value of title attribute. |
protected Value |
processResponse(java.util.List<java.lang.String> responseList,
ResponseDeclaration responseDeclaration)
|
void |
setTitle(java.lang.String title)
Sets new value of title attribute. |
ValidationResult |
validate()
Validates this object. |
| Methods inherited from class org.qtitools.qti.node.item.interaction.Interaction |
|---|
getResponseDeclaration, getResponseIdentifier, getShuffledOrder, initialize, processResponse, processResponse, setResponseIdentifier, validateResponse |
| Methods inherited from class org.qtitools.qti.node.content.BodyElement |
|---|
appendChild, evaluate, getClassAttr, getFirstChild, getId, getLabel, getLang, getLastChild, insertBefore, removeChild, replaceChild, search, search, search, setId, setLabel, setLang |
| Methods inherited from class org.qtitools.qti.node.AbstractObject |
|---|
getParent, getParentItem, getParentResult, getParentTest, setParent |
| Methods inherited from class org.qtitools.qti.node.AbstractNode |
|---|
attrToXmlString, bodyToXmlString, getAttributes, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, loadAttributes, readChild, readChildren, setParent, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString, validateAttributes, validateChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CLASS_TAG
public static final java.lang.String ATTR_TITLE_NAME
| Constructor Detail |
|---|
public EndAttemptInteraction(XmlObject parent)
parent - Parent node| Method Detail |
|---|
public void setTitle(java.lang.String title)
title - new value of title attributegetTitle()public java.lang.String getTitle()
setTitle(java.lang.String)public java.lang.String getClassTag()
XmlNodeQTI class name has very important role during loading/saving nodes.
For example: Java class name is AssessmentTest; QTI class name is assessmentTest.
getClassTag in interface XmlNodegetClassTag in class AbstractNodepublic void beforeProcessResponse()
Interaction
beforeProcessResponse in class Interaction
protected Value processResponse(java.util.List<java.lang.String> responseList,
ResponseDeclaration responseDeclaration)
processResponse in class Interactionpublic ValidationResult validate()
Validatable
validate in interface Validatablevalidate in class Interactionpublic java.util.List<? extends XmlNode> getChildren()
BodyElement
getChildren in class BodyElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||