Class DayOfWeekSpeller

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

public class DayOfWeekSpeller extends Object

Speller to spell days of the week.

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

  • mask.date.day.sunday
  • mask.date.day.monday
  • mask.date.day.tuesday
  • mask.date.day.wednesday
  • mask.date.day.thursday
  • mask.date.day.friday
  • mask.date.day.saturday
Since:
6.0
Author:
Jon van Leuven
  • Constructor Details

    • DayOfWeekSpeller

      public DayOfWeekSpeller(IMaskContext context, ILanguage language, String firstDayOfTheWeek)
      Construct a speller.
      Parameters:
      context - The mask context used for message retrieval.
      language - The language used for message retrieval.
      firstDayOfTheWeek - The first day of the week, default "sunday"
  • Method Details

    • spell

      public String spell(int dayOfWeek)
      Spell a day of week, 0 is sunday.
      Parameters:
      dayOfWeek - The day of the week.
      Returns:
      The spelled day of the week.