|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.node.AbstractNode
org.qtitools.qti.node.AbstractObject
org.qtitools.qti.node.item.template.processing.TemplateConditionChild
org.qtitools.qti.node.item.template.processing.TemplateConditionExpressionChild
public abstract class TemplateConditionExpressionChild
Abstract parent for all templateCondition children with condition (IF, ELSE-IF).
| Field Summary |
|---|
| Fields inherited from interface org.qtitools.qti.node.XmlNode |
|---|
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR |
| Constructor Summary | |
|---|---|
TemplateConditionExpressionChild(TemplateCondition parent)
Construct condition rule child. |
|
| Method Summary | |
|---|---|
boolean |
evaluate()
Evaluates all child templateRules and returns true. |
Expression |
getExpression()
Gets expression child (condition). |
BaseType[] |
getRequiredBaseTypes(int index)
Gets list of all acceptable baseTypes which can child expression at given position produce. |
Cardinality[] |
getRequiredCardinalities(int index)
Gets list of all acceptable cardinalities which can child expression at given position produce. |
void |
setExpression(Expression expression)
Sets new expression child (condition). |
| Methods inherited from class org.qtitools.qti.node.item.template.processing.TemplateConditionChild |
|---|
getTemplateRules, validateChildren |
| 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.XmlObject |
|---|
getParent, getParentItem, getParentResult, getParentTest, setParent |
| 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 |
|---|
public TemplateConditionExpressionChild(TemplateCondition parent)
parent - parent of this condition rule child| Method Detail |
|---|
public Expression getExpression()
setExpression(org.qtitools.qti.node.expression.Expression)public void setExpression(Expression expression)
expression - new expression child (condition)getExpression()public Cardinality[] getRequiredCardinalities(int index)
ExpressionParentFor example delete expression returns single cardinality for index 0 and list of multiple and ordered cardinality for index 1.
Result of this method can change in time.
Static example is expression or. Expression or accepts only single cardinality for any index.
Dynamic example is expression match. Expression match accepts any cardinality of its children, but this cardinality must be same for all its children.
getRequiredCardinalities in interface ExpressionParentindex - position of child expression in this parent
public BaseType[] getRequiredBaseTypes(int index)
ExpressionParentResult of this method can change in time.
Static example is expression or. Expression or accepts only boolean baseType for any index.
Dynamic example is expression match. Expression match accepts any baseType of its children. but this baseType must be same for all its children.
getRequiredBaseTypes in interface ExpressionParentindex - position of child expression in this parent
public boolean evaluate()
throws QTIProcessingInterrupt
TemplateConditionChild
evaluate in class TemplateConditionChildQTIProcessingInterrupt
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||