Class XmlDecisionTreeNodeDS
- java.lang.Object
-
- com.aquima.interactions.foundation.report.ReportingDS
-
- com.aquima.interactions.dtree.ds.xml.r8.parsing.XmlDecisionTreeNodeDS
-
- All Implemented Interfaces:
IDecisionTreeNodeDS
,IReportingDS
public class XmlDecisionTreeNodeDS extends ReportingDS implements IDecisionTreeNodeDS
Release 8.x implementation of the decision tree data source from XML.- Since:
- 7.2
- Author:
- Jon van Leuven
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
XmlDecisionTreeNodeDS(IInitializationReport report, IXmlNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConditionAlternative()
If the node has a condition alternative, the parent-node's condition attribute has to be set.String
getConditionAttribute()
Returns the question attribute, child nodes have the question attribute set.String
getConditionEntity()
Returns the question entity, child nodes have the question attribute set.String
getLinkAssetFormat()
This method should return the format that should be used for the linked asset.String
getLinkAssetName()
This method should return the name of the asset this node is linked to.String
getLinkAttribute()
This method should return the name of the attribute this node is linked to.String
getLinkAttributeValueExpression()
This method should return the expression for the value the linked attribute.String
getLinkContainerName()
This method should return the name of the container this node is linked to.String
getLinkEntity()
This method should return the name of the entity of the linked attribute.String
getLinkTreeName()
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 Detail
-
XmlDecisionTreeNodeDS
protected XmlDecisionTreeNodeDS(IInitializationReport report, IXmlNode node)
-
-
Method Detail
-
iterateNodes
public void iterateNodes(ITreeNodeVisitor visitor) throws InitializationException
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
public String 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
public String 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
public String 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
public String 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
public String 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
public String 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
public String 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
public String 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
public String 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
public String 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.
-
-