|
||||||||||
| 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.TextEntryInteraction
public class TextEntryInteraction
A textEntry interaction is an inlineInteraction that obtains A simple piece of text from the candidate. Like inlineChoiceInteraction, the delivery engine must allow the candidate to review their choice within the context of the surrounding text. The textEntryInteraction must be bound to A response variable with single cardinality only. The baseType must be one of string, integer, or float. Note: Spec is slightly wrong: record response is also allowed from inherited StringInteraction
| Field Summary | |
|---|---|
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.item.interaction.StringInteraction |
|---|
ATTR_BASE_DEFAULT_VALUE, ATTR_BASE_NAME, ATTR_EXPECTED_LENGTH_NAME, ATTR_PATTERN_MASK_NAME, ATTR_PLACEHOLDER_TEXT_NAME, ATTR_STRING_IDENTIFIER_NAME, KEY_EXPONENT_NAME, KEY_FLOAT_VALUE_NAME, KEY_INTEGER_VALUE_NAME, KEY_LEFT_DIGITS_NAME, KEY_NDP_NAME, KEY_NSF_NAME, KEY_RIGHT_DIGITS_NAME, KEY_STRING_VALUE_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 | |
|---|---|
TextEntryInteraction(XmlObject parent)
Construct new interaction. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getBase()
Gets value of base attribute. |
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.Integer |
getExpectedLength()
Gets value of expectedLength attribute. |
java.lang.String |
getPatternMask()
Gets value of patternMask attribute. |
java.lang.String |
getPlaceholderText()
Gets value of placeholderText attribute. |
java.lang.String |
getStringIdentifier()
Gets value of stringIdentifier attribute. |
ResponseDeclaration |
getStringIdentifierResponseDeclaration()
Gets ResponseDeclaration corresponding to the stringIdentifier attribute |
void |
processResponse(java.util.List<java.lang.String> responseList)
Given the user response to the interaction in the form of A string set the appropriate response variables. |
void |
setBase(java.lang.Integer base)
Sets new value of base attribute. |
void |
setExpectedLength(java.lang.Integer expectedLength)
Sets new value of expectedLength attribute. |
void |
setPatternMask(java.lang.String patternMask)
Sets new value of patternMask attribute. |
void |
setPlaceholderText(java.lang.String placeholderText)
Sets new value of placeholderText attribute. |
void |
setStringIdentifier(java.lang.String stringIdentifier)
Sets new value of stringIdentifier attribute. |
ValidationResult |
validate()
Validates this object. |
boolean |
validateResponse()
Validate the response associated with this interaction Subclasses should override this method as required. |
| Methods inherited from class org.qtitools.qti.node.item.interaction.Interaction |
|---|
beforeProcessResponse, getResponseDeclaration, getResponseIdentifier, getShuffledOrder, initialize, processResponse, processResponse, setResponseIdentifier |
| 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
| Constructor Detail |
|---|
public TextEntryInteraction(XmlObject parent)
parent - Parent node| Method Detail |
|---|
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 ValidationResult validate()
Validatable
validate in interface Validatablevalidate in class Interactionpublic void processResponse(java.util.List<java.lang.String> responseList)
Interaction
processResponse in class InteractionresponseList - Response to processAssessmentItem.setResponses(java.util.Map>) public boolean validateResponse()
Interaction
validateResponse in class Interactionpublic java.lang.Integer getBase()
StringInteraction
getBase in interface StringInteractionStringInteraction.setBase(java.lang.Integer)public java.lang.Integer getExpectedLength()
StringInteraction
getExpectedLength in interface StringInteractionStringInteraction.setExpectedLength(java.lang.Integer)public java.lang.String getPatternMask()
StringInteraction
getPatternMask in interface StringInteractionStringInteraction.setPatternMask(java.lang.String)public java.lang.String getPlaceholderText()
StringInteraction
getPlaceholderText in interface StringInteractionStringInteraction.setPlaceholderText(java.lang.String)public java.lang.String getStringIdentifier()
StringInteraction
getStringIdentifier in interface StringInteractionStringInteraction.setStringIdentifier(java.lang.String)public void setBase(java.lang.Integer base)
StringInteraction
setBase in interface StringInteractionbase - new value of base attributeStringInteraction.getBase()public void setExpectedLength(java.lang.Integer expectedLength)
StringInteraction
setExpectedLength in interface StringInteractionexpectedLength - new value of expectedLength attributeStringInteraction.getExpectedLength()public void setPatternMask(java.lang.String patternMask)
StringInteraction
setPatternMask in interface StringInteractionpatternMask - new value of patternMask attributeStringInteraction.getPatternMask()public void setPlaceholderText(java.lang.String placeholderText)
StringInteraction
setPlaceholderText in interface StringInteractionplaceholderText - new value of placeholderText attributeStringInteraction.getPlaceholderText()public void setStringIdentifier(java.lang.String stringIdentifier)
StringInteraction
setStringIdentifier in interface StringInteractionstringIdentifier - new value of stringIdentifier attributeStringInteraction.getStringIdentifier()public ResponseDeclaration getStringIdentifierResponseDeclaration()
StringInteraction
getStringIdentifierResponseDeclaration in interface StringInteractionpublic 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 | |||||||||