Class XmlTextNodeDS
- java.lang.Object
-
- com.aquima.interactions.foundation.report.ReportingDS
-
- com.aquima.interactions.composer.ds.xml.r8.parsing.XmlTextNodeDS
-
- All Implemented Interfaces:
ITextNodeDS
,IReportingDS
public class XmlTextNodeDS extends ReportingDS implements ITextNodeDS
Xml r8 datasource implementation.- Since:
- 7.2
- Author:
- Jon van Leuven
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
XmlTextNodeDS(IInitializationReport report, IXmlNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMaskCallName()
This method returns the mask call for this node.TextNodeType
getType()
This method returns the type of the text node.String
getValue()
This method returns the value of the text node.void
iterateChildNodes(ITextNodeVisitor visitor)
This method should iterate over all the child nodes of the current text 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
-
XmlTextNodeDS
protected XmlTextNodeDS(IInitializationReport report, IXmlNode node)
-
-
Method Detail
-
getMaskCallName
public String getMaskCallName()
Description copied from interface:ITextNodeDS
This method returns the mask call for this node. Only applicable to field nodes. This method can return null.- Specified by:
getMaskCallName
in interfaceITextNodeDS
- Returns:
- The mask call name for this node.
-
getType
public TextNodeType getType()
Description copied from interface:ITextNodeDS
This method returns the type of the text node.- Specified by:
getType
in interfaceITextNodeDS
- Returns:
- the type of the text node.
-
getValue
public String getValue()
Description copied from interface:ITextNodeDS
This method returns the value of the text node. Depending on the type of the text node, the value will be interpreted differently.The value has the following meaning for the different types:
- ROOT - Value is ignored
- CONDITION - The value contains the expression that should be evaluated.
- TEXT - The value contains the text that should be displayed.
- FIELD - The value contains the expression whose value should be shown.
- STYLE - The value contains the presentation style that should be used (bold, italic, etc...).
- Specified by:
getValue
in interfaceITextNodeDS
- Returns:
- The value for the text node.
-
iterateChildNodes
public void iterateChildNodes(ITextNodeVisitor visitor) throws InitializationException
Description copied from interface:ITextNodeDS
This method should iterate over all the child nodes of the current text node, and add them to the provided visitor. The iterateChildNodes method will only be invoked for nodes that can actually have children.- Specified by:
iterateChildNodes
in interfaceITextNodeDS
- Parameters:
visitor
- The visitor that should be used to add the child nodes to.- Throws:
InitializationException
- This exception is thrown when the definition could not be initialized due to a fatal error.
-
-