org.qtitools.qti.group.item
Class ItemBodyGroup

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

public class ItemBodyGroup
extends AbstractNodeGroup

Group of itemBody child.

Author:
Jonathon Hare
See Also:
Serialized Form

Constructor Summary
ItemBodyGroup(AssessmentItem parent)
          Constructs group.
 
Method Summary
 ItemBody create(java.lang.String classTag)
          Creates child with given QTI class name.
 ItemBody getItemBody()
          Gets itemBody child.
 void setItemBody(ItemBody itemBody)
          Sets new itemBody child.
 
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

ItemBodyGroup

public ItemBodyGroup(AssessmentItem parent)
Constructs group.

Parameters:
parent - parent of created group
Method Detail

getItemBody

public ItemBody getItemBody()
Gets itemBody child.

Returns:
itemBody child, or null if it doesn't exist.
See Also:
setItemBody(org.qtitools.qti.node.content.ItemBody)

setItemBody

public void setItemBody(ItemBody itemBody)
Sets new itemBody child.

Parameters:
itemBody - new child
See Also:
getItemBody()

create

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