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()
It 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
K
's and an empty List
if no translations foundClassCastException
- when the bean for locale
cannot be cast to K getTranslation(String locale) throws ClassCastException
locale
- the locale for the translationK
for locale
and null
if not presentClassCastException
- when the bean for locale
cannot be cast to Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.