public class TableLocaleSource extends Object implements LocaleDataSource
| Constructor and Description |
|---|
TableLocaleSource() |
TableLocaleSource(OrderedMap<String,String> localeData) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
OrderedMap<String,String> |
getLocalizedText() |
boolean |
hasMapping(String textID)
Determine whether a locale has a mapping for a given text handle.
|
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
setLocaleMapping(String textID,
String text)
Set a text mapping for a single text handle for a given locale.
|
void |
writeExternal(DataOutputStream out) |
public TableLocaleSource()
public TableLocaleSource(OrderedMap<String,String> localeData)
public void setLocaleMapping(String textID, String text)
textID - Text handle. Must not be null. Need not be previously defined for this locale.text - Localized text for this text handle and locale. Will overwrite any previous mapping, if one existed.
If null, will remove any previous mapping for this text handle, if one existed.UnregisteredLocaleException - If locale is not defined or null.NullPointerException - if textID is nullpublic boolean hasMapping(String textID)
textID - Text handle.UnregisteredLocaleException - If locale is not defined.public OrderedMap<String,String> getLocalizedText()
getLocalizedText in interface LocaleDataSourcepublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2024. All rights reserved.