org.qtitools.qti.group.block
Class InteractionGroup

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

public class InteractionGroup
extends AbstractNodeGroup

Group of interaction children.

Author:
Jonathon Hare
See Also:
Serialized Form

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

Constructor Detail

InteractionGroup

public InteractionGroup(BodyElement parent)
Constructs group.

Parameters:
parent - parent of created group
Method Detail

getParent

public BodyElement 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

getInteraction

public Interaction getInteraction()
Gets child.

Returns:
child
See Also:
setInteraction(org.qtitools.qti.node.item.interaction.Interaction)

setInteraction

public void setInteraction(Interaction interaction)
Sets new child.

Parameters:
interaction - new child
See Also:
getInteraction()

getInteractions

public java.util.List<Interaction> getInteractions()
Gets list of all children.

Returns:
list of all children

create

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