org.qtitools.qti.group.result
Class ContextGroup

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

public class ContextGroup
extends AbstractNodeGroup

Group of context child.

Author:
Jiri Kajaba
See Also:
Serialized Form

Constructor Summary
ContextGroup(AssessmentResult parent)
          Constructs group.
 
Method Summary
 Context create(java.lang.String classTag)
          Creates child with given QTI class name.
 Context getContext()
          Gets child.
 void setContext(Context context)
          Sets new 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

ContextGroup

public ContextGroup(AssessmentResult parent)
Constructs group.

Parameters:
parent - parent of created group
Method Detail

getContext

public Context getContext()
Gets child.

Returns:
child
See Also:
setContext(org.qtitools.qti.node.result.Context)

setContext

public void setContext(Context context)
Sets new child.

Parameters:
context - new child
See Also:
getContext()

create

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