java.lang.Object
com.aquima.interactions.spellengine.ds.xml.parsing.XmlSpellerDS
All Implemented Interfaces:
ISpellerDS

public class XmlSpellerDS extends Object implements ISpellerDS
This data source implements the ISpellerDS interface for XML.
Since:
6.0
Author:
Jon van Leuven
  • Constructor Details

    • XmlSpellerDS

      protected XmlSpellerDS(IXmlNode node)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ISpellerDS
      This method returns the name of the speller.
      Specified by:
      getName in interface ISpellerDS
      Returns:
      Name of the speller (never null)
    • getDescription

      public String getDescription()
      Description copied from interface: ISpellerDS
      This method returns the optional description of the speller.
      Specified by:
      getDescription in interface ISpellerDS
      Returns:
      Description of the speller (may be null)
    • getNegativeRule

      public String getNegativeRule()
      Description copied from interface: ISpellerDS
      This method returns the optional rule for negative integers.
      Specified by:
      getNegativeRule in interface ISpellerDS
      Returns:
      The rule (may be null)
    • getRange

      public IRangeValue 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 interface ISpellerDS
      Returns:
      The range (may be null)
    • iterateMacros

      public void iterateMacros(IMacroVisitor visitor)
      Description copied from interface: ISpellerDS
      This method should iterate over the macros and call the visitor for every macro.
      Specified by:
      iterateMacros in interface ISpellerDS
      Parameters:
      visitor - The visitor to use for every macro.
    • iterateRules

      public void iterateRules(IRuleVisitor visitor)
      Description copied from interface: ISpellerDS
      This method should iterate over the rules and call the visitor for every rule.
      Specified by:
      iterateRules in interface ISpellerDS
      Parameters:
      visitor - The visitor to use for every rule.