Class XmlDecisionTreeDS
- java.lang.Object
-
- com.aquima.interactions.foundation.report.ReportingDS
-
- com.aquima.interactions.dtree.ds.xml.r8.parsing.XmlDecisionTreeDS
-
- All Implemented Interfaces:
IDecisionTreeDS
,IReportingDS
public class XmlDecisionTreeDS extends ReportingDS implements IDecisionTreeDS
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
XmlDecisionTreeDS(IInitializationReport report, IXmlNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMultilingualText
getDisplayText()
This method should return the description of text used for display of the decision tree.String
getName()
This method should return the name of the decision tree.boolean
isExposedAsWebservice()
This method should indicate whether the decision tree will be exposed as a webservice.void
iterateNodes(ITreeNodeVisitor visitor)
This method should iterate over the top node(s) of the tree, and add them to the provided visitor.void
iterateSymptoms(ITreeSymptomVisitor visitor)
This method should iterate over the symptoms of the tree and add them to the 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
-
XmlDecisionTreeDS
protected XmlDecisionTreeDS(IInitializationReport report, IXmlNode node)
-
-
Method Detail
-
getDisplayText
public IMultilingualText getDisplayText()
Description copied from interface:IDecisionTreeDS
This method should return the description of text used for display of the decision tree.- Specified by:
getDisplayText
in interfaceIDecisionTreeDS
- Returns:
- the description of text used for display of the decision tree.
-
isExposedAsWebservice
public boolean isExposedAsWebservice()
Description copied from interface:IDecisionTreeDS
This method should indicate whether the decision tree will be exposed as a webservice.- Specified by:
isExposedAsWebservice
in interfaceIDecisionTreeDS
- Returns:
true
if exposed otherwisefalse
-
getName
public String getName()
Description copied from interface:IDecisionTreeDS
This method should return the name of the decision tree.- Specified by:
getName
in interfaceIDecisionTreeDS
- Returns:
- the name of the decision tree.
-
iterateNodes
public void iterateNodes(ITreeNodeVisitor visitor) throws InitializationException
Description copied from interface:IDecisionTreeDS
This method should iterate over the top node(s) of the tree, and add them to the provided visitor.- Specified by:
iterateNodes
in interfaceIDecisionTreeDS
- 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.
-
iterateSymptoms
public void iterateSymptoms(ITreeSymptomVisitor visitor) throws InitializationException
Description copied from interface:IDecisionTreeDS
This method should iterate over the symptoms of the tree and add them to the visitor.- Specified by:
iterateSymptoms
in interfaceIDecisionTreeDS
- Parameters:
visitor
- The visitor that should be used to add the symptoms to.- Throws:
InitializationException
- This exception is thrown when the symptoms could not be initialized.
-
-