Package ai.tock.translator
Class I18nLabel
-
- All Implemented Interfaces:
-
ai.tock.translator.I18nLabelContract
public final class I18nLabel implements I18nLabelContract
The label persisted in database.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classI18nLabel.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Id<I18nLabel>_idprivate final Stringnamespaceprivate final Stringcategoryprivate final LinkedHashSet<I18nLocalizedLabel>i18nprivate final StringdefaultLabelprivate final LocaledefaultLocaleprivate final Set<I18nLocalizedLabel>defaultI18nprivate final Integerversionpublic final static I18nLabel.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description I18nLabel(Id<I18nLabel> _id, String namespace, String category, LinkedHashSet<I18nLocalizedLabel> i18n, String defaultLabel, Locale defaultLocale, Set<I18nLocalizedLabel> defaultI18n, Integer version)
-
Method Summary
Modifier and Type Method Description Id<I18nLabel>get_id()StringgetNamespace()StringgetCategory()LinkedHashSet<I18nLocalizedLabel>getI18n()StringgetDefaultLabel()LocalegetDefaultLocale()Set<I18nLocalizedLabel>getDefaultI18n()IntegergetVersion()I18nLabelwithDefaultLabel(String defaultLabel)I18nLabelwithUpdatedI18n(LinkedHashSet<I18nLocalizedLabel> i18n, Integer version)final I18nLocalizedLabelfindLabel(Locale locale, UserInterfaceType userInterfaceType, String connectorId)final I18nLocalizedLabelfindLabel(Locale locale, String connectorId)final I18nLocalizedLabelfindExistingLabelForOtherLocale(Locale forbiddenLocale, UserInterfaceType userInterfaceType, String connectorId)-
-
Constructor Detail
-
I18nLabel
I18nLabel(Id<I18nLabel> _id, String namespace, String category, LinkedHashSet<I18nLocalizedLabel> i18n, String defaultLabel, Locale defaultLocale, Set<I18nLocalizedLabel> defaultI18n, Integer version)
-
-
Method Detail
-
getNamespace
String getNamespace()
-
getCategory
String getCategory()
-
getI18n
LinkedHashSet<I18nLocalizedLabel> getI18n()
-
getDefaultLabel
String getDefaultLabel()
-
getDefaultLocale
Locale getDefaultLocale()
-
getDefaultI18n
Set<I18nLocalizedLabel> getDefaultI18n()
-
getVersion
Integer getVersion()
-
withDefaultLabel
I18nLabel withDefaultLabel(String defaultLabel)
-
withUpdatedI18n
I18nLabel withUpdatedI18n(LinkedHashSet<I18nLocalizedLabel> i18n, Integer version)
-
findLabel
final I18nLocalizedLabel findLabel(Locale locale, UserInterfaceType userInterfaceType, String connectorId)
-
findLabel
final I18nLocalizedLabel findLabel(Locale locale, String connectorId)
-
findExistingLabelForOtherLocale
final I18nLocalizedLabel findExistingLabelForOtherLocale(Locale forbiddenLocale, UserInterfaceType userInterfaceType, String connectorId)
-
-
-
-