org.qtitools.qti.group.test
Class SectionPartGroup

java.lang.Object
  extended by org.qtitools.qti.group.AbstractNodeGroup
      extended by org.qtitools.qti.group.test.SectionPartGroup
All Implemented Interfaces:
java.io.Serializable, NodeGroup, Validatable

public class SectionPartGroup
extends AbstractNodeGroup

Group of sectionPart children.

Author:
Jiri Kajaba
See Also:
Serialized Form

Constructor Summary
SectionPartGroup(AssessmentSection parent)
          Constructs group.
 
Method Summary
 SectionPart create(java.lang.String classTag)
          Creates child with given QTI class name.
 java.util.List<SectionPart> getSectionParts()
          Gets list of all children.
 boolean isGeneral()
          Returns true if group can contain children with different QTI class name; false otherwise.
 
Methods inherited from class org.qtitools.qti.group.AbstractNodeGroup
getAllSupportedClasses, getChild, getChildren, getCurrentSupportedClasses, getFullName, getMaximum, getMinimum, getName, getParent, load, setChild, toXmlString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SectionPartGroup

public SectionPartGroup(AssessmentSection parent)
Constructs group.

Parameters:
parent - parent of created group
Method Detail

isGeneral

public boolean isGeneral()
Description copied from interface: NodeGroup
Returns true if group can contain children with different QTI class name; false otherwise.

Specified by:
isGeneral in interface NodeGroup
Overrides:
isGeneral in class AbstractNodeGroup
Returns:
true if group can contain children with different QTI class name; false otherwise

getSectionParts

public java.util.List<SectionPart> getSectionParts()
Gets list of all children.

Returns:
list of all children

create

public SectionPart create(java.lang.String classTag)
Creates child with given QTI class name.

Parameter classTag is needed only if group can contain children with different QTI class names.

Parameters:
classTag - QTI class name (this parameter is needed)
Returns:
created child


Copyright © 2009. All Rights Reserved.