Interface HippoAvailableTranslationsBean<K extends HippoBean>
- All Known Implementing Classes:
HippoAvailableTranslationsBean.NoopTranslationsBean
public interface HippoAvailableTranslationsBean<K extends HippoBean>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A No-operation instance of a HippoAvailableTranslationsBean -
Method Summary
Modifier and TypeMethodDescriptionReturns the available translations.getTranslation
(String locale) boolean
hasTranslation
(String locale)
-
Method Details
-
getAvailableLocales
Returns the available translations. -
hasTranslation
- Parameters:
locale
-- Returns:
true
when the translation forlocale
is present
-
getTranslations
- Returns:
- the
List
of all translations or an emptyList
if no translations found - Throws:
ClassCastException
- when the bean forlocale
cannot be cast toK
-
getTranslation
- Parameters:
locale
- the locale for the translation- Returns:
- returns translation for
locale
andnull
if not present - Throws:
ClassCastException
- when the bean forlocale
cannot be cast toK
-