Package org.silverpeas.core.i18n
Interface I18NBean<T extends Translation>
-
- Type Parameters:
T
- the concrete type of the translations.
- All Superinterfaces:
Translatable
- All Known Implementing Classes:
AbstractBean
,AbstractI18NBean
,AxisHeader
,ComponentInst
,ComponentInstLight
,GlobalSilverContent
,NodeDetail
,PdcValueType
,PublicationDetail
,QuestionContainerHeader
,SearchResult
,SilverContent
,SpaceInst
,SpaceInstLight
,TreeNode
,Value
public interface I18NBean<T extends Translation> extends Translatable
Bean handling the different translations of its textual properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getNextTranslation()
Browses the different supported languages for a translation.Map<String,T>
getTranslations()
Gets all the actually translations handled by this bean.void
setLanguage(String language)
Sets the language in which the default values of the textual properties of the bean are set.void
setRemoveTranslation(boolean remove)
void
setTranslationId(String translationId)
Sets a unique identifier for the translation by default of the bean (the default values of the textual properties of the bean).-
Methods inherited from interface org.silverpeas.core.i18n.Translatable
getTranslation
-
-
-
-
Method Detail
-
getTranslations
Map<String,T> getTranslations()
Gets all the actually translations handled by this bean.- Returns:
- a map with as key the ISO 631-1 code of a language and as value the translation in that language.
-
getNextTranslation
T getNextTranslation()
Browses the different supported languages for a translation. The browsing starts with the default language as defined by the propertyI18n.getDefaultLanguage()
.- Returns:
- a translation.
-
setLanguage
void setLanguage(String language)
Sets the language in which the default values of the textual properties of the bean are set. By default, the language of those values are in the language defined by theI18n.getDefaultLanguage()
method- Parameters:
language
- the language.
-
setTranslationId
void setTranslationId(String translationId)
Sets a unique identifier for the translation by default of the bean (the default values of the textual properties of the bean).- Parameters:
translationId
- a unique identifier of the default translation.
-
setRemoveTranslation
void setRemoveTranslation(boolean remove)
-
-