org.qtitools.qti.node.item.interaction
Class GraphicInteraction

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.content.BodyElement
              extended by org.qtitools.qti.node.item.interaction.Interaction
                  extended by org.qtitools.qti.node.item.interaction.BlockInteraction
                      extended by org.qtitools.qti.node.item.interaction.GraphicInteraction
All Implemented Interfaces:
java.io.Serializable, Block, Flow, ObjectFlow, XmlNode, XmlObject, Validatable
Direct Known Subclasses:
GraphicAssociateInteraction, GraphicGapMatchInteraction, GraphicOrderInteraction, HotspotInteraction, SelectPointInteraction

public abstract class GraphicInteraction
extends BlockInteraction

GraphicInteraction abstract class

Author:
Jonathon Hare
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.qtitools.qti.node.item.interaction.Interaction
ATTR_RESPONSE_IDENTIFIER_NAME, CLASS_TAG_SUFFIX, DISPLAY_NAME
 
Fields inherited from class org.qtitools.qti.node.content.BodyElement
ATTR_CLASS_NAME, ATTR_ID_NAME, ATTR_LABEL_NAME, ATTR_LANG_NAME
 
Fields inherited from interface org.qtitools.qti.node.content.basic.Block
DISPLAY_NAME
 
Fields inherited from interface org.qtitools.qti.node.content.basic.Flow
DISPLAY_NAME
 
Constructor Summary
GraphicInteraction(XmlObject parent)
          Constructs object.
 
Method Summary
 java.util.List<? extends XmlNode> getChildren()
          Gets an unmodifiable list of the child elements.
 Object getObject()
          Gets object child.
 void setObject(Object object)
          Sets new object child.
 ValidationResult validate()
          Validates this object.
 
Methods inherited from class org.qtitools.qti.node.item.interaction.BlockInteraction
getPrompt, setPrompt
 
Methods inherited from class org.qtitools.qti.node.item.interaction.Interaction
beforeProcessResponse, getResponseDeclaration, getResponseIdentifier, getShuffledOrder, initialize, processResponse, processResponse, processResponse, setResponseIdentifier, validateResponse
 
Methods inherited from class org.qtitools.qti.node.content.BodyElement
appendChild, evaluate, getClassAttr, getFirstChild, getId, getLabel, getLang, getLastChild, insertBefore, removeChild, replaceChild, search, search, search, setId, setLabel, setLang
 
Methods inherited from class org.qtitools.qti.node.AbstractObject
getParent, getParentItem, getParentResult, getParentTest, setParent
 
Methods inherited from class org.qtitools.qti.node.AbstractNode
attrToXmlString, bodyToXmlString, getAttributes, getClassTag, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, loadAttributes, readChild, readChildren, setParent, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString, validateAttributes, validateChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicInteraction

public GraphicInteraction(XmlObject parent)
Constructs object.

Parameters:
parent - parent of constructed object
Method Detail

getChildren

public java.util.List<? extends XmlNode> getChildren()
Gets an unmodifiable list of the child elements. Use the other methods on GraphicInteraction to add children to the correct group.

Overrides:
getChildren in class BlockInteraction
Returns:
List of child nodes

validate

public ValidationResult validate()
Description copied from interface: Validatable
Validates this object.

Specified by:
validate in interface Validatable
Overrides:
validate in class Interaction
Returns:
validation result

getObject

public Object getObject()
Gets object child.

Returns:
object child
See Also:
setObject(org.qtitools.qti.node.content.xhtml.object.Object)

setObject

public void setObject(Object object)
Sets new object child.

Parameters:
object - new object child
See Also:
getObject()


Copyright © 2009. All Rights Reserved.