public interface HippoAvailableTranslationsBean<K extends HippoBean>
Modifier and Type | Interface and Description |
---|---|
static class |
HippoAvailableTranslationsBean.NoopTranslationsBean<K extends HippoBean>
A No-operation instance of a HippoAvailableTranslationsBean
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getAvailableLocales()
Returns the available translations.
|
K |
getTranslation(String locale) |
List<K> |
getTranslations() |
boolean |
hasTranslation(String locale) |
boolean hasTranslation(String locale)
locale
- true
when the translation for locale
is presentList<K> getTranslations() throws ClassCastException
List
of all translations or an empty List
if no translations foundClassCastException
- when the bean for locale
cannot be cast to K
K getTranslation(String locale) throws ClassCastException
locale
- the locale for the translationlocale
and null
if not presentClassCastException
- when the bean for locale
cannot be cast to K
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.