org.hippoecm.hst.content.beans.standard
Interface HippoAvailableTranslationsBean<K extends HippoBean>
- All Known Implementing Classes:
- HippoAvailableTranslations, HippoAvailableTranslationsBean.NoopTranslationsBean
public interface HippoAvailableTranslationsBean<K extends HippoBean>
getAvailableLocales
List<String> getAvailableLocales()
- It returns the available translations.
- Returns:
- the
List
of available locale's and an empty List
is no locale's are present
hasTranslation
boolean hasTranslation(String locale)
- Parameters:
locale
-
- Returns:
true
when the translation for locale
is present
getTranslations
List<K> getTranslations()
throws ClassCastException
- Type Parameters:
K
- the type of elements in the List
to be returned
- Returns:
- the List of all
T
's and an empty List
if no translations found
- Throws:
ClassCastException
- when the bean for locale
cannot be cast to
getTranslation
K getTranslation(String locale)
throws ClassCastException
- Type Parameters:
K
- the return type- Parameters:
locale
- the locale for the translation
- Returns:
- returns the
T
for locale
and null
if not present
- Throws:
ClassCastException
- when the bean for locale
cannot be cast to
Copyright © 2008-2012 Hippo. All Rights Reserved.