Class XmlSpellerDS
java.lang.Object
com.aquima.interactions.spellengine.ds.xml.parsing.XmlSpellerDS
- All Implemented Interfaces:
ISpellerDS
This data source implements the ISpellerDS interface for XML.
- Since:
- 6.0
- Author:
- Jon van Leuven
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the optional description of the speller.getName()
This method returns the name of the speller.This method returns the optional rule for negative integers.getRange()
This method returns the optional range for which this speller is valid.void
iterateMacros
(IMacroVisitor visitor) This method should iterate over the macros and call the visitor for every macro.void
iterateRules
(IRuleVisitor visitor) This method should iterate over the rules and call the visitor for every rule.
-
Constructor Details
-
Method Details
-
getName
Description copied from interface:ISpellerDS
This method returns the name of the speller.- Specified by:
getName
in interfaceISpellerDS
- Returns:
- Name of the speller (never null)
-
getDescription
Description copied from interface:ISpellerDS
This method returns the optional description of the speller.- Specified by:
getDescription
in interfaceISpellerDS
- Returns:
- Description of the speller (may be null)
-
getNegativeRule
Description copied from interface:ISpellerDS
This method returns the optional rule for negative integers.- Specified by:
getNegativeRule
in interfaceISpellerDS
- Returns:
- The rule (may be null)
-
getRange
Description copied from interface:ISpellerDS
This method returns the optional range for which this speller is valid. If this method returns null, no there is no restriction to the integer that can be spelled.- Specified by:
getRange
in interfaceISpellerDS
- Returns:
- The range (may be null)
-
iterateMacros
Description copied from interface:ISpellerDS
This method should iterate over the macros and call the visitor for every macro.- Specified by:
iterateMacros
in interfaceISpellerDS
- Parameters:
visitor
- The visitor to use for every macro.
-
iterateRules
Description copied from interface:ISpellerDS
This method should iterate over the rules and call the visitor for every rule.- Specified by:
iterateRules
in interfaceISpellerDS
- Parameters:
visitor
- The visitor to use for every rule.
-