Class ConditionNodeTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.tree.DecisionTreeNodeTemplate
com.aquima.interactions.test.templates.tree.ConditionNodeTemplate
This template represents a condition node in a decision tree.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ConditionNodeTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String alternative, String attribute) -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeSolution
(String alternative, String attribute, String strValue) This method can be used to add an attribute solution to the current node.addCondition
(String alternative, String attribute) This method can be used to add a condition sub-node to the current node.addContainerSolution
(String alternative, String containerName) This method can be used to add a container solution to the current node.addSubTree
(String alternative, String treeName) This method can be used to add a link to another tree.protected com.aquima.interactions.metamodel.AttributeReference
com.aquima.interactions.test.templates.tree.DecisionTreeNodeDS
This method returns the data-source implementation for the node template.Methods inherited from class com.aquima.interactions.test.templates.tree.DecisionTreeNodeTemplate
addNode, getAlternative, getNodes
Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ConditionNodeTemplate
-
-
Method Details
-
addCondition
This method can be used to add a condition sub-node to the current node.- Parameters:
alternative
- The alternative expression that should be used when evaluating the parent condition.attribute
- The attribute that should be asked.- Returns:
- Condition template representing the added sub node.
-
addAttributeSolution
public AttributeSolutionTemplate addAttributeSolution(String alternative, String attribute, String strValue) This method can be used to add an attribute solution to the current node.- Parameters:
alternative
- The alternative expression that should be used when evaluating the parent condition.attribute
- The attribute of the solution.strValue
- The value of the solution.- Returns:
- Solution template representing the added sub node.
-
addContainerSolution
This method can be used to add a container solution to the current node.- Parameters:
alternative
- The alternative expression that should be used when evaluating the parent condition.containerName
- The name of the container.- Returns:
- Solution template representing the added sub node.
-
addSubTree
This method can be used to add a link to another tree.- Parameters:
alternative
- The alternative expression that should be used when evaluating the parent condition.treeName
- The name of the decision tree that is linked to.- Returns:
- Template representing the link to the decision tree.
-
getAttribute
protected com.aquima.interactions.metamodel.AttributeReference getAttribute() -
toDataSource
public com.aquima.interactions.test.templates.tree.DecisionTreeNodeDS toDataSource()Description copied from class:DecisionTreeNodeTemplate
This method returns the data-source implementation for the node template.- Specified by:
toDataSource
in classDecisionTreeNodeTemplate
- Returns:
- the data-source implementation for the node template.
-