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