org.keridwen.core.i18n
Interface DictionaryService

All Known Implementing Classes:
DefaultDictionaryService

public interface DictionaryService

A dictionary service manages a list of helpers and gives a central access to change the locale or the formatter used.


Method Summary
 void addDictionaryHelper(DictionaryHelper helperToAdd)
          Adds a dictionary helper to the list of managed helpers.
 Formatter getCurrentFormatter()
          Gets the current formatter.
 Locale getCurrentLocale()
          Gets the current locale.
 void removeDictionaryHelper(DictionaryHelper helperToRemove)
          Removes a dictionary helper from the list of managed helpers.
 void setFormatter(Formatter formatterToSet)
          Sets the formatter of the managed helpers.
 void setLocale(Locale localeToSet)
          Sets the locale of the managed helpers.
 

Method Detail

addDictionaryHelper

void addDictionaryHelper(DictionaryHelper helperToAdd)
Adds a dictionary helper to the list of managed helpers.

Parameters:
helperToAdd - the helper to add

removeDictionaryHelper

void removeDictionaryHelper(DictionaryHelper helperToRemove)
Removes a dictionary helper from the list of managed helpers.

Parameters:
helperToRemove - the helper to remove

setLocale

void setLocale(Locale localeToSet)
Sets the locale of the managed helpers.

Parameters:
localeToSet - the locale to set

getCurrentLocale

Locale getCurrentLocale()
Gets the current locale.

Returns:
the currently set locale.

setFormatter

void setFormatter(Formatter formatterToSet)
Sets the formatter of the managed helpers.

Parameters:
formatterToSet - the formatter to set

getCurrentFormatter

Formatter getCurrentFormatter()
Gets the current formatter.

Returns:
the currently set formatter.


Copyright © 2011-2013 Artenum. All Rights Reserved.