org.qtitools.qti.node.test
Class AssessmentSection

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.UniqueObject
              extended by org.qtitools.qti.node.test.ControlObject
                  extended by org.qtitools.qti.node.test.AbstractPart
                      extended by org.qtitools.qti.node.test.SectionPart
                          extended by org.qtitools.qti.node.test.AssessmentSection
All Implemented Interfaces:
java.io.Serializable, XmlNode, XmlObject, Validatable

public class AssessmentSection
extends SectionPart

Sections group together individual item references and/or sub-sections.

Author:
Jiri Kajaba, Jonathon Hare
See Also:
Serialized Form

Field Summary
static boolean ATTR_KEEP_TOGETHER_DEFAULT_VALUE
          Default value of keepTogether attribute.
static java.lang.String ATTR_KEEP_TOGETHER_NAME
          Name of keepTogether attribute in xml schema.
static java.lang.String ATTR_TITLE_NAME
          Name of title attribute in xml schema.
static java.lang.String ATTR_VISIBLE_NAME
          Name of visible 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.SectionPart
ATTR_FIXED_DEFAULT_VALUE, ATTR_FIXED_NAME, ATTR_REQUIRED_DEFAULT_VALUE, ATTR_REQUIRED_NAME, DISPLAY_NAME
 
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
AssessmentSection(AbstractPart parent)
          Constructs section.
 
Method Summary
 java.util.List<SectionPart> getChildren()
          Gets abstractPart children.
 java.lang.String getClassTag()
          Gets QTI class name of this node.
 java.lang.Boolean getKeepTogether()
          Gets value of keepTogether attribute.
 Ordering getOrdering()
          Gets ordering child.
 java.util.List<RubricBlock> getRubricBlocks()
          Gets rubricBlock children.
 java.util.List<SectionPart> getSectionParts()
          Gets sectionPart children.
 Selection getSelection()
          Gets selection child.
 java.lang.String getTitle()
          Gets value of title attribute.
 java.lang.Boolean getVisible()
          Gets value of visible attribute.
 void initialize()
          Initialises this object and all its abstractPart children.
 void setKeepTogether(java.lang.Boolean keepTogether)
          Sets new value of keepTogether attribute.
 void setOrdering(Ordering ordering)
          Sets new ordering child.
 void setSelection(Selection selection)
          Sets new selection child.
 void setTitle(java.lang.String title)
          Sets new value of title attribute.
 void setVisible(java.lang.Boolean visible)
          Sets new value of visible attribute.
 
Methods inherited from class org.qtitools.qti.node.test.SectionPart
getFixed, getItemSessionControl, getParent, getParentSection, getRequired, isJumpSafeSource, isJumpSafeTarget, setFixed, setParent, setRequired
 
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
getDuration, getFinishedCount, getGlobalIndex, getPresentedCount, getResponseTime, getTimeLimit, getTotalCount, getTotalTime, 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

CLASS_TAG

public static final java.lang.String CLASS_TAG
Name of this class in xml schema.

See Also:
Constant Field Values

ATTR_TITLE_NAME

public static final java.lang.String ATTR_TITLE_NAME
Name of title attribute in xml schema.

See Also:
Constant Field Values

ATTR_VISIBLE_NAME

public static final java.lang.String ATTR_VISIBLE_NAME
Name of visible attribute in xml schema.

See Also:
Constant Field Values

ATTR_KEEP_TOGETHER_NAME

public static final java.lang.String ATTR_KEEP_TOGETHER_NAME
Name of keepTogether attribute in xml schema.

See Also:
Constant Field Values

ATTR_KEEP_TOGETHER_DEFAULT_VALUE

public static final boolean ATTR_KEEP_TOGETHER_DEFAULT_VALUE
Default value of keepTogether attribute.

See Also:
Constant Field Values
Constructor Detail

AssessmentSection

public AssessmentSection(AbstractPart parent)
Constructs section.

Parameters:
parent - parent of constructed section
Method Detail

getClassTag

public java.lang.String getClassTag()
Description copied from interface: XmlNode
Gets QTI class name of this node.

QTI class name has very important role during loading/saving nodes.

For example: Java class name is AssessmentTest; QTI class name is assessmentTest.

Specified by:
getClassTag in interface XmlNode
Specified by:
getClassTag in class AbstractNode
Returns:
QTI class name of this node

getChildren

public java.util.List<SectionPart> getChildren()
Description copied from class: ControlObject
Gets abstractPart children.

Specified by:
getChildren in class ControlObject
Returns:
abstractPart children

getTitle

public java.lang.String getTitle()
Gets value of title attribute.

Returns:
value of title attribute
See Also:
setTitle(java.lang.String)

setTitle

public void setTitle(java.lang.String title)
Sets new value of title attribute.

Parameters:
title - new value of title attribute
See Also:
getTitle()

getVisible

public java.lang.Boolean getVisible()
Gets value of visible attribute.

Returns:
value of visible attribute
See Also:
setVisible(java.lang.Boolean)

setVisible

public void setVisible(java.lang.Boolean visible)
Sets new value of visible attribute.

Parameters:
visible - new value of visible attribute
See Also:
getVisible()

getKeepTogether

public java.lang.Boolean getKeepTogether()
Gets value of keepTogether attribute.

Returns:
value of keepTogether attribute
See Also:
setKeepTogether(java.lang.Boolean)

setKeepTogether

public void setKeepTogether(java.lang.Boolean keepTogether)
Sets new value of keepTogether attribute.

Parameters:
keepTogether - new value of keepTogether attribute
See Also:
getKeepTogether()

getSelection

public Selection getSelection()
Gets selection child.

Returns:
selection child
See Also:
setSelection(org.qtitools.qti.node.test.Selection)

setSelection

public void setSelection(Selection selection)
Sets new selection child.

Parameters:
selection - new selection child
See Also:
getSelection()

getOrdering

public Ordering getOrdering()
Gets ordering child.

Returns:
ordering child
See Also:
setOrdering(org.qtitools.qti.node.test.Ordering)

setOrdering

public void setOrdering(Ordering ordering)
Sets new ordering child.

Parameters:
ordering - new ordering child
See Also:
getOrdering()

getRubricBlocks

public java.util.List<RubricBlock> getRubricBlocks()
Gets rubricBlock children.

Returns:
rubricBlock children

getSectionParts

public java.util.List<SectionPart> getSectionParts()
Gets sectionPart children.

Returns:
sectionPart children

initialize

public void initialize()
Description copied from class: ControlObject
Initialises this object and all its abstractPart children.

Overrides:
initialize in class ControlObject


Copyright © 2009. All Rights Reserved.