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

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

public class InlineChoiceGroup
extends AbstractNodeGroup

Group of InlineChoice children.

Author:
Jonathon Hare
See Also:
Serialized Form

Constructor Summary
InlineChoiceGroup(InlineChoiceInteraction parent)
          Constructs group.
InlineChoiceGroup(InlineChoiceInteraction parent, java.lang.Integer minimum)
          Constructs group.
 
Method Summary
 InlineChoice create(java.lang.String classTag)
          Creates child with given QTI class name.
 java.util.List<InlineChoice> getInlineChoices()
          Gets list of all children.
 
Methods inherited from class org.qtitools.qti.group.AbstractNodeGroup
getAllSupportedClasses, getChild, getChildren, getCurrentSupportedClasses, getFullName, getMaximum, getMinimum, getName, getParent, isGeneral, load, setChild, toXmlString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InlineChoiceGroup

public InlineChoiceGroup(InlineChoiceInteraction parent)
Constructs group.

Parameters:
parent - parent of created group

InlineChoiceGroup

public InlineChoiceGroup(InlineChoiceInteraction parent,
                         java.lang.Integer minimum)
Constructs group.

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

getInlineChoices

public java.util.List<InlineChoice> getInlineChoices()
Gets list of all children.

Returns:
list of all children

create

public InlineChoice 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 ignored)
Returns:
created child


Copyright © 2009. All Rights Reserved.