|
||||||||||
| 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.test.ItemSessionControl
public class ItemSessionControl
When items are referenced as part of A test, the test may impose constraints on how many attempts and which states are allowed. These constraints can be specified for individual items, for whole sections, or for an entire testPart. By default, A setting at testPart level affects all items in that part unless the setting is overridden at the assessmentSection level or ultimately at the individual assessmentItemRef. The defaults given below are used only in the absence of any applicable constraint.
| Field Summary | |
|---|---|
static boolean |
ALLOW_COMMENT_DEFAULT_VALUE
Default value of getAllowComment method. |
static boolean |
ALLOW_REVIEW_DEFAULT_VALUE
Default value of getAllowReview method. |
static boolean |
ALLOW_SKIPPING_DEFAULT_VALUE
Default value of getAllowSkipping method. |
static java.lang.Boolean |
ATTR_ALLOW_COMMENT_DEFAULT_VALUE
Default value of allowComment attribute. |
static java.lang.String |
ATTR_ALLOW_COMMENT_NAME
Name of allowComment attribute in xml schema. |
static java.lang.Boolean |
ATTR_ALLOW_REVIEW_DEFAULT_VALUE
Default value of allowReview attribute. |
static java.lang.String |
ATTR_ALLOW_REVIEW_NAME
Name of allowReview attribute in xml schema. |
static java.lang.Boolean |
ATTR_ALLOW_SKIPPING_DEFAULT_VALUE
Default value of allowSkipping attribute. |
static java.lang.String |
ATTR_ALLOW_SKIPPING_NAME
Name of allowSkipping attribute in xml schema. |
static java.lang.Integer |
ATTR_MAX_ATTEMPTS_DEFAULT_VALUE
Default value of maxAttempts attribute. |
static java.lang.String |
ATTR_MAX_ATTEMPTS_NAME
Name of maxAttempts attribute in xml schema. |
static java.lang.Boolean |
ATTR_SHOW_FEEDBACK_DEFAULT_VALUE
Default value of showFeedback attribute. |
static java.lang.String |
ATTR_SHOW_FEEDBACK_NAME
Name of showFeedback attribute in xml schema. |
static java.lang.Boolean |
ATTR_SHOW_SOLUTION_DEFAULT_VALUE
Default value of showSolution attribute. |
static java.lang.String |
ATTR_SHOW_SOLUTION_NAME
Name of showSolution attribute in xml schema. |
static java.lang.Boolean |
ATTR_VALIDATE_RESPONSES_DEFAULT_VALUE
Default value of validateResponses attribute. |
static java.lang.String |
ATTR_VALIDATE_RESPONSES_NAME
Name of validateResponses attribute in xml schema. |
static java.lang.String |
CLASS_TAG
Name of this class in xml schema. |
static int |
MAX_ATTEMPTS_DEFAULT_VALUE
Default value of getMaxAttempts method. |
static boolean |
SHOW_FEEDBACK_DEFAULT_VALUE
Default value of getShowFeedback method. |
static boolean |
SHOW_SOLUTION_DEFAULT_VALUE
Default value of getShowSolution method. |
static boolean |
VALIDATE_RESPONSES_DEFAULT_VALUE
Default value of getValidateResponses method. |
| Fields inherited from interface org.qtitools.qti.node.XmlNode |
|---|
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR |
| Constructor Summary | |
|---|---|
ItemSessionControl(AbstractPart parent)
Constructs object. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
attrToXmlString(int depth,
boolean printDefaultAttributes)
Prints attributes of this node into xml string. |
boolean |
getAllowComment()
Gets final allowComment value. |
java.lang.Boolean |
getAllowCommentAttrValue()
Gets value of allowComment attribute. |
boolean |
getAllowReview()
Gets final allowReview value. |
java.lang.Boolean |
getAllowReviewAttrValue()
Gets value of allowReview attribute. |
boolean |
getAllowSkipping()
Gets final allowSkipping value. |
java.lang.Boolean |
getAllowSkippingAttrValue()
Gets value of allowSkipping attribute. |
java.lang.String |
getClassTag()
Gets QTI class name of this node. |
int |
getMaxAttempts()
Gets final maxAttempts value. |
java.lang.Integer |
getMaxAttemptsAttrValue()
Gets value of maxAttempts attribute. |
AbstractPart |
getParent()
Gets parent of this node or null (if node is root; for example AssessmentTest). |
protected boolean |
getParentsAllowComment()
Gets parent's (parent of parent of this itemSessionControl) final allowComment value or default value if parent of this itemSessionControl is TestPart. |
protected boolean |
getParentsAllowReview()
Gets parent's (parent of parent of this itemSessionControl) final allowReview value or default value if parent of this itemSessionControl is TestPart. |
protected boolean |
getParentsAllowSkipping()
Gets parent's (parent of parent of this itemSessionControl) final allowSkipping value or default value if parent of this itemSessionControl is TestPart. |
protected java.lang.Integer |
getParentsMaxAttempts()
Gets parent's (parent of parent of this itemSessionControl) final maxAttempts value or default value if parent of this itemSessionControl is TestPart. |
protected boolean |
getParentsShowFeedback()
Gets parent's (parent of parent of this itemSessionControl) final showFeedback value or default value if parent of this itemSessionControl is TestPart. |
protected boolean |
getParentsShowSolution()
Gets parent's (parent of parent of this itemSessionControl) final showSolution value or default value if parent of this itemSessionControl is TestPart. |
protected boolean |
getParentsValidateResponses()
Gets parent's (parent of parent of this itemSessionControl) final validateResponses value or default value if parent of this itemSessionControl is TestPart. |
boolean |
getShowFeedback()
Gets final showFeedback value. |
java.lang.Boolean |
getShowFeedbackAttrValue()
Gets value of showFeedback attribute. |
boolean |
getShowSolution()
Gets final showSolution value. |
java.lang.Boolean |
getShowSolutionAttrValue()
Gets value of showSolution attribute. |
boolean |
getValidateResponses()
Gets final validateResponses value. |
java.lang.Boolean |
getValidateResponsesAttrValue()
Gets value of validateResponses attribute. |
void |
setAllowCommentAttrValue(java.lang.Boolean allowComment)
Sets new value of allowComment attribute. |
void |
setAllowReviewAttrValue(java.lang.Boolean allowReview)
Sets new value of allowReview attribute. |
void |
setAllowSkippingAttrValue(java.lang.Boolean allowSkipping)
Sets new value of allowSkipping attribute. |
void |
setMaxAttemptsAttrValue(java.lang.Integer maxAttempts)
Sets new value of maxAttempts attribute. |
void |
setShowFeedbackAttrValue(java.lang.Boolean showFeedback)
Sets new value of showFeedback attribute. |
void |
setShowSolutionAttrValue(java.lang.Boolean showSolution)
Sets new value of showSolution attribute. |
void |
setValidateResponsesAttrValue(java.lang.Boolean validateResponses)
Sets new value of validateResponses attribute. |
java.lang.String |
toXmlString(int depth,
boolean printDefaultAttributes)
Prints this node and all its children into string. |
| Methods inherited from class org.qtitools.qti.node.AbstractObject |
|---|
getParentItem, getParentResult, getParentTest, setParent |
| Methods inherited from class org.qtitools.qti.node.AbstractNode |
|---|
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, validate, validateAttributes, validateChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.qtitools.qti.node.XmlNode |
|---|
getAttributes, getFullName, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString |
| Methods inherited from interface org.qtitools.qti.validation.Validatable |
|---|
validate |
| Field Detail |
|---|
public static final java.lang.String CLASS_TAG
public static final java.lang.String ATTR_MAX_ATTEMPTS_NAME
public static final java.lang.Integer ATTR_MAX_ATTEMPTS_DEFAULT_VALUE
public static final int MAX_ATTEMPTS_DEFAULT_VALUE
public static final java.lang.String ATTR_SHOW_FEEDBACK_NAME
public static final java.lang.Boolean ATTR_SHOW_FEEDBACK_DEFAULT_VALUE
public static final boolean SHOW_FEEDBACK_DEFAULT_VALUE
public static final java.lang.String ATTR_ALLOW_REVIEW_NAME
public static final java.lang.Boolean ATTR_ALLOW_REVIEW_DEFAULT_VALUE
public static final boolean ALLOW_REVIEW_DEFAULT_VALUE
public static final java.lang.String ATTR_SHOW_SOLUTION_NAME
public static final java.lang.Boolean ATTR_SHOW_SOLUTION_DEFAULT_VALUE
public static final boolean SHOW_SOLUTION_DEFAULT_VALUE
public static final java.lang.String ATTR_ALLOW_COMMENT_NAME
public static final java.lang.Boolean ATTR_ALLOW_COMMENT_DEFAULT_VALUE
public static final boolean ALLOW_COMMENT_DEFAULT_VALUE
public static final java.lang.String ATTR_ALLOW_SKIPPING_NAME
public static final java.lang.Boolean ATTR_ALLOW_SKIPPING_DEFAULT_VALUE
public static final boolean ALLOW_SKIPPING_DEFAULT_VALUE
public static final java.lang.String ATTR_VALIDATE_RESPONSES_NAME
public static final java.lang.Boolean ATTR_VALIDATE_RESPONSES_DEFAULT_VALUE
public static final boolean VALIDATE_RESPONSES_DEFAULT_VALUE
| Constructor Detail |
|---|
public ItemSessionControl(AbstractPart parent)
parent - parent of created object| Method Detail |
|---|
public AbstractPart getParent()
XmlNodeWhile testing some nodes (for example expressions) don't have properly set parent, but it is usable only for testing. (Some nodes cannot exists without parent even for testing).
getParent in interface XmlNodegetParent in interface XmlObjectgetParent in class AbstractObjectpublic 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 java.lang.Integer getMaxAttemptsAttrValue()
setMaxAttemptsAttrValue(java.lang.Integer)public void setMaxAttemptsAttrValue(java.lang.Integer maxAttempts)
maxAttempts - new value of maxAttempts attributegetMaxAttemptsAttrValue()public java.lang.Boolean getShowFeedbackAttrValue()
setShowFeedbackAttrValue(java.lang.Boolean)public void setShowFeedbackAttrValue(java.lang.Boolean showFeedback)
showFeedback - new value of showFeedback attributegetShowFeedbackAttrValue()public java.lang.Boolean getAllowReviewAttrValue()
setAllowReviewAttrValue(java.lang.Boolean)public void setAllowReviewAttrValue(java.lang.Boolean allowReview)
allowReview - new value of allowReview attributegetAllowReviewAttrValue()public java.lang.Boolean getShowSolutionAttrValue()
setShowSolutionAttrValue(java.lang.Boolean)public void setShowSolutionAttrValue(java.lang.Boolean showSolution)
showSolution - new value of showSolution attributegetShowSolutionAttrValue()public java.lang.Boolean getAllowCommentAttrValue()
setAllowCommentAttrValue(java.lang.Boolean)public void setAllowCommentAttrValue(java.lang.Boolean allowComment)
allowComment - new value of allowComment attributegetAllowCommentAttrValue()public java.lang.Boolean getAllowSkippingAttrValue()
setAllowSkippingAttrValue(java.lang.Boolean)public void setAllowSkippingAttrValue(java.lang.Boolean allowSkipping)
allowSkipping - new value of allowSkipping attributegetAllowSkippingAttrValue()public java.lang.Boolean getValidateResponsesAttrValue()
setValidateResponsesAttrValue(java.lang.Boolean)public void setValidateResponsesAttrValue(java.lang.Boolean validateResponses)
validateResponses - new value of validateResponses attributegetValidateResponsesAttrValue()
public java.lang.String toXmlString(int depth,
boolean printDefaultAttributes)
XmlNode
toXmlString in interface XmlNodetoXmlString in class AbstractNodedepth - indent (0 = no indent)printDefaultAttributes - whether print attribute's default values
XmlNode.toXmlString()
protected java.lang.String attrToXmlString(int depth,
boolean printDefaultAttributes)
AbstractNode
attrToXmlString in class AbstractNodedepth - depth in xml tree (root = 0)printDefaultAttributes - whether print attributes with default values
public int getMaxAttempts()
itemSessionControl is TestPart
SectionPart)
protected java.lang.Integer getParentsMaxAttempts()
public boolean getShowFeedback()
itemSessionControl is TestPart
SectionPart)
protected boolean getParentsShowFeedback()
public boolean getAllowReview()
itemSessionControl is TestPart
SectionPart)
protected boolean getParentsAllowReview()
public boolean getShowSolution()
itemSessionControl is TestPart
SectionPart)
protected boolean getParentsShowSolution()
public boolean getAllowComment()
itemSessionControl is TestPart
SectionPart)
protected boolean getParentsAllowComment()
public boolean getAllowSkipping()
itemSessionControl is TestPart
SectionPart)
protected boolean getParentsAllowSkipping()
public boolean getValidateResponses()
itemSessionControl is TestPart
SectionPart)
protected boolean getParentsValidateResponses()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||