|
||||||||||
| 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.SectionPart
public abstract class SectionPart
Abstract super class for assessmentSection and assessmentItemRef.
| Field Summary | |
|---|---|
static boolean |
ATTR_FIXED_DEFAULT_VALUE
Default value of fixed attribute. |
static java.lang.String |
ATTR_FIXED_NAME
Name of fixed attribute in xml schema. |
static boolean |
ATTR_REQUIRED_DEFAULT_VALUE
Default value of required attribute. |
static java.lang.String |
ATTR_REQUIRED_NAME
Name of required attribute in xml schema. |
static java.lang.String |
DISPLAY_NAME
Display name of this part. |
| 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 | |
|---|---|
SectionPart(AbstractPart parent)
Constructs part. |
|
| Method Summary | |
|---|---|
java.lang.Boolean |
getFixed()
Gets value of fixed attribute. |
ItemSessionControl |
getItemSessionControl()
Gets itemSessionControl object for this part. |
AbstractPart |
getParent()
Gets parent of this node or null (if node is root; for example AssessmentTest). |
AssessmentSection |
getParentSection()
Gets parent assessment section of this part or null if parent is test part. |
java.lang.Boolean |
getRequired()
Gets value of required attribute. |
boolean |
isJumpSafeSource()
Returns true if it is safe to jump from this object; false otherwise. |
boolean |
isJumpSafeTarget()
Returns true if this object is safe target of jump; false otherwise. |
void |
setFixed(java.lang.Boolean fixed)
Sets new value of fixed attribute. |
void |
setParent(AbstractPart parent)
Sets new parent of this part. |
void |
setRequired(java.lang.Boolean required)
Sets new value of required attribute. |
| Methods inherited from class org.qtitools.qti.node.test.AbstractPart |
|---|
getBranchRules, getItemSessionControlNode, getParentTestPart, getPreConditions, setItemSessionControlNode |
| Methods inherited from class org.qtitools.qti.node.test.ControlObject |
|---|
getChildren, 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, getClassTag, 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, getClassTag, 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 DISPLAY_NAME
public static final java.lang.String ATTR_REQUIRED_NAME
public static final boolean ATTR_REQUIRED_DEFAULT_VALUE
public static final java.lang.String ATTR_FIXED_NAME
public static final boolean ATTR_FIXED_DEFAULT_VALUE
| Constructor Detail |
|---|
public SectionPart(AbstractPart parent)
parent - parent of constructed part.| 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 ControlObjectpublic void setParent(AbstractPart parent)
parent - new parent of this partgetParent()public AssessmentSection getParentSection()
public java.lang.Boolean getRequired()
setRequired(java.lang.Boolean)public void setRequired(java.lang.Boolean required)
required - new value of required attributegetRequired()public java.lang.Boolean getFixed()
setFixed(java.lang.Boolean)public void setFixed(java.lang.Boolean fixed)
fixed - new value of fixed attributegetFixed()public ItemSessionControl getItemSessionControl()
AbstractPart
Use this method instead of getItemSessionControlNode, because returned object of this method contains
all fields (they are inherited from parent if they are not defined in this part).
getItemSessionControl in class AbstractPartpublic boolean isJumpSafeSource()
AbstractPartIt is not safe to jump from shuffled not fixed object (or if any parent is shuffled and not fixed), because object could be moved after jump target (it is not allowed).
isJumpSafeSource in class AbstractPartpublic boolean isJumpSafeTarget()
AbstractPartIt is not save to jump on not required object in selection group (same for all its parents), because object could disappear (not be selected) and jump target is no longer valid.
It is not safe to jump on shuffled not fixed object (or if any parent is shuffled and not fixed), because object could be moved before jump source (it is not allowed).
isJumpSafeTarget in class AbstractPart
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||