Class SpellEngine

java.lang.Object
com.aquima.interactions.spellengine.model.SpellEngine
All Implemented Interfaces:
ISpellEngine, Serializable

public class SpellEngine extends Object implements ISpellEngine
Spell engine implementation.
Since:
6.0
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • SpellEngine

      public SpellEngine(ISpellEngineDS datasource)
      Constructor to create a spell engine based on a datasource.
      Parameters:
      datasource - The data source used for initialization.
      Throws:
      InitializationException - Is thrown when the speller failed initialization.
  • Method Details

    • addSpeller

      public void addSpeller(SpellerDefinition definition)
      This method add a speller to the spell engine. Should only be used during initialization.
      Parameters:
      definition - Speller definition to add.
    • getSpeller

      public ISpeller getSpeller(String spellerName)
      Description copied from interface: ISpellEngine
      This method returns a speller.
      Specified by:
      getSpeller in interface ISpellEngine
      Parameters:
      spellerName - The speller name used for lookup.
      Returns:
      Speller The speller
    • getSpellerNames

      public String[] getSpellerNames()
      Description copied from interface: ISpellEngine
      This method returns the names of all available spellers in the spell engine.
      Specified by:
      getSpellerNames in interface ISpellEngine
      Returns:
      The names of the available spellers, never null