org.qtitools.qti.node.outcome.processing
Class OutcomeConditionChild

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.outcome.processing.OutcomeConditionChild
All Implemented Interfaces:
java.io.Serializable, XmlNode, XmlObject, Validatable
Direct Known Subclasses:
OutcomeConditionExpressionChild, OutcomeElse

public abstract class OutcomeConditionChild
extends AbstractObject

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

Author:
Jiri Kajaba
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
OutcomeConditionChild(OutcomeCondition parent)
          Constructs condition rule child.
 
Method Summary
 boolean evaluate()
          Evaluates all child outcomeRules and returns true.
 java.util.List<OutcomeRule> getOutcomeRules()
          Gets outcomeRule 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

OutcomeConditionChild

public OutcomeConditionChild(OutcomeCondition parent)
Constructs condition rule child.

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

getOutcomeRules

public java.util.List<OutcomeRule> getOutcomeRules()
Gets outcomeRule children.

Returns:
outcomeRule 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 outcomeRules and returns true.

Returns:
true
Throws:
QTIProcessingInterrupt


Copyright © 2009. All Rights Reserved.