Package org.silverpeas.core.i18n
Interface LocalizedResource
-
- All Superinterfaces:
Nameable
,SilverpeasResource
,Translatable
- All Known Subinterfaces:
I18nContribution
,SilverpeasSharedComponentInstance
- All Known Implementing Classes:
ComponentInst
,ComponentInstLight
,Document
,HistorisedDocument
,HistorisedDocumentVersion
,NodeDetail
,PublicationDetail
,SimpleDocument
,SimpleDocumentVersion
,SpaceInst
,SpaceInstLight
public interface LocalizedResource extends SilverpeasResource, Translatable
An identifiable resource in Silverpeas with localization support.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceTranslation
getTranslation(String language)
Gets a translation in the specified language about some textual properties of the object.-
Methods inherited from interface org.silverpeas.core.Nameable
getDescription, getName
-
Methods inherited from interface org.silverpeas.core.SilverpeasResource
getCreationDate, getCreator, getIdentifier, getLastUpdateDate, getLastUpdater
-
-
-
-
Method Detail
-
getTranslation
ResourceTranslation getTranslation(String language)
Description copied from interface:Translatable
Gets a translation in the specified language about some textual properties of the object. If no such translation exists, then returns the default translation of the object.- Specified by:
getTranslation
in interfaceTranslatable
- Parameters:
language
- the ISO 631-1 code of a language.- Returns:
- a translation of the object in the given language. Can be never null.
-
-