org.qtitools.qti.node.item.template.processing
Class TemplateConditionChild

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.item.template.processing.TemplateConditionChild
All Implemented Interfaces:
java.io.Serializable, XmlNode, XmlObject, Validatable
Direct Known Subclasses:
TemplateConditionExpressionChild, TemplateElse

public abstract class TemplateConditionChild
extends AbstractObject

Abstract parent for all templateCondition 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
TemplateConditionChild(TemplateCondition parent)
          Constructs condition rule child.
 
Method Summary
 boolean evaluate()
          Evaluates all child templateRules and returns true.
 java.util.List<TemplateRule> getTemplateRules()
          Gets templateRule 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

TemplateConditionChild

public TemplateConditionChild(TemplateCondition parent)
Constructs condition rule child.

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

getTemplateRules

public java.util.List<TemplateRule> getTemplateRules()
Gets templateRule children.

Returns:
templateRule 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 templateRules and returns true.

Returns:
true
Throws:
QTIProcessingInterrupt


Copyright © 2009. All Rights Reserved.