|
||||||||||
| 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.UniqueObject
org.qtitools.qti.node.test.ControlObject
org.qtitools.qti.node.test.AbstractPart
org.qtitools.qti.node.test.TestPart
public class TestPart
Part of assessment test.
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_NAVIGATION_MODE_NAME
Name of navigationMode attribute in xml schema. |
static java.lang.String |
ATTR_SUBMISSION_MODE_NAME
Name of submissionMode 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.test.ControlObject |
|---|
finished, VARIABLE_DURATION_NAME |
| Fields inherited from class org.qtitools.qti.node.UniqueObject |
|---|
ATTR_IDENTIFIER_NAME |
| Fields inherited from interface org.qtitools.qti.node.XmlNode |
|---|
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR |
| Constructor Summary | |
|---|---|
TestPart(AssessmentTest parent)
Constructs testPart. |
|
| Method Summary | |
|---|---|
boolean |
areJumpsEnabled()
Returns true if jumps (preConditions and branchRules) are enabled; false otherwise. |
java.util.List<AssessmentSection> |
getAssessmentSections()
Gets assessmentSection children. |
java.util.List<AssessmentSection> |
getChildren()
Gets abstractPart children. |
java.lang.String |
getClassTag()
Gets QTI class name of this node. |
ItemSessionControl |
getItemSessionControl()
Gets itemSessionControl child if specified; defaultItemSessionControl otherwise. |
NavigationMode |
getNavigationMode()
Gets value of navigationMode attribute. |
AssessmentTest |
getParent()
Gets parent of this node or null (if node is root; for example AssessmentTest). |
SubmissionMode |
getSubmissionMode()
Gets value of submissionMode attribute. |
java.util.List<TestFeedback> |
getTestFeedbacks()
Gets testFeedback children. |
java.util.List<TestFeedback> |
getTestFeedbacks(TestFeedbackAccess requestedAccess)
Gets all viewable testFeedbacks with given access. |
void |
setNavigationMode(NavigationMode navigationMode)
Sets new value of navigationMode attribute. |
void |
setSubmissionMode(SubmissionMode submissionMode)
Sets new value of submissionMode attribute. |
| Methods inherited from class org.qtitools.qti.node.test.AbstractPart |
|---|
getBranchRules, getItemSessionControlNode, getParentTestPart, getPreConditions, isJumpSafeSource, isJumpSafeTarget, setItemSessionControlNode |
| Methods inherited from class org.qtitools.qti.node.test.ControlObject |
|---|
getDuration, getFinishedCount, getGlobalIndex, getPresentedCount, getResponseTime, getTimeLimit, getTotalCount, getTotalTime, initialize, isBuiltInVariable, isChildOf, isFinished, isPresented, lookup, lookupItemRef, lookupItemRefs, lookupItemRefs, lookupValue, passMaximumTimeLimit, passMinimumTimeLimit, setFinished, setTimeLimit |
| Methods inherited from class org.qtitools.qti.node.UniqueObject |
|---|
getIdentifier, getSimpleName, setIdentifier, validateAttributes |
| Methods inherited from class org.qtitools.qti.node.AbstractObject |
|---|
getParentItem, getParentResult, getParentTest, setParent |
| Methods inherited from class org.qtitools.qti.node.AbstractNode |
|---|
attrToXmlString, bodyToXmlString, getAttributes, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, loadAttributes, readChild, readChildren, setParent, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString, validate, 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, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, 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_NAVIGATION_MODE_NAME
public static final java.lang.String ATTR_SUBMISSION_MODE_NAME
| Constructor Detail |
|---|
public TestPart(AssessmentTest parent)
parent - parent of this testPart.| Method Detail |
|---|
public AssessmentTest 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 ControlObjectpublic 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.util.List<AssessmentSection> getChildren()
ControlObject
getChildren in class ControlObjectpublic NavigationMode getNavigationMode()
setNavigationMode(org.qtitools.qti.node.test.NavigationMode)public void setNavigationMode(NavigationMode navigationMode)
navigationMode - new value of navigationMode attributegetNavigationMode()public SubmissionMode getSubmissionMode()
setSubmissionMode(org.qtitools.qti.node.test.SubmissionMode)public void setSubmissionMode(SubmissionMode submissionMode)
submissionMode - new value of submissionMode attributegetSubmissionMode()public ItemSessionControl getItemSessionControl()
getItemSessionControl in class AbstractPartpublic java.util.List<AssessmentSection> getAssessmentSections()
public java.util.List<TestFeedback> getTestFeedbacks()
public java.util.List<TestFeedback> getTestFeedbacks(TestFeedbackAccess requestedAccess)
requestedAccess - given access
public boolean areJumpsEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||