java.lang.Object
com.aquima.interactions.framework.mask.impl.speller.MonthSpeller
Direct Known Subclasses:
ShortMonthSpeller

public class MonthSpeller extends Object

Speller to spell a month.

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

  • mask.date.month.january
  • mask.date.month.february
  • mask.date.month.march
  • mask.date.month.april
  • mask.date.month.may
  • mask.date.month.june
  • mask.date.month.july
  • mask.date.month.august
  • mask.date.month.september
  • mask.date.month.october
  • mask.date.month.november
  • mask.date.month.december
Since:
6.0
Author:
Jon van Leuven
  • Constructor Details

    • MonthSpeller

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

    • spell

      public String spell(int month)
      Spell a month, 0 is january.
      Parameters:
      month - The month
      Returns:
      The spelled month.
    • getMessageKey

      protected String getMessageKey(String month)