org.qtitools.qti.node.item.response.processing
Class ResponseConditionChild

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.item.response.processing.ResponseConditionChild
All Implemented Interfaces:
java.io.Serializable, XmlNode, XmlObject, Validatable
Direct Known Subclasses:
ResponseConditionExpressionChild, ResponseElse

public abstract class ResponseConditionChild
extends AbstractObject

Abstract parent for all responseCondition children (IF, ELSE-IF, ELSE).

Author:
Jonathon Hare
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.qtitools.qti.node.XmlNode
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR
 
Constructor Summary
ResponseConditionChild(ResponseCondition parent)
          Constructs condition rule child.
 
Method Summary
 boolean evaluate()
          Evaluates all child responseRules and returns true.
 java.util.List<ResponseRule> getResponseRules()
          Gets responseRule children.
protected  ValidationResult validateChildren()
          Validates children (body) of this node.
 
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, validate, validateAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qtitools.qti.node.XmlNode
getAttributes, getClassTag, getFullName, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString
 
Methods inherited from interface org.qtitools.qti.validation.Validatable
validate
 

Constructor Detail

ResponseConditionChild

public ResponseConditionChild(ResponseCondition parent)
Constructs condition rule child.

Parameters:
parent - parent of this condition rule child
Method Detail

getResponseRules

public java.util.List<ResponseRule> getResponseRules()
Gets responseRule children.

Returns:
responseRule children

validateChildren

protected ValidationResult validateChildren()
Description copied from class: AbstractNode
Validates children (body) of this node.

Overrides:
validateChildren in class AbstractNode
Returns:
result of validation

evaluate

public boolean evaluate()
                 throws QTIProcessingInterrupt
Evaluates all child responseRules and returns true.

Returns:
true
Throws:
QTIProcessingInterrupt


Copyright © 2009. All Rights Reserved.