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