Package ch.tocco.nice2.model.entity.api
Interface LocalizedFieldMapper
- All Superinterfaces:
LocalizedFieldNamingStrategy
- All Known Implementing Classes:
DefaultLocalizedFieldMapper
Deprecated.
How to use: either inject as spring bean, or get from
EntityModel.getLocalizedFieldMapper()
.-
Method Summary
Modifier and TypeMethodDescriptionString[]
Deprecated.Returns the system-configured languages as 2-letter iso codes in lower case.Deprecated.Returns the system-configured default language, is also present in getNiceLanguages().Methods inherited from interface ch.tocco.nice2.model.entity.api.LocalizedFieldNamingStrategy
getFieldName, getFieldName, getFieldnameParts
-
Method Details
-
getLocales
String[] getLocales()Deprecated.Returns the system-configured languages as 2-letter iso codes in lower case.- Returns:
- Defensive copy, contains at least one entry.
-
getNiceDefaultLanguage
String getNiceDefaultLanguage()Deprecated.Returns the system-configured default language, is also present in getNiceLanguages().- Returns:
- 2-letter iso code in lower case, eg "fr".
-
EntityModel