org.qtitools.qti.group.item.interaction.choice
Class GapChoiceGroup

java.lang.Object
  extended by org.qtitools.qti.group.AbstractNodeGroup
      extended by org.qtitools.qti.group.content.AbstractContentNodeGroup
          extended by org.qtitools.qti.group.item.interaction.choice.GapChoiceGroup
All Implemented Interfaces:
java.io.Serializable, NodeGroup, Validatable

public class GapChoiceGroup
extends AbstractContentNodeGroup

Group of gapChoice children.

Author:
Jonathon Hare
See Also:
Serialized Form

Constructor Summary
GapChoiceGroup(XmlNode parent)
          Constructs group.
GapChoiceGroup(XmlNode parent, java.lang.Integer minimum)
          Constructs group.
 
Method Summary
 GapChoice create(java.lang.String classTag)
          Creates child with given QTI class name.
 GapChoice getGapChoice()
          Gets child.
 java.util.List<GapChoice> getGapChoices()
          Gets list of all children.
 XmlObject getParent()
          Gets parent node of group.
 boolean isGeneral()
          Returns true if group can contain children with different QTI class name; false otherwise.
 void setGapChoice(GapChoice gapChoice)
          Sets new child.
 
Methods inherited from class org.qtitools.qti.group.content.AbstractContentNodeGroup
load
 
Methods inherited from class org.qtitools.qti.group.AbstractNodeGroup
getAllSupportedClasses, getChild, getChildren, getCurrentSupportedClasses, getFullName, getMaximum, getMinimum, getName, setChild, toXmlString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GapChoiceGroup

public GapChoiceGroup(XmlNode parent)
Constructs group.

Parameters:
parent - parent of created group

GapChoiceGroup

public GapChoiceGroup(XmlNode parent,
                      java.lang.Integer minimum)
Constructs group.

Parameters:
parent - parent of created group
minimum - minimum number of children
Method Detail

getParent

public XmlObject getParent()
Description copied from interface: NodeGroup
Gets parent node of group.

Specified by:
getParent in interface NodeGroup
Overrides:
getParent in class AbstractNodeGroup
Returns:
parent node of group

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

getGapChoice

public GapChoice getGapChoice()
Gets child.

Returns:
child
See Also:
setGapChoice(org.qtitools.qti.node.item.interaction.choice.GapChoice)

setGapChoice

public void setGapChoice(GapChoice gapChoice)
Sets new child.

Parameters:
gapChoice - new child
See Also:
getGapChoice()

getGapChoices

public java.util.List<GapChoice> getGapChoices()
Gets list of all children.

Returns:
list of all children

create

public GapChoice 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.