public interface CentraSiteInternationalString
CentraSiteLocalizedString
based on the required locales.
If the values exist for that specified locale, then it return the corresponding
locale's CentraSiteLocalizedString, otherwise null.Modifier and Type | Method and Description |
---|---|
void |
addLocalizedString(CentraSiteLocalizedString localizedString)
Adds a CentraSiteLocalizedString to this object.
|
void |
addLocalizedStrings(java.util.Collection<CentraSiteLocalizedString> localizedStrings)
Adds many
CentraSiteLocalizedString s to this object. |
boolean |
containsValue(java.lang.String value)
Check whether one of the localized strings is equal to the given value.
|
CentraSiteLocalizedString |
getLocalizedString(java.util.Locale locale,
java.lang.String charsetName)
Gets the CentraSiteLocalizedString for the specified Locale and charsetName.
|
java.util.Collection<CentraSiteLocalizedString> |
getLocalizedStrings()
Returns the
CentraSiteLocalizedString s associated with this object. |
java.lang.String |
getLocalStringValue(java.util.Locale locale)
Gets the local String value for the specified Locale.
|
java.lang.String |
getValue()
Gets the String value for the user locale.
|
java.lang.String |
getValue(java.util.Locale locale)
Gets the String value for the specified Locale.
|
void |
removeLocalizedString(CentraSiteLocalizedString localizedString)
Removes a
CentraSiteLocalizedString from this object. |
void |
removeLocalizedStrings(java.util.Collection<CentraSiteLocalizedString> localizedStrings)
Removes specified
CentraSiteLocalizedString s 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 user locale.
|
void addLocalizedString(CentraSiteLocalizedString localizedString)
localizedString
- The CentraSiteLocalizedString
to addvoid addLocalizedStrings(java.util.Collection<CentraSiteLocalizedString> localizedStrings)
CentraSiteLocalizedString
s to this object.localizedStrings
- The Collection
of CentraSiteLocalizedString
objects to addCentraSiteLocalizedString getLocalizedString(java.util.Locale locale, java.lang.String charsetName)
locale
- The Locale for the desired value. If null the default locale is used.charsetName
- The desired charset nameCentraSiteLocalizedString
for the specified Locale and charsetNamejava.util.Collection<CentraSiteLocalizedString> getLocalizedStrings()
CentraSiteLocalizedString
s associated with this object.Collection
of CentraSiteLocalizedString
for this objectjava.lang.String getValue()
java.lang.String getValue(java.util.Locale locale)
locale
- The Locale for the desired value. If null the default locale is used.void removeLocalizedString(CentraSiteLocalizedString localizedString)
CentraSiteLocalizedString
from this object.localizedString
- The CentraSiteLocalizedString
to removevoid removeLocalizedStrings(java.util.Collection<CentraSiteLocalizedString> localizedStrings)
CentraSiteLocalizedString
s to this object.localizedStrings
- The Collection
of CentraSiteLocalizedString
objects to removevoid setValue(java.util.Locale locale, java.lang.String value)
locale
- The Locale for the desired value. If null the default locale is used.value
- The value to setvoid setValue(java.lang.String value)
value
- The value to setboolean containsValue(java.lang.String value)
value
- The value to check against the localized stringsjava.lang.String getLocalStringValue(java.util.Locale locale)
locale
- The Locale for the desired value. If null the default locale is used.