public interface InternationalString
InternationalString
.Modifier and Type | Method and Description |
---|---|
void |
addLocalizedString(LocalizedString localizedString)
Adds a LocalizedString to this object.
|
void |
addLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings)
Adds many LocalizedStrings to this object.
|
LocalizedString |
getLocalizedString(java.util.Locale locale,
java.lang.String charsetName)
Gets the LocalizedString for the specified Locale and charsetName.
|
java.util.Collection<LocalizedString> |
getLocalizedStrings()
Returns the LocalizedStrings associated with this object.
|
java.lang.String |
getValue()
Gets the String value for the default locale and the default charset.
|
java.lang.String |
getValue(java.util.Locale locale)
Gets the String value for the specified Locale and the default charset.
|
void |
removeLocalizedString(LocalizedString localizedString)
Removes a LocalizedString from this object.
|
void |
removeLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings)
Removes specified LocalizedStrings to this object.
|
void |
setValue(java.util.Locale locale,
java.lang.String value)
Sets the String value for the specified Locale.
|
void |
setValue(java.lang.String value)
Sets the String value for the default locale.
|
void addLocalizedString(LocalizedString localizedString) throws CSAppFrameworkException
localizedString
- the LocalizedString to this object.CSAppFrameworkException
- if an internal error occurs on adding localized string.void addLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings) throws CSAppFrameworkException
localizedStrings
- the collction of LocalizedStrings to this object.CSAppFrameworkException
- if an internal error occurs on adding localized strings.LocalizedString getLocalizedString(java.util.Locale locale, java.lang.String charsetName) throws CSAppFrameworkException
locale
- the current locale.charsetName
- CSAppFrameworkException
- if an internal error occurs on getting localized string.java.util.Collection<LocalizedString> getLocalizedStrings() throws CSAppFrameworkException
CSAppFrameworkException
- if an internal error occurs on getting localized strings.java.lang.String getValue() throws CSAppFrameworkException
CSAppFrameworkException
- if an internal error occurs.java.lang.String getValue(java.util.Locale locale) throws CSAppFrameworkException
locale
- the current locale.CSAppFrameworkException
- if an internal error occurs.void removeLocalizedString(LocalizedString localizedString) throws CSAppFrameworkException
localizedString
- the LocalizedString from this object.CSAppFrameworkException
- if an internal error occurs on removing the localized string.void removeLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings) throws CSAppFrameworkException
localizedStrings
- the collection localized strings from this object.CSAppFrameworkException
- if an internal error occurs on removing the localized strings.void setValue(java.util.Locale locale, java.lang.String value) throws CSAppFrameworkException
locale
- the current locale.value
- the String value for the specified Locale.CSAppFrameworkException
- if an internal error occurs.void setValue(java.lang.String value) throws CSAppFrameworkException
value
- the String value for the default locale.CSAppFrameworkException
- if an internal error occurs.