|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.group.AbstractNodeGroup
org.qtitools.qti.group.expression.ExpressionGroup
public class ExpressionGroup
Group of expression children.
| Constructor Summary | |
|---|---|
ExpressionGroup(ExpressionParent parent,
java.lang.Integer minimum,
java.lang.Integer maximum)
Constructs group. |
|
| Method Summary | |
|---|---|
Expression |
create(java.lang.String classTag)
Creates child with given QTI class name. |
java.util.List<java.lang.String> |
getCurrentSupportedClasses(int index)
Returns list of all currently possible QTI class names (all currently possible children in this group). |
Expression |
getExpression()
Gets child. |
java.util.List<Expression> |
getExpressions()
Gets list of all children. |
ExpressionParent |
getParent()
Gets parent node of group. |
boolean |
isGeneral()
Returns true if group can contain children with different QTI class name; false otherwise. |
void |
setExpression(Expression expression)
Sets new child. |
| Methods inherited from class org.qtitools.qti.group.AbstractNodeGroup |
|---|
getAllSupportedClasses, getChild, getChildren, getFullName, getMaximum, getMinimum, getName, load, setChild, toXmlString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionGroup(ExpressionParent parent,
java.lang.Integer minimum,
java.lang.Integer maximum)
parent - parent of created groupminimum - minimum required children of created groupmaximum - maximum allowed children of created group| Method Detail |
|---|
public ExpressionParent getParent()
NodeGroup
getParent in interface NodeGroupgetParent in class AbstractNodeGrouppublic boolean isGeneral()
NodeGroup
isGeneral in interface NodeGroupisGeneral in class AbstractNodeGrouppublic java.util.List<java.lang.String> getCurrentSupportedClasses(int index)
NodeGroupThis list can change in time (it contains every possible QTI class name for current time (conditions)).
For example: expression delete can contain on first position only expressions which produce single value and on second position only expressions which produce multiple or ordered cardinality.
getCurrentSupportedClasses in interface NodeGroupgetCurrentSupportedClasses in class AbstractNodeGroupindex - index of children in group
public Expression getExpression()
setExpression(org.qtitools.qti.node.expression.Expression)public void setExpression(Expression expression)
expression - new childgetExpression()public java.util.List<Expression> getExpressions()
public Expression create(java.lang.String classTag)
Parameter classTag is needed only if group can contain children with different QTI class names.
classTag - QTI class name (this parameter is needed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||