public class Language extends Object implements Serializable
LanguageManager.LanguageManager,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String key)
Returns whether or not specified language key exists in this
Language. |
boolean |
containsText(String key)
Returns whether or not at least single
Text exists for specified language key. |
boolean |
containsText(String key,
String state)
Returns whether or not at least single
Text exists for specified language key and state. |
boolean |
equals(Object language) |
String |
get(String key,
Object... data)
Returns text for the specified language key from this
Language. |
Dictionary |
getDictionaries()
Returns
Dictionary containing all registered Dictionarys. |
Locale |
getLocale()
|
int |
getMnemonic(String key)
Returns mnemonic for the specified language key from this
Language. |
int |
getMnemonic(String key,
String state)
Returns mnemonic for the specified language key from this
Language. |
Record |
getRecord(String key)
Returns
Record for the specified language key. |
String |
getState(String key,
String state,
Object... data)
Returns text for the specified language key and state from this
Language. |
Text |
getText(String key)
|
Text |
getText(String key,
String state)
|
Value |
getValue(String key)
|
String |
toString() |
@NotNull public Dictionary getDictionaries()
Dictionary containing all registered Dictionarys.Dictionary containing all registered Dictionarys@Nullable public Record getRecord(@Nullable String key)
Record for the specified language key.@NotNull public String get(@Nullable String key, @NotNull Object... data)
Language.key - language key to retrieve text fordata - language dataLanguage@NotNull public String getState(@Nullable String key, @Nullable String state, @NotNull Object... data)
Language.public int getMnemonic(@Nullable String key)
Language.key - language key to retrieve mnemonic forLanguagepublic int getMnemonic(@Nullable String key, @Nullable String state)
Language.public boolean contains(@Nullable String key)
Language.
This will basically check existence of at least single Record with the key.key - language key to checktrue if specified language key exists in this Language, false otherwisepublic boolean containsText(@Nullable String key)
Text exists for specified language key.key - language key to checktrue if at least single Text exists for specified language key, false otherwisepublic boolean containsText(@Nullable String key, @Nullable String state)
Text exists for specified language key and state.Copyright © 2020. All rights reserved.