java.lang.Object
com.aquima.interactions.framework.mask.impl.speller.BooleanSpeller

public class BooleanSpeller extends Object

Speller to spell a boolean value.

The values for a language are retrieved from the context with the following keys:

  • mask.boolean.true
  • mask.boolean.false
  • mask.boolean.short.true
  • mask.boolean.short.false
Since:
6.0
Author:
Jon van Leuven
  • Constructor Details

    • BooleanSpeller

      public BooleanSpeller(IMaskContext context, ILanguage language)
      Construct a speller.
      Parameters:
      context - The context used for message retrieval.
      language - The language used for message retrieval.
  • Method Details

    • spell

      public String spell(boolean b, boolean useShortNotation)
      Spell a boolean.
      Parameters:
      b - The boolean.
      useShortNotation - boolean indicating if shortnotation must be used.
      Returns:
      The spelled boolean.