Package | Description |
---|---|
fr.sylvainjanet.app.entities |
Package full of entities.
|
fr.sylvainjanet.app.services |
Package full of services.
|
fr.sylvainjanet.app.services.interfaces |
Package full of services' interfaces.
|
Modifier and Type | Method and Description |
---|---|
static TextLanguage |
TextLanguage.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextLanguage[] |
TextLanguage.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Map<TextLanguage,String> |
LocalizedString.getTextMap()
Get textMap.
|
Modifier and Type | Method and Description |
---|---|
String |
LocalizedString.from(TextLanguage language)
Get the text content for a specific language.
|
boolean |
LocalizedString.isDefinedFor(TextLanguage language)
Is this localized string defined for a language ? The textMap should
have a value for this language.
|
boolean |
LocalizedString.isNonEmptyFor(TextLanguage language)
Is this localized string defined and a non null non empty string for a
language ? The textMap should have a value for this language.
|
String |
LocalizedString.translateIn(TextLanguage language,
String text)
Translates this string in a specific language.
|
Modifier and Type | Method and Description |
---|---|
void |
LocalizedString.setTextMap(Map<TextLanguage,String> textMap)
Set textMap.
|
Constructor and Description |
---|
LocalizedString(List<String> selectors,
Map<TextLanguage,String> textMap)
Constructor without the id.
|
LocalizedString(Long id,
List<String> selectors,
Map<TextLanguage,String> textMap)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
LocalizedStringServiceImpl.getMultiText(List<String> selectors,
TextLanguage language)
Get the text string for a selector in a given language.
|
String |
LocalizedStringServiceImpl.getText(String selector,
TextLanguage language)
Get the text string for a selector in a given language.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
LocalizedStringService.getMultiText(List<String> selectors,
TextLanguage language)
Get multiple text strings for multiple selectors in a given language.
|
String |
LocalizedStringService.getText(String selector,
TextLanguage language)
Get the text string for a selector in a given language.
|
Copyright © 2023. All rights reserved.