Interface ILocalizedDatabaseObject
-
- All Known Subinterfaces:
ILocalization<TBase>,ILocalizedScopedFileMetaEntity<TBase,TData>
- All Known Implementing Classes:
ALocalization,ALocalizedScopedFileMetaEntity,ClientPortalConfigFile,ClientPortalConfigLocalization,ProjectFile,ProjectLocalization,UserPortalAuthConfigLocalization,UserPortalFile,UserPortalLocalization,UserPortalStateLocalization,UserPortalTagLocalization
public interface ILocalizedDatabaseObjectCommon interface for localized database objects. The localization of the database object is determined by itslanguage tag.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_LANGUAGE_TAGstatic StringCOL_LANGUAGE_TAG
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetLanguageTag()Gets the language this database object is localized for in form of its language tag.default LocalegetLocale()Gets the locale for which this entity is localized.voidsetLanguageTag(String languageTag)Sets the tag of the language this database object is localized for.default voidsetLocale(Locale locale)Sets the locale for which this entity is localized.
-
-
-
Field Detail
-
COL_LANGUAGE_TAG
static final String COL_LANGUAGE_TAG
- See Also:
- Constant Field Values
-
ATTR_LANGUAGE_TAG
static final String ATTR_LANGUAGE_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLanguageTag
String getLanguageTag()
Gets the language this database object is localized for in form of its language tag.- Returns:
- the language tag
-
setLanguageTag
void setLanguageTag(String languageTag)
Sets the tag of the language this database object is localized for.- Parameters:
languageTag- the language tag to set
-
getLocale
@Nullable default Locale getLocale()
Gets the locale for which this entity is localized.- Returns:
- the locale or
nullif this entity is the default localization.
-
setLocale
default void setLocale(Locale locale)
Sets the locale for which this entity is localized. The locale may benullfor setting the default localization.- Parameters:
locale- the locale to set.
-
-