Class XmlDecisionTreeNodeDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDS
com.aquima.interactions.dtree.ds.xml.parsing.XmlDecisionTreeNodeDS
- All Implemented Interfaces:
IDecisionTreeNodeDS
,IReportingDS
Release 8.x implementation of the decision tree data source from XML.
- Since:
- 7.2
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
XmlDecisionTreeNodeDS
(IInitializationReport report, IXmlNode node) -
Method Summary
Modifier and TypeMethodDescriptionIf the node has a condition alternative, the parent-node's condition attribute has to be set.Returns the question attribute, child nodes have the question attribute set.Returns the question entity, child nodes have the question attribute set.This method should return the format that should be used for the linked asset.This method should return the name of the asset this node is linked to.This method should return the name of the attribute this node is linked to.This method should return the expression for the value the linked attribute.This method should return the name of the container this node is linked to.This method should return the name of the entity of the linked attribute.This method should return the name of the tree this node is linked to.void
iterateNodes
(ITreeNodeVisitor visitor) This method should iterate over the child node(s) of this node, and add them to the provided visitor.Methods inherited from class com.aquima.interactions.foundation.report.ReportingDS
addError, addMessage, getCategory, getReport
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Constructor Details
-
XmlDecisionTreeNodeDS
-
-
Method Details
-
iterateNodes
Description copied from interface:IDecisionTreeNodeDS
This method should iterate over the child node(s) of this node, and add them to the provided visitor.- Specified by:
iterateNodes
in interfaceIDecisionTreeNodeDS
- Parameters:
visitor
- The visitor that should be used to add the nodes to.- Throws:
InitializationException
- This exception is thrown when the nodes could not be initialized.
-
getConditionAlternative
Description copied from interface:IDecisionTreeNodeDS
If the node has a condition alternative, the parent-node's condition attribute has to be set.- Specified by:
getConditionAlternative
in interfaceIDecisionTreeNodeDS
- Returns:
- the alternative value that should be used in conjunction with the parents condition.
-
getConditionAttribute
Description copied from interface:IDecisionTreeNodeDS
Returns the question attribute, child nodes have the question attribute set.- Specified by:
getConditionAttribute
in interfaceIDecisionTreeNodeDS
- Returns:
- the question attribute, child nodes have the question attribute set.
-
getConditionEntity
Description copied from interface:IDecisionTreeNodeDS
Returns the question entity, child nodes have the question attribute set.- Specified by:
getConditionEntity
in interfaceIDecisionTreeNodeDS
- Returns:
- the question entity, child nodes have the question attribute set.
-
getLinkAssetFormat
Description copied from interface:IDecisionTreeNodeDS
This method should return the format that should be used for the linked asset. This method will only be invoked for nodes that are linked to an asset.- Specified by:
getLinkAssetFormat
in interfaceIDecisionTreeNodeDS
- Returns:
- the format that should be used for the linked asset.
-
getLinkAssetName
Description copied from interface:IDecisionTreeNodeDS
This method should return the name of the asset this node is linked to. If the node is not linked to an asset, the method should return null.- Specified by:
getLinkAssetName
in interfaceIDecisionTreeNodeDS
- Returns:
- the name of the asset this node is linked to.
-
getLinkAttribute
Description copied from interface:IDecisionTreeNodeDS
This method should return the name of the attribute this node is linked to. If the node is not linked to an attribute, the method should return null.- Specified by:
getLinkAttribute
in interfaceIDecisionTreeNodeDS
- Returns:
- the name of the attribute this node is linked to.
-
getLinkAttributeValueExpression
Description copied from interface:IDecisionTreeNodeDS
This method should return the expression for the value the linked attribute. This method will only be invoked for nodes that are linked to an attribute.- Specified by:
getLinkAttributeValueExpression
in interfaceIDecisionTreeNodeDS
- Returns:
- the expression for the value the linked attribute.
-
getLinkContainerName
Description copied from interface:IDecisionTreeNodeDS
This method should return the name of the container this node is linked to. If the node is not linked to a container, the method should return null.- Specified by:
getLinkContainerName
in interfaceIDecisionTreeNodeDS
- Returns:
- the name of the container this node is linked to.
-
getLinkEntity
Description copied from interface:IDecisionTreeNodeDS
This method should return the name of the entity of the linked attribute. This method will only be invoked for nodes that are linked to an attribute.- Specified by:
getLinkEntity
in interfaceIDecisionTreeNodeDS
- Returns:
- the name of the entity of the linked attribute.
-
getLinkTreeName
Description copied from interface:IDecisionTreeNodeDS
This method should return the name of the tree this node is linked to. If the node is not linked to a tree, the method should return null.- Specified by:
getLinkTreeName
in interfaceIDecisionTreeNodeDS
- Returns:
- the name of the tree this node is linked to.
-